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!

dbms_scheduler.purge_log not working

404278Dec 21 2006 — edited Dec 30 2006
I am facing the same problem of dbms_scheduler.purge_log not purging the old entries from user_scheduler_job_run_details. Can anybody please help me out?



csdm_dev@CSDM>select count(*) from user_scheduler_job_run_details ;

COUNT(*)
----------
26438

csdm_dev@CSDM>exec dbms_scheduler.purge_log ;

PL/SQL procedure successfully completed.

csdm_dev@CSDM>select count(*) from user_scheduler_job_run_details;

COUNT(*)
----------
26438

csdm_dev@CSDM>

Also I am noticing that for the jobs that I am trying to executing , I am not seeing any log entries. Here is the code that I am executing. I will appreciate any help.

begin
dbms_scheduler.create_job(job_name => 'long_sleep',
job_type => 'PLSQL_BLOCK',
job_action => 'begin
dbms_lock.sleep(60);
end;',
auto_drop => FALSE);
dbms_scheduler.set_attribute(
name => 'long_sleep',
attribute => 'LOGGING_LEVEL',
value => DBMS_SCHEDULER.LOGGING_FULL
);
dbms_scheduler.enable('long_sleep');
end;
/

csdm_dev@CSDM>select count(*) from user_scheduler_job_run_details where job_name
= 'LONG_SLEEP';

COUNT(*)
----------
0
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2007
Added on Dec 21 2006
1 comment
5,793 views