Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: submit jobs
Hi, All!
Andreas Schwaiger wrote:
> i want to run a procedure as a job in the background
>
> i tried this:
> DBMS_JOB.SUBMIT(jobno,proc_name,sysdate+1/(25*60));
> nothing happens
>
var J number;
begin
dbms_job.submit(:J, /* job */ 'ivan.fsnap_analyze_resurs;', /* what */ TRUNC(SYSDATE)+19/24, /* next_date = in 19:00 today*/ 'SYSDATE+6/24', /* interval every 6 hours */ FALSE); /* no_parse IN BOOLEAN DEFAULT FALSE */end;
execute dbms_job.change(1222, null,TRUNC(SYSDATE)+19/24, null);
>
> then I tried this:
> DBMS_JOB.SUBMIT(jobno,proc_name);
> DBMS_JOB.RUN(jobno,true);
>
> Now the procedure proc_name is running, but I have to wait until its
> finished.
> Who can help me?
>
> Andi Schwaiger
> Austria
Ivan Received on Thu Nov 18 1999 - 10:56:07 CST
![]() |
![]() |