DBMS_AUDIT_MGMT.CREATE_PURGE_JOB Fails With Error 'ORA-46252: Cannot Complete The Operation, Overlapping Job Already Exists' (Doc ID 1674110.1)

Last updated on JULY 09, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

On : 11.2.0.3 version, Database Security

When attempting to create a new purge job,
the following error occurs.

ERROR
-----------------------
ORA-46252: Cannot complete the operation, overlapping job already exists
ORA-06512: at "SYS.DBMS_AUDIT_MGMT", line 61
ORA-06512: at "SYS.DBMS_AUDIT_MGMT", line 2595
ORA-06512: at line 2


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. sqlplus / as sysdba

2. BEGIN
  DBMS_AUDIT_MGMT.CREATE_PURGE_JOB (
  AUDIT_TRAIL_TYPE => DBMS_AUDIT_MGMT.AUDIT_TRAIL_ALL,
  AUDIT_TRAIL_PURGE_INTERVAL => 24,
  AUDIT_TRAIL_PURGE_NAME => 'PURGE_ALL_AUDIT_TRAILS',
  USE_LAST_ARCH_TIMESTAMP => TRUE );
END;
/

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms