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: Data Dictionary View for View Columns?

RE: Data Dictionary View for View Columns?

From: Alex Hillman <alex_hillman_at_physia.com>
Date: Sat, 19 Aug 2000 15:55:40 -0400
Message-Id: <10594.115047@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01C00A17.736F86F0
Content-Type: text/plain;

        charset="iso-8859-1"

So what do you need to find about the view that you cannot find in dba_views and dba_tab_columns?

Alex Hillman

-----Original Message-----
From: Ari D Kaplan [mailto:akaplan_at_interaccess.com] Sent: Friday, August 18, 2000 11:05 PM
To: Multiple recipients of list ORACLE-L Subject: Re: Data Dictionary View for View Columns?

Hi Rachel

(What are we doing on Friday night, oy!)

Unfortunately, DBA_TABLES does not contain information on views. I found out from the list that DBA_TAB_COLUMNS (and ALL_TAB_COLUMNS/USER_TAB_COLUMNS)
contain information on view columns.

Someone on the list said (with a sigh) that COL does include views, but I still cannot get it to work:

SELECT * FROM COL WHERE TNAME='ALL_VIEWS'; no rows selected

SELECT * FROM COL WHERE TNAME='DBA_TABLES'; no rows selected

This will work from ALL_TAB_COLUMNS:

SELECT * FROM ALL_TAB_COLUMNS WHERE TABLE_NAME = 'DBA_TABLES'; (many rows returned)

Also, looking at the "sql.bsq" I was able to deduce info on the COL$ and OBJ$ that includes view column information.

Take care, and thanks again to everyone's input today.

-Ari Kaplan
Independent Oracle DBA Consultant

<-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><->

<-> For 380+ Oracle tips, visit: <->
<-> <->
<-> www.arikaplan.com <->
<-> <->
<-> email: akaplan_at_interaccess.com <->
<-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-> On Fri, 18 Aug 2000, Rachel Carmichael wrote: > Ari, > > dba_tables > > > Rachel > > > >From: Ari D Kaplan <akaplan_at_interaccess.com> > >Reply-To: ORACLE-L_at_fatcity.com > >To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> > >Subject: Data Dictionary View for View Columns? > >Date: Fri, 18 Aug 2000 10:49:25 -0800 > > > >Does anyone know the data dictionary view (or table) that has the list of > >the columns and datatypes that comprise a view? I can get the syntax for > >the view's SQL (in ALL_VIEWS, VIEW$) and the number of columns (VIEW$), > >but not the actual individual columns and datatypes. > > > >I am looking for something similar to COL but for views, and am coming up > >empty. > > > >Thanks, > > > >-Ari > > > >-- > >Author: Ari D Kaplan > > INET: akaplan_at_interaccess.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). > > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > -- > Author: Rachel Carmichael > INET: carmichr_at_hotmail.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). >
-- 
Author: Ari D Kaplan
  INET: akaplan_at_interaccess.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).

------_=_NextPart_001_01C00A17.736F86F0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: Data Dictionary View for View Columns?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>So what do you need to find about the view that you =
cannot find in dba_views and dba_tab_columns?</FONT>
</P>

<P><FONT SIZE=3D2>Alex Hillman</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Ari D Kaplan [<A =
HREF=3D"mailto:akaplan_at_interaccess.com">mailto:akaplan_at_interaccess.com</=
A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, August 18, 2000 11:05 PM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: Re: Data Dictionary View for View =
Columns?</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hi Rachel</FONT>
</P>

<P><FONT SIZE=3D2>(What are we doing on Friday night, oy!)</FONT>
</P>

<P><FONT SIZE=3D2>Unfortunately, DBA_TABLES does not contain =
information on views. I found</FONT>
<BR><FONT SIZE=3D2>out from the list that DBA_TAB_COLUMNS (and =
ALL_TAB_COLUMNS/USER_TAB_COLUMNS)</FONT>
<BR><FONT SIZE=3D2>contain information on view columns.</FONT>
</P>

<P><FONT SIZE=3D2>Someone on the list said (with a sigh) that COL does =
include views, but I</FONT>
<BR><FONT SIZE=3D2>still cannot get it to work:</FONT>
</P>

<P><FONT SIZE=3D2>SELECT * FROM COL WHERE TNAME=3D'ALL_VIEWS';</FONT>
</P>

<P><FONT SIZE=3D2>no rows selected</FONT>
</P>

<P><FONT SIZE=3D2>SELECT * FROM COL WHERE TNAME=3D'DBA_TABLES';</FONT>
</P>

<P><FONT SIZE=3D2>no rows selected</FONT>
</P>

<P><FONT SIZE=3D2>This will work from ALL_TAB_COLUMNS:</FONT>
</P>

<P><FONT SIZE=3D2>SELECT * FROM ALL_TAB_COLUMNS WHERE TABLE_NAME =3D =
'DBA_TABLES';</FONT>
<BR><FONT SIZE=3D2>(many rows returned)</FONT>
</P>

<P><FONT SIZE=3D2>Also, looking at the &quot;sql.bsq&quot; I was able =
to deduce info on the COL$ and</FONT>
<BR><FONT SIZE=3D2>OBJ$ that includes view column information.</FONT>
</P>

<P><FONT SIZE=3D2>Take care, and thanks again to everyone's input =
today.</FONT>
</P>

<P><FONT SIZE=3D2>-Ari Kaplan</FONT>
<BR><FONT SIZE=3D2>Independent Oracle DBA Consultant</FONT>
</P>

<P><FONT =
SIZE=3D2>&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;=
&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;=
&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;-&gt; For 380+ Oracle tips, =
visit:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; &lt;-&gt;</FONT>
<BR><FONT =
SIZE=3D2>&lt;-&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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t;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;=
&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;=
&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;&lt;-&gt;</FONT>
</P>

<P><FONT SIZE=3D2>On Fri, 18 Aug 2000, Rachel Carmichael wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; Ari,</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; dba_tables</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Rachel</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;From: Ari D Kaplan =
&lt;akaplan_at_interaccess.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Reply-To: ORACLE-L_at_fatcity.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;To: Multiple recipients of list ORACLE-L =
&lt;ORACLE-L_at_fatcity.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Subject: Data Dictionary View for View =
Columns?</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Date: Fri, 18 Aug 2000 10:49:25 =
-0800</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Does anyone know the data dictionary view =
(or table) that has the list of</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;the columns and datatypes that comprise a =
view? I can get the syntax for</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;the view's SQL (in ALL_VIEWS, VIEW$) and =
the number of columns (VIEW$),</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;but not the actual individual columns and =
datatypes.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;I am looking for something similar to COL =
but for views, and am coming up</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;empty.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Thanks,</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;-Ari</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;--</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Author: Ari D Kaplan</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;&nbsp;&nbsp; INET: =
akaplan_at_interaccess.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Fat City Network Services&nbsp;&nbsp;&nbsp; =
-- (858) 538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT SIZE=3D2>&gt; =
&gt;--------------------------------------------------------------------=
</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;To REMOVE yourself from this mailing list, =
send an E-Mail message</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;to: ListGuru_at_fatcity.com (note EXACT =
spelling of 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;the message BODY, include a line =
containing: UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;(or the name of mailing list you want to be =
removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;also send the HELP command for other =
information (like subscribing).</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; =
________________________________________________________________________=
</FONT>
<BR><FONT SIZE=3D2>&gt; Get Your Private, Free E-mail from MSN Hotmail =
at <A HREF=3D"http://www.hotmail.com" =
TARGET=3D"_blank">http://www.hotmail.com</A></FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; -- </FONT>
<BR><FONT SIZE=3D2>&gt; Author: Rachel Carmichael</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; INET: carmichr_at_hotmail.com</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
(858) 538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>&gt; San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT SIZE=3D2>&gt; =
--------------------------------------------------------------------</FO=
NT>
<BR><FONT SIZE=3D2>&gt; To REMOVE yourself from this mailing list, send =
an E-Mail message</FONT>
<BR><FONT SIZE=3D2>&gt; to: ListGuru_at_fatcity.com (note EXACT spelling =
of 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>&gt; the message BODY, include a line containing: =
UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; (or the name of mailing list you want to be =
removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>&gt; also send the HELP command for other =
information (like subscribing).</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Ari D Kaplan</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: akaplan_at_interaccess.com</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) =
538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-----</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru_at_fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
Received on Sat Aug 19 2000 - 14:55:40 CDT

Original text of this message

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