Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spooling data from clob

Status
Not open for further replies.

Muskaan

Programmer
Joined
Oct 21, 2002
Messages
47
Location
US
Hi all,

I am trying to spool data from a clob table as follows:

--------------------------
set long 10000
spool archive_data/N_DBA.TDETAIL.dat
select x from clob_table order by id;
spool off
-------------------------

where x is a CLOB.
in my file, the data is split into 80 byte lengths. So one row is split into several lines . Is there a way the output can be spooled without the extra new-line characters ?

 
80 characters limit is set by LINESIZE sql*plus parameter. You may increase it as you need

Regards, Dima
 
Thanks for your help cliousa! I am now successfully writing cob data into a file.
Dima, I suppose there is still an upper limit to the LINESIZE parameter, I cannot write all of the 2 Gig data through sql*plus. Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top