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

Home -> Community -> Mailing Lists -> Oracle-L -> compiling in the order of dependency

compiling in the order of dependency

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Thu, 07 Mar 2002 12:43:55 -0800
Message-ID: <F001.0042285E.20020307124355@fatcity.com>


Hi all,

has anyone written a clean script to perform compiles in the order of dependency in 9i db? Due to java objects if I join public_dependency and dba_objects, it fails with ORA-01436: CONNECT BY loop in user data error. When I write following script, it takes ages .... how do I tune this especially when I join this with dba_objects to generate compile statements??

SELECT d_obj#, p_obj#, LEVEL lvl FROM sys.dependency$  WHERE EXISTS (SELECT 1 FROM sys.obj$ WHERE obj# = d_obj# AND TYPE# NOT IN
(28,29,30,31)) -- exclude java objects

   AND EXISTS (SELECT 1 FROM sys.obj$ WHERE obj# = p_obj# AND TYPE# NOT IN
(28,29,30,31))

   AND d_obj# IN (SELECT obj# FROM sys.obj$ WHERE DECODE(status, 0, 'N/A', 1, 'VALID', 'INVALID') = 'INVALID')
CONNECT BY d_obj# = PRIOR p_obj#

Any ideas are welcome
Raj



Rajendra Jamadagni MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Thu Mar 07 2002 - 14:43:55 CST

Original text of this message

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