Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> compiling in the order of dependency
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
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-LReceived on Thu Mar 07 2002 - 14:43:55 CST
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
- text/plain attachment: ESPN_Disclaimer.txt
![]() |
![]() |