Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to notify when dbms_job completes?

Re: how to notify when dbms_job completes?

From: Ryan <>
Date: Tue, 13 May 2003 14:12:56 -0800
Message-ID: <>

RE: how to notify when dbms_job completes?I have a variety of constraints and indices to run. Instead of running them one after another,. I want to use dbms_job to run them all at the same time.

I thought the use of 'parallel' was an add-on that you had to pay extra for? We do not have the parallel query option enabled. Is that different then running index creation in parallel?

  Maybe I am not clear ...

  creating index in parallel means your command will create index in parallel. Even if it runs in parallel, it is only one command. And as long as you follow the command with stats analyze, you will be okay.

  Now, if you mean you wish to create multiple indices in parallel, then my script would look something like ...

  create index ...;

  lather ; rinse; repeat


  Rajendra dot Jamadagni at nospamespn dot com   All Views expressed in this email are strictly personal.   QOTD: Any clod can have facts, having an opinion is an art !

  -----Original Message-----
  From: []   Sent: Tuesday, May 13, 2003 4:27 PM
  To: Multiple recipients of list ORACLE-L   Subject: Re: how to notify when dbms_job completes?

  oh i think I figured it out.

  I register a listener with dbms_alert for every dbms_job I run. I then have my jobs alert the listener when complete.

  my main thread will have a counter for every job inside a loop.

  for i=0;i<wait_count;i++
    wake when alerted.

  finish loop when all alerts come in
  do analyze

  yes I know that isnt pl/sql syntax. I Think that will work.


Please see the official ORACLE-L FAQ:

Author: Ryan

Fat City Network Services    -- 858-538-5051
San Diego, California        -- Mailing list and web hosting services
To REMOVE yourself from this mailing list, send an E-Mail message to: (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). Received on Tue May 13 2003 - 17:12:56 CDT

Original text of this message