Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

spool get_ddl result to file problem

$
0
0
I want to extract ddl's for all objects(procedures, functions, triggers, packages) on a separate file as in thread:
http://www.dbforums.com/oracle/10226...ml#post3774835

I'm using
Code:

Spool &1..&2..sql
 Select dbms_metadata.get_ddl('&2','&1','TEST' ) from dual;
Spool off;

The result is a file but problem is that only first part of code are inserted.
I have tried to use set linesize and set long etc but I still cannot get the whole thing.

If I just execute
Code:

Select dbms_metadata.get_ddl('PACKAGE','BIG_TEST_PACKAGE','TEST' ) from dual;
I get all 483 rows but if I spool it to file it only gives me first 116 rows.

Can someone help me please?

Viewing all articles
Browse latest Browse all 13329

Trending Articles