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


COL PARAMETER FORMAT A20
SET LINES 900 SELECT * FROM V$OPTION WHERE PARAMETER = 'Unified Auditing';
  • 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.

bash
sqlplus / as sysdba SHUTDOWN IMMEDIATE;

 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.

bash
cd $ORACLE_HOME/rdbms/lib make -f ins_rdbms.mk uniaud_on ioracle

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:

bash
sqlplus / as sysdba STARTUP; EXIT;

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:

sql
SELECT * FROM V$OPTION WHERE PARAMETER = 'Unified Auditing';

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, and NOAUDIT.

  • 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

Popular posts from this blog

Configure Oracle Database Vault Realms

Configure Transparent Database Encryption (TDE) in Oracle CDB

Cloning Oracle E-Business Suite 12.2.11: RMAN + Rapid Clone