Quantcast
Channel: Toad for Oracle
Viewing all articles
Browse latest Browse all 4009

Forum Post: RE: Asynchronous Trigger of a Procedure

$
0
0
Evening Sanjeev, Tom Kyte does this sort of thing in the past with a dbms_job.submit(...) then when all the parallel jobs are submitted, a commit will activate them, a rollback will cancel. I've never needed to do this sort of thing myself but as far as I remember, you font need to specify a next or interval etc. Just the job name and what to run. Depending on your oracle version, the dms_scheduler package will most likely have ome thing similar. If you are on windows, hack, spit, then you could have a batch file , master.cmd, containing all the child code you want to run, wrapped up in "start" commands, like: Start "first child" /d . /normal sqlplus username/password@alias @child.1.sql Start "second child" /d . /normal sqlplus username/password@alias @child.2.sql Then in the child.n.sql files, you would have something like: Begin First_childproc ( ... ); End; / Exit In Unix you would have similar scripts and the master.sh script would be like: ./ child.1.sh & ./child. 2.sh & Each of those would be similar to: Sqlplus username/password@alias << EOF begin First_childproc ( ... ); End: / Exit EOF There are probably other or easier ways to do this, maybe getting OEM to submit the various scripts etc, but the bove should give you a decent starting point. HTH Cheers, Norm. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

Viewing all articles
Browse latest Browse all 4009

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>