Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Job Queues - Question on execution times and sample

Re: Job Queues - Question on execution times and sample

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: Wed, 16 Sep 1998 21:04:52 +0200
Message-ID: <6tp21v$1g3$1@pascal.a2000.nl>


>execute dbms_job.submit(:j, 'chk_test;',sysdate,'sysdate+5/24/60');

The next run date will be calculated when the job is actually started (but is actually re-scheduled when the job has finished). So, when the job is started too late, the next jobs start late as well, unless you use some smart calculations.

Sysdate + 1 yields tomorrow, exactly 24 hours after the actual start time. So, sysdate + ( 1 / ( 24 * 60 ) ) is one minute from now; sysdate + 5 * ( 1 / (24 * 60) ) means that the job is rescheduled to run 5 minutes after the actual start date. Note that if your job runs longer than 5 minutes, then you might get into trouble.

Arjan. Received on Wed Sep 16 1998 - 14:04:52 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US