Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Export a view
J.Dex,
Do you mean to export the data that the View returns or the sql that makes up the view?
If it's the data, you can always create a temporary table from the view and export that table.
Create table view_exp as select * from view_name;
If it's the sql, you can get that from dbms_metadata
Set long 4000
Set trimspool on
Spool view.sql
Select dbms_metadata,get_ddl('VIEW','VIEW_NAME') from dual;
Exit
Tom
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of J. Dex
Sent: Thursday, May 03, 2007 11:03 AM
To: oracle-l_at_freelists.org
Subject: Export a view
Is there any way to do an export of a view in either 9i or 10g? I am pretty sure the answer is no, but thought I would ask anyway.
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Thu May 03 2007 - 10:38:01 CDT
![]() |
![]() |