-
Book Overview & Buying
-
Table Of Contents
Oracle 11g Anti-hacker's Cookbook
By :
Statement auditing along with session audits is another important tracing method for capturing suspicious operations performed by a user. Statement audits apply both for DML and DDL statements.
In this recipe we will implement statement audit and we will create a new table named HR_EMP_DETAILS_AUD from EMP_DETAILS_VIEW.
All steps from this recipe will be performed on the database HACKDB.
Connect as user HR and create table HR_EMP_DETAILS_AUD as follows:
SQL> conn HR Enter password: Connected. SQL> create table hr_emp_details_aud as select * from emp_details_view; Table created.
Grant all privileges to SMAVRIS and DRAPHEAL on the HR_EMP_DETAILS_AUD table as follows:
SQL> grant alter on hr.hr_emp_details_aud to smavris,drapheal; Grant succeeded. Audit succeeded. SQL>
You may want to limit audit scope to specific users. By default both successful and unsuccessful events will be audited. In our case, limit the audit scope to HR, SMAVRIS...
Change the font size
Change margin width
Change background colour