nerdexam
Oracle

1Z0-062 · Question #62

You execute the following commands to audit database activities: SQL > ALTER SYSTEM SET AUDIT_TRIAL=DB, EXTENDED SCOPE=SPFILE; SQL > AUDIT SELECT TABLE, INSERT TABLE, DELETE TABLE BY JOHN By SESSION W

The correct answer is A. One audit record is created for every successful execution of a SELECT, INSERT OR DELETE. In earlier releases, BY SESSION caused the database to write a single record for all SQL statements or operations of the same type executed on the same schema objects in the same session. Beginning with this release (11g) of Oracle Database, both BY SESSION and BY ACCESS cause Or

Implementing Oracle Database Auditing

Question

You execute the following commands to audit database activities:

SQL > ALTER SYSTEM SET AUDIT_TRIAL=DB, EXTENDED SCOPE=SPFILE; SQL > AUDIT SELECT TABLE, INSERT TABLE, DELETE TABLE BY JOHN By SESSION WHENEVER SUCCESSFUL; Which statement is true about the audit record that generated when auditing after instance restarts?

Options

  • AOne audit record is created for every successful execution of a SELECT, INSERT OR DELETE
  • BOne audit record is created for every successful execution of a SELECT, INSERT OR DELETE
  • COne audit record is created for the whole session if john successfully executes a SELECT,
  • DOne audit record is created for the whole session if JOHN successfully executes a select
  • EOne audit record is created for the whole session if john successfully executes a SELECT,

How the community answered

(27 responses)
  • A
    85% (23)
  • B
    4% (1)
  • C
    4% (1)
  • D
    7% (2)

Explanation

In earlier releases, BY SESSION caused the database to write a single record for all SQL statements or operations of the same type executed on the same schema objects in the same session. Beginning with this release (11g) of Oracle Database, both BY SESSION and BY ACCESS cause Oracle Database to write one audit record for each audited statement and Specify BY ACCESS if you want Oracle Database to write one record for each audited statement If you specify either a SQL statement shortcut or a system privilege that audits a data definition language (DDL) statement, then the database always audits by access. In all other cases, the database honors the BY SESSION or BY ACCESS specification. * For each audited operation, Oracle Database produces an audit record containing this / The user performing the operation / The type of operation / The object involved in the operation / The date and time of the operation

Topics

#auditing#audit trail#BY SESSION

Community Discussion

No community discussion yet for this question.

Full 1Z0-062 Practice