Configure Pure Mode of Unified Auditing in Oracle Database
Configure Pure Mode of Unified Auditing in Oracle Database
Unified Auditing provides a consolidated and streamlined auditing framework in Oracle Database. By default, Oracle operates in Mixed Mode, which means both traditional and unified auditing are enabled. If you want to use only Unified Auditing, you need to configure Pure Mode by relinking the Oracle binaries.
Below is a step-by-step guide to enable Pure Mode of Unified Auditing:
Step 1: Check Current Unified Auditing Mode
Before making any changes, check whether Unified Auditing is currently enabled.sql
-
If the VALUE column shows TRUE, Unified Auditing is available (but not necessarily in pure mode).
-
We need to relink Oracle to fully switch to Pure Mode.
Step 2: Shutdown the Oracle Database
To relink the Oracle binaries, first shut down the database instance.
Step 3: Relink Oracle with uniaud_on
Option
Navigate to the $ORACLE_HOME/rdbms/lib
directory and relink the Oracle binaries with unified auditing enabled.
Note: Ensure you have appropriate backup and necessary privileges before performing a relink.
Step 4: Restart Oracle Database
Start the database back up using SQL*Plus:
Step 5: Verify Unified Auditing is Enabled in Pure Mode
Once the database is up, run the following command again to confirm Unified Auditing is active:
If VALUE is still TRUE and the traditional audit parameters no longer work (like audit_trail
), Pure Mode has been successfully enabled.
Additional Notes:
-
In Pure Mode, traditional auditing settings (like
audit_trail
) are ignored. -
You can manage audit policies using commands like
CREATE AUDIT POLICY
,AUDIT
, andNOAUDIT
. -
Audit records are stored in the
UNIFIED_AUDIT_TRAIL
view.
Conclusion
Switching to Pure Mode of Unified Auditing centralizes and simplifies the auditing process in Oracle Database, improving performance and audit trail management. This setup is recommended for environments where audit compliance and centralized control are key requirements.
Happy auditing!
Comments