RE: How to find the view names where a particular table is used

2002-03-15 Thread Deshpande, Kirti

select name 
from user_dependencies
where type = 'VIEW'
and referenced_name = 'GIVEN_TABLE_NAME';

- Kirti

-Original Message-
Sent: Friday, March 15, 2002 4:34 PM
To: Multiple recipients of list ORACLE-L


Hi, 

Is there a way of finding out what views are using a given table?

Shashank Sinha
__
Phone: 262-317-9354
Cell: 262-424-1101

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Sinha, Shashank (MED, TCS)
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Deshpande, Kirti
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).



RE: How to find the view names where a particular table is used

2002-03-15 Thread Janardhana Babu Donga

Try querying dba_dependencies...

select referenced_name,referenced_type from dba_dependencies where name =
'your view name';

-- Janardhana Babu

-Original Message-
Sent: Friday, March 15, 2002 2:34 PM
To: Multiple recipients of list ORACLE-L


Hi, 

Is there a way of finding out what views are using a given table?

Shashank Sinha
__
Phone: 262-317-9354
Cell: 262-424-1101

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Sinha, Shashank (MED, TCS)
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Janardhana Babu Donga
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).