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: Ari D Kaplan <akaplan_at_interaccess.com>
Date: Fri, 18 Aug 2000 19:05:00 -0800
Message-Id: <10594.115048@fatcity.com>


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=3D'ALL_VIEWS'; no rows selected

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

This will work from ALL_TAB_COLUMNS:

SELECT * FROM ALL_TAB_COLUMNS WHERE TABLE_NAME =3D '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,

>=20

> dba_tables
>=20
>=20

> Rachel
>=20
>=20

> >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).
>=20
> =


> Get Your Private, Free E-mail from MSN Hotmail at =
http://www.hotmail.com
>=20

> --=20
> Author: Rachel Carmichael
> INET: carmichr_at_hotmail.com
>=20

> 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).
>=20

--=20
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 Received on Fri Aug 18 2000 - 22:05:00 CDT

Original text of this message

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