dbTalk Databases Forums  

SQL to find the list of objects that reference a table

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss SQL to find the list of objects that reference a table in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
DA Morgan
 
Posts: n/a

Default Re: SQL to find the list of objects that reference a table - 08-14-2008 , 11:56 AM






Saravanan wrote:
Quote:
On Aug 14, 12:30 pm, Saravanan <vsr.sarava... (AT) gmail (DOT) com> wrote:
Hi all
I want to find all the objects that reference a given table. Can
anyone please provide the SQL query to do the same?

Thanks
Saravanan

Hi all
Found the query here
http://jenniferlinca.wordpress.com/2...nts-in-oracle/

Thanks
Saravanan
That would be fine but it would also be incorrect with respect to the
question you asked. You said "objects" and that includes views and
procedures, etc.

Gazzag has pointed you to dba_dependencies which gives it to you at
the first level.

If you want the entire story then go to Morgan's Library at
www.psoug.org and look up the DBMS_UTILITY built-in package.
It contains a GET_DEPENDENCY procedure that is far more robust.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #12  
Old   
DA Morgan
 
Posts: n/a

Default Re: SQL to find the list of objects that reference a table - 08-14-2008 , 11:56 AM






Saravanan wrote:
Quote:
On Aug 14, 12:30 pm, Saravanan <vsr.sarava... (AT) gmail (DOT) com> wrote:
Hi all
I want to find all the objects that reference a given table. Can
anyone please provide the SQL query to do the same?

Thanks
Saravanan

Hi all
Found the query here
http://jenniferlinca.wordpress.com/2...nts-in-oracle/

Thanks
Saravanan
That would be fine but it would also be incorrect with respect to the
question you asked. You said "objects" and that includes views and
procedures, etc.

Gazzag has pointed you to dba_dependencies which gives it to you at
the first level.

If you want the entire story then go to Morgan's Library at
www.psoug.org and look up the DBMS_UTILITY built-in package.
It contains a GET_DEPENDENCY procedure that is far more robust.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #13  
Old   
DA Morgan
 
Posts: n/a

Default Re: SQL to find the list of objects that reference a table - 08-14-2008 , 11:56 AM



Saravanan wrote:
Quote:
On Aug 14, 12:30 pm, Saravanan <vsr.sarava... (AT) gmail (DOT) com> wrote:
Hi all
I want to find all the objects that reference a given table. Can
anyone please provide the SQL query to do the same?

Thanks
Saravanan

Hi all
Found the query here
http://jenniferlinca.wordpress.com/2...nts-in-oracle/

Thanks
Saravanan
That would be fine but it would also be incorrect with respect to the
question you asked. You said "objects" and that includes views and
procedures, etc.

Gazzag has pointed you to dba_dependencies which gives it to you at
the first level.

If you want the entire story then go to Morgan's Library at
www.psoug.org and look up the DBMS_UTILITY built-in package.
It contains a GET_DEPENDENCY procedure that is far more robust.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.