Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Generating view creating script

427911Jan 10 2005 — edited Jan 11 2005
Hi,
I need to create a script that will generate the script for creating views in a particular view. I did the following
SQL> set heading off;
SQL> spool c:\create_view.sql
SQL> select 'CREATE OR REPLACE VIEW '|| VIEW_NAME || ' AS '||TEXT FROM ALL_VIEWS
 WHERE OWNER='SCOTT';
select 'CREATE OR REPLACE VIEW '|| VIEW_NAME || ' AS '||TEXT FROM ALL_VIEWS WHERE OWNER='SCOTT'
                                                        *
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
Is there any other way to get this done.

Thanks
Muneer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2005
Added on Jan 10 2005
8 comments
443 views