Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View Definitions
Message
 
General information
Forum:
Oracle
Category:
Other
Miscellaneous
Thread ID:
00841091
Message ID:
00841230
Views:
23
>When you "DESCRIBE My_Oracle_View" in SQL*Plus, where is Oracle getting the structure information for that view? Specifically, I want to retrieve the view structure [columns, data types, data_length, etc] the same way you would for a table from the USER_TAB_COLUMNS view.
>
>The "Text" column from the User_Views view is NOT what I am after either.
>
>TIA!

Hi Mark,
Working from the User_Views view, I got:
select o.name view_name, c.name col_name, c.length, c.precision#
   from sys_obj$ o, sys.col$ c
   where o.obj# = c.obj#
      and o.owner# = userenv('SCHEMAID')
      and upper(o.name) like 'MYVIEWNAME%'
   order by c.col#
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform