Audit

AUDIT_TRAIL Options

*none or false – Audit is off (this is the default setting) *db or true – Activates the Audit. The audits are written to SYS.AUD$ *db, extended – Writes to SYS.AUD$ and SQL_TEXT *xml – Auditing writes to an xml file in the operating system *xml, extended – Writes to both the xml file and SQL_TEXT *os – Writes to the destination configured in AUDIT_FILE_DEST into a file with a .aud extension AUDIT_FILE_DEST – should be set to OS level audits Statements that can be viewed on the object level:

  • alter
  • audit
  • comment
  • delete
  • flashback
  • grant
  • index
  • insert
  • lock
  • rename
  • select
  • update

Auditing all the tables in the Scott schema

Disabling the audit

Example

To view transactions that have been audited

Example

Example

Auditing the database administrators

Deleting the audit records

Viewing a single user

Viewing a user’s transactions

Viewing the SQL statements run according to username

To view information on what has been entered into the database

Kategori seçin...