I have a coordinator package that is going to run alot of long running batch processes 
through dbms_job. Could be as many as 300 of them. I know to set my 
job_queue_processes = 36. 

however, I want to 'wait' until all of these are done. My concern is with concurrency. 

here is pseudo code:

max number := 0;
counter number := 0;
loop
  dbms_job.submit....
  dbms_alert.register...
  max := max + 1;
exit when finished submitted

for i in 1.. max LOOP
  dbms_alert.waitany(... stuff...)
end loop;

my concern is in the split second while my coordinate is awake, that another 
dbms_alert could get issued and Ill never reach my max counter in the loop.

do I need to use dbms_lock to serialize this? Its not that big of a deal, Im just 
hoping that oracle serializes it for me. 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: <[EMAIL PROTECTED]
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to