audit

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

audit

Roshan
Oracle Database 12.1.0.2
RHEL 7.4

Hello Erman,

I would like to enable fine grained audit policy for all tables in a schema called cbs.

BEGIN
  DBMS_FGA.ADD_POLICY(
         OBJECT_SCHEMA => 'cbs',
         OBJECT_NAME   => '*',
         POLICY_NAME   => 'DUP_ACCESS2',
        statement_types  => 'DELETE');
END;
/

When I delete a record in a table, I do not see log being generated.

SQL> SELECT policy_name, object_name, statement_type, os_user, db_user FROM dba_fga_audit_trail;

no rows selected

Kindly advise

Regards,

Roshan



SQL> SELECT policy_name, object_name, statement_type, os_user, db_user FROM dba_fga_audit_trail;

no rows selected
Reply | Threaded
Open this post in threaded view
|

Re: audit

ErmanArslansOracleBlog
Administrator
1) your audit_trail parameter must be DB,EXTENDED. Is it so?
2) Is your policy enabled ? See DBMS_FGA.ENABLE_POLICY