DBMS_AUDIT_MGMT Not Deleting The Old Records
(Doc ID 2912844.1)
Last updated on APRIL 17, 2023
Applies to:
Oracle Database - Enterprise Edition - Version 11.2.0.4 and laterInformation in this document applies to any platform.
Symptoms
DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD not deleting the record from aud$ table.
SQL> select count(*) from sys.aud$;
COUNT(*)
----------
415219
SQL> EXEC DBMS_AUDIT_MGMT.clean_audit_trail(audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD,use_last_arch_timestamp=> TRUE);
PL/SQL procedure successfully completed.
SQL> select count(*) from sys.aud$;
COUNT(*)
----------
415219
AUDIT_TRAIL RAC_INSTANCE LAST_ARCHIVE_TS
-------------------- ------------ ---------------------------------------------------------------------------
STANDARD AUDIT TRAIL 0 26-OCT-22 05.18.35.000000 PM +00:00
OS AUDIT TRAIL 1 16-OCT-22 02.00.00.000000 PM +11:00
OS AUDIT TRAIL 2 16-OCT-22 02.00.00.000000 PM +11:00
Cause
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
Symptoms |
Cause |
Solution |