Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

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

RE: how to notify when dbms_job completes?

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Tue, 13 May 2003 13:32:08 -0800
Message-ID: <F001.00598196.20030513133208@fatcity.com>


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 ...;
dbms_stats.gather...

lather ; rinse; repeat

Raj




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-----
Sent: Tuesday, May 13, 2003 4:27 PM
To: Multiple recipients of list ORACLE-L

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++
  sleep.
  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: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

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: ListGuru_at_fatcity.com (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 - 16:32:08 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US