Create and drop table audit in Unified Audit Oracle

Create Unified Audit policy in Oracle for specific user

 create audit policy table_pol PRIVILEGES CREATE ANY TABLE, DROP ANY TABLE WHEN 'SYS_CONTEXT(''USERENV'',''SESSION_USER'')=''SCOTT''' evaluate per session;

Enable the audit policy

audit policy table_pol;

Check the audit policy table:

set linesize 300
column dbusername format a30

select dbusername, action_name from unified_audit_trail;

This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply