1.111 ENABLE_DDL_LOGGING
ENABLE_DDL_LOGGING
enables or disables the writing of a subset of data definition language (DDL) statements to a DDL log.
Property | Description |
---|---|
Parameter type |
Boolean |
Default value |
|
Modifiable |
|
Modifiable in a PDB |
Yes |
Range of values |
|
Basic |
No |
The DDL log is a file that has the same format and basic behavior as the alert log, but it only contains the DDL statements issued by the database. The DDL log is created only for the RDBMS component and only if the ENABLE_DDL_LOGGING
initialization parameter is set to true
. When this parameter is set to false
, DDL statements are not included in any log.
The DDL log contains one log record for each DDL statement issued by the database. The DDL log is included in IPS incident packages.
There are two DDL logs that contain the same information. One is an XML file, and the other is a text file. The DDL log is stored in the log/ddl
subdirectory of the ADR home.
When ENABLE_DDL_LOGGING
is set to true
, the following DDL statements are written to the log:
-
ALTER/CREATE/DROP/TRUNCATE CLUSTER
-
ALTER/CREATE/DROP FUNCTION
-
ALTER/CREATE/DROP INDEX
-
ALTER/CREATE/DROP OUTLINE
-
ALTER/CREATE/DROP PACKAGE
-
ALTER/CREATE/DROP PACKAGE BODY
-
ALTER/CREATE/DROP PROCEDURE
-
ALTER/CREATE/DROP PROFILE
-
ALTER/CREATE/DROP SEQUENCE
-
CREATE/DROP SYNONYM
-
ALTER/CREATE/DROP/RENAME/TRUNCATE TABLE
-
ALTER/CREATE/DROP TRIGGER
-
ALTER/CREATE/DROP TYPE
-
ALTER/CREATE/DROP TYPE BODY
-
DROP USER
-
ALTER/CREATE/DROP VIEW
Note:
The DDL statement written to the log may be truncated. You can use DDL triggers to view the entire DDL statement. See Oracle Database PL/SQL Language Reference for more information about DDL triggers.
See Also:
Oracle Database Licensing Information User Manual for licensing information for the ENABLE_DDL_LOGGING
initialization parameter.