检查是否开启审计功能(参数):
SQL> show parameter audit_trail
关闭审计功能:
SQL> alter system set audit_trail=FALSE scope=spfile;
System altered.
审计类型:
1.审计系统权限:
例:
SQL> AUDIT CREATE ANY TABLE, CREATE TABLE BY USER01 BY ACCESS;
2.审计对象:
例:
SQL> AUDIT SELECT ON hr.employees BY ACCESS;
3.审计语句:
例:
SQL> AUDIT TABLE BY user01 BY ACCESS;