Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Using DBMS_SCHEDULER to execute a three step job of different type(2 stored procedure and an executable)
rateeshmohan_at_gmail.com wrote:
> Hi Guys,
>
>
> I would like to schedule 3 jobs which should run one after the other.
> The first job is a procedure which when successfully completed should
> invoke a executable from the operating system and once that finishes
> successfully , which can be determined by a return value should invoke
> another stored procedure. How can this be accomplished?
>
> your inputs are highly aprreciated.
>
>
> Thanks
>
DBMS_SCHEDULER does not let you define one job's execution dependent on the run of a previous job. You'll have to combine your 3 tasks into one job. Since you have a stored proc, an OS executable, and a stored proc, why not create a script which runs them in this order and then have DBMS_SCHEDULER run that script?
HTH,
Brian
-- =================================================================== Brian Peasland dba_at_nospam.peasland.net http://www.peasland.net Remove the "nospam." from the email address to email me. "I can give it to you cheap, quick, and good. Now pick two out of the three" - Unknown -- Posted via a free Usenet account from http://www.teranews.comReceived on Tue Jul 17 2007 - 16:19:47 CDT
![]() |
![]() |