My Oracle Support Banner

ORA-06512: At "SYS.DBMS_AUDIT_MGMT" (Doc ID 2426156.1)

Last updated on MARCH 09, 2020

Applies to:

Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.


Customer has already applied a fix for Bug 21385422 but still the below procedure errors:

 dbms_audit_mgmt.set_last_archive_timestamp(audit_trail_type =>
 dbms_audit_mgmt.audit_trail_unified,last_archive_time => sysdate-100);
 dbms_audit_mgmt.clean_audit_trail(audit_trail_type =>
 dbms_audit_mgmt.audit_trail_unified, use_last_arch_timestamp => FALSE);
ERROR at line 1:
ORA-46264: Error during DBMS_AUDIT_MGMT operation
ORA-06512: at "SYS.DBMS_AUDIT_MGMT", line 5244
ORA-06512: at "SYS.DBMS_AUDIT_MGMT", line 1296
ORA-06512: at line 3

The procedure execution cleans/purges the audit records but at end it errors out with above error message


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.