oracle- audit log

First, the audit function is turned off

1, view the audit function is turned on?
su - the Oracle
sqlplus "/ AS sysdba"
SQL> Show the Parameter audit_trail

The TYPE of VALUE NAME
------------------------------------ ----------- ------------------------------
AUDIT_TRAIL DB String
Description: vALUE value DB, the surface of the audit function is ON state

 

2, to close the audit function oracle
the SQL> SET ALTER System AUDIT_TRAIL = FALSE scope = SPFILE;
the System Altered. 

 

 3, restart the database
SQL> the shutdown load immediate;
SQL> the Startup;

 

4, verify whether the audit has been turned off
SQL> show parameter audit_trail

The TYPE of VALUE NAME
------------------------------------ ----------- ------------------------------
AUDIT_TRAIL FALSE String
Description: vALUE is FALSE, the surface of the closed state auditing function

Second, delete audit logs

When it has been formed on the log, which records can be deleted, delete the current is direct, it did not affect the database.

The current log information query: select * FROM SYS.AUD $;

Delete the existing audit information: DELETE FROM SYS.AUD $;

Or quickly delete table information: truncate table SYS.AUD $;

Guess you like

Origin www.cnblogs.com/kingle-study/p/11425562.html