Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> How to Find Every View In Which a Column is Used.

How to Find Every View In Which a Column is Used.

From: MacGregor, Ian A. <ian_at_SLAC.Stanford.EDU>
Date: Thu, 11 Apr 2002 11:33:34 -0800
Message-ID: <F001.004423D8.20020411113334@fatcity.com>


The dependencies tables do not go down to the column level. If I want to know all views that access the sal column of scott.emp how do I do this. I can find out the name of the views which access the table via "dependencies", get the view text and parse it by eye. But I don't want to do that. I want the database to do so. I can use dbms_dql.parse, dbms_sql.describe columns, and the text of the view; however, this method does not work very well if the view contains a function or an operation on the column.

Oracle must hold this information somewhere after a statement is parsed, but where ?

Ian
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: MacGregor, Ian A.
  INET: ian_at_SLAC.Stanford.EDU

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-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). Received on Thu Apr 11 2002 - 14:33:34 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US