My Oracle Support Banner

DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL Is Not Purging Audit Records From SYS.AUD$ Due to Multiple Non-Existent DBIDs Entries in DBA_AUDIT_MGMT_LAST_ARCH_TS View (Doc ID 2429746.1)

Last updated on APRIL 03, 2021

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


Unable to purge audit records from SYS.AUD$ using DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL procedure. The SYS.AUD$ table is growing and not getting purged correctly as per last archive timestamp value set in SYS.DBA_AUDIT_MGMT_LAST_ARCH_TS View.

This behavior is observed despite all the setup for using DBMS_AUDIT_MGMT package is done. 


 No Change has been made. 


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.