Running Oracle 11gR1 in an XP SP2 virtual machine. Full disclosure: This is for assignment.
I try to audit whenever the user is given the role of database administrator and the e-mail message is deleted when an event occurs.
I am sure the AUDIT DBA; team AUDIT DBA; will check all actions performed on the DBA role. I have a fully working procedure that takes care of part of the email, but I donโt know about the standard audit method to invoke the procedure in the same way as the small-scale audit policy.
I tried to use the policy
begin dbms_fga.drop_policy (object_schema => 'SYS', object_name => 'DBA_ROLE_PRIVS', policy_name => 'EXAMPLE'); dbms_fga.add_policy (object_schema => 'SYS', object_name => 'DBA_ROLE_PRIVS', policy_name => 'EXAMPLE', audit_condition => 'GRANTED_ROLE = DBA', audit_column => 'GRANTED_ROLE', handler_schema => 'SYS', handler_module => 'FGA_NOTIFY'); end;
Where FGA_NOTIFY is the email procedure. But I get a notification that "adding a policy to an object owned by SYS is not allowed." I did not find a search on the Oracle documentation in this way.
My question is: can someone suggest an audit method and an Oracle database when a user receives a DBA role that can also trigger an email notification?
Thanks in advance for your help!
source share