Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to find object dependencies using the DBA_DEPENDENCIES

Samuel SchwartzNov 11 2013 — edited Nov 13 2013

Hi,

Could some one please help me in finding out the object dependencies among objects?

I was trying to find out the all levels of dependencies for a given object in  a given schema, but this following query is not working for packages type.

I want to find out all LEVELS of object involved in the creation of a package.

Example:

SELECT DISTINCT owner,name,referenced_owner,referenced_name,referenced_type, LEVEL Le1

FROM dba_dependencies

where owner =user

START WITH NAME = 'object name'

CONNECT BY NOCYCLE PRIOR referenced_name    = NAME

--AND PRIOR REFERENCED_OWNER = OWNER

--AND REFERENCED_TYPE = 'PACKAGE'

ORDER SIBLINGS BY name

Please help.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2013
Added on Nov 11 2013
8 comments
45,190 views