Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Job queue Question
On Wed, 07 Jul 1999 20:06:05 GMT, clbeck_at_us.oracle.com (Christopher
Beck) wrote:
>On Wed, 07 Jul 1999 19:31:48 GMT, amerar_at_ci.chi.il.us wrote:
>
> ....[SNIP]....
>So basically, your jobs is set to run every 18 hours. What you want is...
>
>VARIABLE jobno number;
>begin
> DBMS_JOB.SUBMIT(:jobno,
> 'cash_man.water_pull;',
> trunc( sysdate ) + 18/24,
> 'sysdate');
To avoid this you should use an "anchor" in the interval parameter of a job, e.g.
DBMS_JOB.SUBMIT(:jobno,
'cash_man.water_pull;', trunc( sysdate ) + 18/24, 'TRUNC(sysdate) + 1 + 18/24'); **************************
Regards,
Jurij Modic <jmodic_at_src.si>
Certified Oracle DBA (7.3 & 8.0 OCP)