Which statement is true?

Examine the following command;
ALTER SYSTEM SET enable_ddl_logging = TRUE;
Which statement is true?

Examine the following command;
ALTER SYSTEM SET enable_ddl_logging = TRUE;
Which statement is true?

A.
Only the data definition language (DDL) commands that resulted in errors are logged in the
alert log file.

B.
All DDL commands are logged in the alert log file.

C.
All DDL commands are logged in a different log file that contains DDL statements and their
execution dates.

D.
Only DDL commands that resulted in the creation of new segments are logged.

E.
All DDL commands are logged in XML format in the alert directory under the Automatic
Diagnostic Repository (ADR) home.

Explanation:
* By default Oracle database does not log any DDL operations performed by any
user. The default settings for auditing only logs DML operations.
* Oracle 12c DDL Logging – ENABLE_DDL_LOGGING
The first method is by using the enabling a DDL logging feature built into the database. By default
it is turned off and you can turn it on by setting the value of ENABLE_DDL_LOGGING initialization
parameter to true.
* We can turn it on using the following command. The parameter is dynamic and you can turn it
on/off on the go.
SQL> alter system set ENABLE_DDL_LOGGING=true;
System altered.
Elapsed: 00:00:00.05
SQL>
Once it is turned on, every DDL command will be logged in the alert log file and also the log.xml
file.



Leave a Reply 8

Your email address will not be published. Required fields are marked *


Sunil

Sunil

I feel C is the correct answer, if I go by the Study material.

log.xml file is created in $ADR_HOME/log/ddl directory not in alert directory.

This contains DDL statements and Dates. Thus C seems the best answer.

JRD

JRD

When ENABLE_DDL_LOGGING is set to true, the following DDL statements are written to the alert log, so the answer correct is B

Sayed

Sayed

Answer is C

Setting the instance parameter ENABLE_DDL_LOGGING to TRUE activates DDL
logging. If turned on, the RDBMS DDL logging is written to a new
ADR file type that has the same format and basic behavior as the alert log, but it only contains DDL statements and dates. The init.ora parameter ENABLE_DDL_LOGGING is licensed as part of the Change Management Pack for Oracle Database when set to TRUE.

Faryad Hussain

Faryad Hussain

C is Correct Answer, A separate log directory under ADR_HOME/ and actual location is ADR_HOME/log/ddl

noname

noname

“XML format in the alert directory”?? Clearly E is wrong. B is correct for 11g not 12c. Correct answer is C.

Marcia

Marcia

i think C is correct.

ENABLE_DDL_LOGGING enables or disables the writing of a subset of data definition language (DDL) statements to a DDL log.

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

http://docs.oracle.com/database/121/REFRN/refrn10302.htm#REFRN10302