- Database should be offline when you are enabling pure Unified Auditing or you will get this error:
ORA-00600: internal error code, arguments: [krsh_fsga_sgaq.ds_not_found], , , , , , , , , , , 
- By default, in 12c version the auditing runs in mixed-mode, which means you can combine traditional auditing with unified auditing. There is one gotcha to be aware of:
– if the database has been upgraded, then there will be no Unified Policy enabled!
– if the database has been newly created, then there will be 2 Unified Policies enabled: ORA_SECURECONFIG and ORA_LOGON_FAILURES. The second one audits only failed logons, so if you want to audit also the successful logons, then you have to adapt that policy.That’s the reason, why many DBAs are asking themselves why the view UNIFIED_AUDIT_TRAIL is getting populated even if (pure!) Unified Auditing is not explicitly enabled! There is also a MOS Note covering that “problem”: “The UNIFIED_AUDIT_TRAIL is Getting Populated even if Unified Auditing was not explicitly enabled in 12c (Doc ID 1624051.1)“.
If you want to keep the old traditional auditing, then you should disable Unified Policies:
NOAUDIT POLICY ORA_SECURECONFIG; NOAUDIT POLICY ORA_LOGON_FAILURES;
- Unified Auditing: Unable To Clean Audit Trail Based On Last Archive Timestamp (Doc ID 1956200.1)
There is a Bug 18743542 – ORA-8180 from DBMS_AUDIT_MGMT.clean_audit_trail deleting 12c unified audit based on a last archive timestamp (Doc ID 18743542.8), and it is solved with the Patch PSUOct2015.
- Unified Audit Trail – LOGON Action Not Captured (Doc ID 1940793.1)
BUG:19383839 – UNIFIED AUDIT – NO LOGON OR FAILED LOGON ACTION CAPTURED
There is a patch 19383839 for it.
- Wrong examples on some webpages, for example this one: http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/12c/r1/security/sec_uni_audit/sec_uni_audit.html
There is following example:
create audit policy aud_action_pol ACTIONS select, update, delete on hr.employees;
But, in this case, not only the select and update statements for the hr.employees table will be audited – moreover ALL tables will be audited, so you can end up with unwanted audit records!!! The correct example would be:
create audit policy aud_action_pol ACTIONS select on hr.employees, update on hr.employees, delete on hr.employees;
- Poor performance on UNIFIED_AUDIT_TRAIL: There is a known issue with read performance on the unified audit trail queries, and I can confirm this bug (with ca. 500 000 records in UNIFIED_AUDIT_TRAIL):
BUG 21119008 - POOR QUERY PERFORMANCE ON UNIFIED_AUDIT_TRAIL
As of now, there is no fix for this Bug. Next week, I’ll try to figure it out, why is it so slow…
- Up to 12.2 base release, there is a bug “Bug 19383839 – “Logon” and “Failed Logon” not recorded by Unified Audit if AUDIT_TRAIL=NONE (Doc ID 19383839.8)”. Additional MOS note: “UNIFIED_AUDIT_TRAIL View Does Not Display LOGGON FAILURES (Doc ID 2089107.1)”.
Fortunately, there is an interim patch already to be applied onto PSU 18.104.22.168.170117 .
If you’re also aware of some gotcha regarding to the Unified Auditing, please inform me!
In the meantime, you can find more details about Unified Auditing here:
http://www.muniqsoft.de/tipps/oracle-neuerungen-zu/12c-release-1/unified-auditing.htm <- in German
https://oracle-base.com/articles/12c/auditing-enhancements-12cr1 <- Auditing Enhancements (Audit Policies and Unified Audit Trail) in Oracle Database 12c Release 1 (12.1)
http://docs.oracle.com/database/121/DBSEG/audit_config.htm#DBSEG888 <- DB Security Guide: Configuring Audit Policies
http://docs.oracle.com/database/121/DBSEG/audit_admin.htm#DBSEG370 <- DB Security Guide: Administering the Audit Trail
Known Issues When Using: DBMS_AUDIT_MGMT (Doc ID 804624.1)