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

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

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

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Thu, 11 Apr 2002 13:18:34 -0800
Message-ID: <F001.00442731.20020411131834@fatcity.com>


"MacGregor, Ian A." wrote:
>
> 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

Ian,

   To the best of my knowledge, the 'per column' dependency is not stored in the dictionary. The finest grain is the dependence of the view on the table. And as you pointed out, the description gives you the column name, which is arbitrary.
 No way out but parsing a LONG column :-P.

-- 
Regards,

Stephane Faroult
Oriole Software
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

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 - 16:18:34 CDT

Original text of this message

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