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 > CLOB and reclaiming disk space (v9 LUW)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-04-09, 08:43
hg777 hg777 is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
CLOB and reclaiming disk space (v9 LUW)

Hi,

i got a huge table with a CLOB column, each CLOB contains about 1MB of data.
I now have the ability to clear out the CLOB data, ie set the clob column to null. However i still need to preserve the other data in the row, so i can't delete the actual row.

If i set the CLOB column to null, will the diskspace that the CLOB data occupied be reclaimed automatically or do i need to reorg etc?


Best Regars from a DB2 Newbie
Reply With Quote
  #2 (permalink)  
Old 03-09-09, 11:01
hg777 hg777 is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
Anyone?

Can anyone plese point out were to find information about this?
(Assuming the question was to basic,"go RTFM" yourself..
)
Reply With Quote
  #3 (permalink)  
Old 03-10-09, 04:52
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
What is the most natural answer to you? This is what DB2 will do. The space is freed and can be used for other data.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #4 (permalink)  
Old 03-10-09, 11:52
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
...unless, of course, the table is in a DMS tablespace, in which case the space _within_ the container(s) will be marked free, but the disk space will not be released automatically. And this is not specific to CLOBs.
Reply With Quote
  #5 (permalink)  
Old 03-10-09, 18:57
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
The question is what you imply by "reclaim". ;-)
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #6 (permalink)  
Old 03-11-09, 01:49
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by hg777
Can anyone plese point out were to find information about this?
(Assuming the question was to basic,"go RTFM" yourself..
)
In the sense that you mean it, you need to do a reorg. But even then, you may not be completely satisfied, depending on your expectations.
__________________
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