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 > LOB field occupy a lots of space

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-03, 06:10
matthewlau matthewlau is offline
Member
 
Join Date: Dec 2001
Posts: 78
LOB field occupy a lots of space

I created a table with CLOB field, after I import 100,000 records into the table, I find that the .LB file for this table is about 100MB in size, but the source file (for CLOB field) is only 9MB in size, and then I do a select on this table, I found that many blanks inside the CLOB field, can I eliminate these blank so that make the LB file as small as possible.

thx.
Reply With Quote
  #2 (permalink)  
Old 12-18-03, 11:39
dmmac dmmac is offline
Registered User
 
Join Date: Aug 2003
Location: Massachusetts, USA
Posts: 106
Re: LOB field occupy a lots of space

Did you define a size for the CLOB column during the create of the table?

You can define a size in the table DDL for the CLOB column -- CLOB(10M).


Quote:
Originally posted by matthewlau
I created a table with CLOB field, after I import 100,000 records into the table, I find that the .LB file for this table is about 100MB in size, but the source file (for CLOB field) is only 9MB in size, and then I do a select on this table, I found that many blanks inside the CLOB field, can I eliminate these blank so that make the LB file as small as possible.

thx.
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