afdsvicosa
Programmer
- Nov 4, 2008
- 3
Hi everybody.
I want to know how I can really clean up a table that contains LOB data. I have a table that has various columns and one of them is a BLOB of size 134,217,728 Bytes.
When I try a "load from /dev/null of del replace into <my_table> nonrecoverable" command it logically cleans up the table. Like, if I do a select count(*) from <my_table> it returns 0 (zero). BUT, the internal db2 LOB files *.LB and *.LBA for that table remain unchanged! The LOB data is still in the server taking up disk space.
The same thing happens if I use "load from empty.ixf of ixf replace into <my_table> nonrecoverable" where empty.ixf is an empty file. It logically cleans up the data but the db2 internal files containing the LOB data are still on the server taking up disk space.
The workaround I use is to drop the table. In that case, db2 frees up the *.LB and *.LBA files for the LOB data for the table I dropped.
Does anybody know a better way of really cleaning up the table that contains the LOB data in a way that db2 frees up the disk space used to store the LOB data?
Thanks in advance,
Aroldo
I want to know how I can really clean up a table that contains LOB data. I have a table that has various columns and one of them is a BLOB of size 134,217,728 Bytes.
When I try a "load from /dev/null of del replace into <my_table> nonrecoverable" command it logically cleans up the table. Like, if I do a select count(*) from <my_table> it returns 0 (zero). BUT, the internal db2 LOB files *.LB and *.LBA for that table remain unchanged! The LOB data is still in the server taking up disk space.
The same thing happens if I use "load from empty.ixf of ixf replace into <my_table> nonrecoverable" where empty.ixf is an empty file. It logically cleans up the data but the db2 internal files containing the LOB data are still on the server taking up disk space.
The workaround I use is to drop the table. In that case, db2 frees up the *.LB and *.LBA files for the LOB data for the table I dropped.
Does anybody know a better way of really cleaning up the table that contains the LOB data in a way that db2 frees up the disk space used to store the LOB data?
Thanks in advance,
Aroldo