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!


*********************************************************************2

This e-mail message is confidential, intended only for the named recipient(s) above 
and may contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank you.

*********************************************************************2

Reply via email to