My Oracle Support Banner

Unable To Purge All Unified_audit_trail Records where UNIFIED_AUDIT_POLICIES is null and action_name='LOGOFF BY CLEANUP'; (Doc ID 1944147.1)

Last updated on MAY 01, 2023

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 12.1]
Oracle Database Cloud Schema 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
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.


NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.  

Audit entries from UNIFIED_AUDIT_TRAIL having a NULL value for UNIFIED_AUDIT_POLICIES  null and  ACTION_NAME equal to 'LOGOFF BY CLEANUP'  are not deleted by dbms_audit_mgmt.

The issue can be reproduced at will with the following steps:

1. Install RDBMS, configured it in mixed mode or unified auditing only
2. Open a session with the user <TEST_USER> and kill it using alter system kill session
3. Check that there is a row created using:



5. Check the contents of UNIFIED_AUDIT_TRAIL once again.


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.