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 19:31:48 GMT, amerar_at_ci.chi.il.us wrote:
>
>
>
>Hello,
>
>I put a job into the job queue with this command:
>
>VARIABLE jobno number;
>begin
> DBMS_JOB.SUBMIT(:jobno,
> 'cash_man.water_pull;',
> sysdate,
> 'sysdate + 18/24');
> commit;
>end;
>/
>
>I want the job to run everyday at 6:00pm.......this is not happening.
>Can someone help me out with the interval??
Sure. From the spec of dbms_job
<quote>
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');
This schedules the job to run at 6PM today and everyday after at 6PM.
hope this helps,
chris.
>
>Please cc a copy to email....
>
>Thanks,
>
>Arthur
>amerar_at_ci.chi.il.us
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
--
Christopher Beck
Oracle Corporation
clbeck_at_us.oracle.com
Reston, VA.