-
Book Overview & Buying
-
Table Of Contents
Oracle 11g Anti-hacker's Cookbook
By :
By using standard auditing, operations performed against database objects by sys or users with sysdba and sysoper privileges are not audited. Only details about logon including the terminal and the date are audited by mandatory auditing. This recipe will show you how to enable the audit for sys users.
All steps will be performed on the HACKDB database.
In a separate terminal open /var/log/oracle_audit.log with the tail –f command. From a second terminal connect as sysdba and issue a count against the hr.employees table:
SQL> conn / as sysdba Connected. SQL> select count(*) from hr.employees; COUNT(*) ---------- 107
If you now look at /var/opt/oracle_audit.log you will see that nothing was recorded.
Connect as sysdba and modify audit_sys_operation to true as follows:
SQL> alter system set audit_sys_operations=true scope=spfile;
Bounce the database.
Connect as sysdba and reissue the count against hr.employees:
SQL...
Change the font size
Change margin width
Change background colour