P. 1
Oracle Advanced Techniques

Oracle Advanced Techniques

4.78

|Views: 2,119|Likes:
Published by sbukka

More info:

Published by: sbukka on Jul 28, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

01/15/2013

pdf

text

original

x

This block submits three jobs to the job queue, numbered 1,2,
and 3.

Job 1 passes a string and number into procedure MY_JOB1, runs it in one
hour and executes every day thereafter.
Job 2 passes a date into procedure MY_JOB2, executes for the first time
tomorrow and every 10 minutes thereafter.
Job 3 is a PL/SQL block which does nothing, executes immediately, and
will be removed from the queue automatically.

BEGIN

DBMS_JOB.ISUBMIT
(job => 1
,what => 'my_job1(''string_parm_value'',120);'
,next_date => SYSDATE + 1/24
,interval => 'SYSDATE +1');
DBMS_JOB.ISUBMIT
(2, 'my_job2(date_IN=>SYSDATE);'
,SYSDATE+1,'SYSDATE+10/1440');
DBMS_JOB.ISUBMIT(3,'BEGIN null; END;',SYSDATE,null);

END;
/

07/27/08 Copyright
2001 Steven Feuerstein

PL/SQL Advanced Techniques - page 239

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->