Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Purge Job Tables SCHEDULER$_EVENT_LOG

J.A.Apr 28 2014 — edited Apr 30 2014

Hi Experts

Please I need your help with this issue:

Oracle Rac two Nodes 11gR2

I have one Rac DataBase somehow the Job tables: SCHEDULER$_EVENT_LOG  and SCHEDULER$_JOB_RUN_DETAILS grow a lot.

When I execute a query to see the MyJob details, this query takes a lot of time to finish, because of the size of those tables, also the auto purge delay a few hours to finish and it´s not purging.

Now I want to purge those tables and I´ve done this:

execute DBMS_SCHEDULER.SET_SCHEDULER_ATTRIBUTE('log_history','1');

BEGIN

  DBMS_SCHEDULER.purge_log (

    log_history => 1,

    which_log   => 'JOB_LOG',

    job_name    => 'MYJOB' );

END;

/

BEGIN

DBMS_SCHEDULER.purge_log (

    log_history => 1,

    which_log   => 'WINDOW_LOG',

    job_name    => 'MYJOB');

END;

/

BEGIN

DBMS_SCHEDULER.PURGE_LOG(log_history => 1, which_log => 'JOB_LOG');

END;

/

I am not able to purge those tables. We run chain Jobs every night.

Any advice is going to be appreciated

Regards

J.A.

This post has been answered by J.A. on Apr 29 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2014
Added on Apr 28 2014
7 comments
7,855 views