Skip to Main Content
  • Questions
  • Scheduler Jobs not starting at the requested time

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Matthias.

Asked: May 20, 2020 - 11:23 am UTC

Last updated: June 22, 2020 - 3:18 am UTC

Version: 12.2

Viewed 1000+ times

You Asked

Solaris 11.4
Oracle 12.2

Hi,
we have about 70 Schedueler jobs defined, which are starting in intervalls from 1 minute to about 1 month.
Sometimes (about 2 to 3 times a weeks) there are time-windows of about 1 to 60 minutes , in which none of the jobs are starting.
It seams that the time of these windows not to correlate with the starting of one specific job.

We have controlled by a cron-job (schedueler wouldn't work) some of the resources. see below.
it seams None of values or rise or fall of these resources to correlate with the windows, when no job can be started by the scheduler.

Where should I look, to find the reason, that the scheduler jobs didn't start timely?

the query we used to find these windows:
select (ACTUAL_START_DATE-REQ_START_DATE),REQ_START_DATE,ACTUAL_START_DATE from dba_SCHEDULER_JOB_RUN_DETAILS
where
(job_name like 'xxxxx%' or job_name like 'xxxxxxxx%')
and (ACTUAL_START_DATE-REQ_START_DATE) > interval '30' second order by REQ_START_DATE desc;

the values, which we observe:
select sum(a.value) from v$sesstat a, v$statname b where a.statistic# = b.statistic# and b.name = 'opened cursors current';

select count(*) as "OPEN CURSORS" from v$open_cursor ;

select count(*) from v$process ;

select count(*) from v$session;

select count(*) from v$lock;

select count(*) from gv$transaction;


Kind regards
Matthias Penzlin



and Connor said...

A job won't start if a previous instance of that job is already running. More details here

https://connor-mcdonald.com/2019/03/26/long-running-scheduler-jobs/

If you are positive that this is not the case, then its time to talk to Support - they *have* been bugs in this area with various versions where the Scheduler gets into a state where it goes "dormant", in particular on Windows environments.

Rating

  (4 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Default maintenance window

lh, May 26, 2020 - 9:04 am UTC

Hi

Are these windows of no jobs occuring when the default maintenance window is starting. I have seen such behavior. Size of the window varies quite a lot.

Non scientific test seemed to indicate that gaps got smaller when database was rebooted. They did not disapper.


We will investigate the idea with the maintaining window.

A reader, June 02, 2020 - 10:12 am UTC

Please stay tuned...


It was the maintenance job on the CDB

matthias penzlin, June 19, 2020 - 6:32 am UTC

Hi,
it seems that the Problem was the maintenance job on the CDB.
The maintenance job on the PDB was disabled for months and the Problem existed.
When we stopped the maintenance job too, the Problem disapeared.
It seems to be a bug in the maintenance job, which should be fixed.

Once again: Thanks to the guy/gal in Finland!

regards
Matthias Penzlin
Connor McDonald
June 22, 2020 - 3:18 am UTC

I love it when we community source answers. It makes our community better!

19c might help ?

lh, June 22, 2020 - 9:13 am UTC

Hi


There are some indications, that this problem disappeared when database got upgraded to 19c (it was done last week, so nothing definite cannot be yet said).


I have received so much help from asktom, so it is my pleasure if I could have helped someone.


lh

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database