Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Extract the definition statements for all views

Re: Extract the definition statements for all views

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Fri, 09 Jan 2004 01:17:20 -0800
Message-ID: <1073639758.754068@yasure>


Kurt-Erich Finger wrote:

> Hi,
>
> I need to extract the create statements for all views of a single user
> to a file.
>
> Somebody has a little dynamic SQL code sniplet for me that retrieves
> this information from DBA_VIEWS?
>
> cheers
>
> Kurt-Erich

Why would anyone write dynamic SQL for something that can be done with a single SELECT statement? Just use spool to write it out. And if you have 9i use the DBMS_METADATA package to extract the DDL.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Fri Jan 09 2004 - 03:17:20 CST

Original text of this message

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