ORA-46252 - Cannot complete the operation, overlapping job already exists

In fase di compilazione del package di purge dell' audit trail compare il messaggio segunte.

begin
 dbms_audit_mgmt.create_purge_job(
 audit_trail_type => dbms_audit_mgmt.AUDIT_TRAIL_UNIFIED,
 audit_trail_purge_interval => 1,
 audit_trail_purge_name => 'PULIZIA_AUDIT22',
 use_last_arch_timestamp => true,
 CONTAINER  => DBMS_AUDIT_MGMT.CONTAINER_CURRENT);
end;
/

Report error -
ORA-46252: Impossibile completare l'operazione, esiste già un job sovrapposto
ORA-06512: a "SYS.DBMS_AUDIT_MGMT", line 181
ORA-06512: a "SYS.DBMS_AUDIT_MGMT", line 5420
ORA-06512: a "SYS.DBMS_AUDIT_MGMT", line 1412
ORA-06512: a line 2
46252. 00000 -  "Cannot complete the operation, overlapping job already exists"
*Cause:    Cleanup job already existed which spanned the given audit trail type.
*Action:   Drop the existing job.

Individuare il package  nella seguente tabella e procedere a cancellarlo.

SQL> select * from SYS.DAM_CLEANUP_JOBS$;
SQL> delete from SYS.DAM_CLEANUP_JOBS$ where JOB_NAME = 'PURGE_DB_AUDIT_RECORDS';
SQL> commit;

Rieseguire il job e se terminato con successo, compare il messaggio seguente:

Procedura PL/SQL completata correttamente.

Post popolari in questo blog

ORA-12154: TNS: il listener non è attualmente a conoscenza del servizio richiesto nel descrittore di connessione

Create e Drop Pluggable Database