I want to enable audit trail for specific user, but only for sessions when this user connect to database using one specific module applications.
For ex. I want to enable audit trail for user test1 only when user test1 is connected to database using TOAD, but not when the user test1 is connected to database using Golden6.
Is this type of audit possible?
Thanks,
Best Answer
You can do this with Unified Auditing, which is available starting with version 12.1.
Example:
Now create a Unified Audit policy, that audits all actions when the user is
U1
, and module is notGolden6
:Then test it:
Now check the contents of the audit trail:
As you can see, the creation of table
t2
statement, that was issued with the module set toGolden6
, was not audited.