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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle View Question

Status
Not open for further replies.

BRL123

Programmer
Apr 26, 2006
21
US
Is there an Oracle command to retreive the code used to create a view ?
I am using Oracle 9i.
Thanks very much.
 
Code:
select text from user_views
where view_name ='<UPPER-case name of VIEW>';
You can replace "user_views" (yours) with "all_views" (yours and others to whom you have GRANTed privileges) or "dba_views" (all views in the database). You must have DBA or specially granted privileges to access DBA_VIEWS.


Let us know if this resolves your need.


[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top