Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to list the definition of a View 1

Status
Not open for further replies.

vicentealeman

IS-IT--Management
Oct 7, 2003
70
US
I have 2 DB and 1 of those had a view that is missing; I would like to recreate the view but I am not sure what is inthere
Is there a way to display the definition of a view so I can create the other one ?
Thanks
 
Vicente,

Use this code:
Code:
set long 50000
select text from user_views where view_name = '<your view>';

If you do not own the view, then you can access either ALL_VIEWS or DBA_VIEWS instead of USER_VIEWS.

Let us know if this reasolves your need.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
@ 18:06 (15Feb05) UTC (aka "GMT" and "Zulu"),
@ 11:06 (15Feb05) Mountain Time

Do you use Oracle and live or work in Utah, USA? Then click here to join Utah Oracle Users Group on Tek-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top