Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Extract the definition statements for all views
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
![]() |
![]() |