If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Exporting large amounts of CLOB data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-11, 14:43
Pryach Pryach is offline
Registered User
 
Join Date: Jun 2010
Posts: 9
Exporting large amounts of CLOB data

I have a table with two fields, id and XML. The XML field is a CLOB type.

When I try to export some data to a text file

Code:
db2 SELECT * FROM XMLREULTS where id='198.8192.123'
I open the text file that is created and I see the XML. However, about halfway through, I see:

DB29320W Output has been truncated.



1 record(s) selected.

How can I get the full result to export?
Reply With Quote
  #2 (permalink)  
Old 02-10-11, 15:38
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
The export row is truncated at 32K unless you specify that LOBs be stored in a seperate file.

db2 export to myfile.del of del lobs to /db2exp1/ modified by lobsinfile select * from emp_photo

The above example also specifies the path where the lob files will go (or you can use the current path).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On