nerdexam
Oracle

1Z0-052 · Question #62

To make audit information more productive, the DBA executes the following command before starting an audit operations: SQL>ALTER SYSTEM SET AUDIT_TRAIL=DB,EXTENDED SCOPE=SPFILE; Which statement is…

The correct answer is B. It contains the SQL text executed by the user and the bind variables used with it. This question tests what audit record content is captured when AUDIT_TRAIL is set to DB,EXTENDED in Oracle Database.

Implementing Oracle Database Auditing

Question

To make audit information more productive, the DBA executes the following command before starting an audit operations:

SQL>ALTER SYSTEM SET AUDIT_TRAIL=DB,EXTENDED SCOPE=SPFILE; Which statement is true regarding the audit record generated when auditing starts after restarting the database?

Options

  • AIt contains only the plan for the SQL statement executed by the user
  • BIt contains the SQL text executed by the user and the bind variables used with it
  • CIt contains the plan and statistics associated with the SQL statement executed by the user
  • DIt contains the plan for the SQL statement executed by the user and the bind variables used with it

How the community answered

(50 responses)
  • A
    2% (1)
  • B
    94% (47)
  • C
    4% (2)

Why each option

This question tests what audit record content is captured when AUDIT_TRAIL is set to DB,EXTENDED in Oracle Database.

AIt contains only the plan for the SQL statement executed by the user

The DB,EXTENDED setting captures SQL text and bind variables, not execution plans; execution plans are accessed through DBMS_XPLAN or V$SQL_PLAN.

BIt contains the SQL text executed by the user and the bind variables used with itCorrect

Setting AUDIT_TRAIL=DB,EXTENDED causes Oracle to write standard audit records to SYS.AUD$ and additionally populate the SQLTEXT column with the full SQL statement and the SQLBIND column with the bind variable values used at execution time. This provides the richest level of detail for standard auditing compared to DB alone.

CIt contains the plan and statistics associated with the SQL statement executed by the user

Execution plans and runtime statistics are not part of the audit trail; they are found in V$SQL and related dynamic performance views.

DIt contains the plan for the SQL statement executed by the user and the bind variables used with it

The DB,EXTENDED setting does not capture execution plans at all; it captures SQL text together with bind variables, not plans with bind variables.

Concept tested: Oracle AUDIT_TRAIL DB,EXTENDED audit record content

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/AUDIT_TRAIL.html

Topics

#AUDIT_TRAIL#DB EXTENDED#bind variables#audit records

Community Discussion

No community discussion yet for this question.

Full 1Z0-052 Practice