DBMS_SCHEDULER.PURGE Not Removing Entries from DBA_SCHEDULER_JOB_RUN_DETAILS (Doc ID 749440.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Standard Edition - Version 10.2.0.3 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 04-May-2012***

Goal

Problem:

Having millions of entries in the tables sys.scheduler$_job_run_details and sys.scheduler$_event_log 
This causes selects against the view dba_scheduler_job_run_details to be very slow.
Executing the procedure DBMS_SCHEDULER.PURGE_LOG(); will not remove all the entries:

Solution

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