Did some testing myself. Weird results.
tried this:
alter table ... set inline length 3072
reorg table ...
alter tablespace ts32_bprce_lob2010 reduce
and then I got this:
Code:
2010-10-20-09.44.02.536000+120 E2235016F579 LEVEL: Warning
PID : 2812 TID : 3748 PROC : db2syscs.exe
INSTANCE: TST NODE : 000 DB : XXXXX
APPHDL : 0-2860 APPID: *LOCAL.TST.101020073903
AUTHID : XXXXX
EDUID : 3748 EDUNAME: db2agent (XXXX)
FUNCTION: DB2 UDB, buffer pool services, sqlbAlterPool, probe:15
MESSAGE : ADM1534W Table space "TS32_BPRCE_LOB2010" could not be reduced in
size because there are used pages at the end of the table space.
I thougt V9.7 solved this ...?
Even more stange. db2pd examined the LOB tablespace and reported
Code:
Address Id TotalPgs UsablePgs UsedPgs PndFreePgs FreePgs HWM Max HWM State MinRecTime NQuiescers PathsDropped
0x000007FEC4D641C0 45 459264 459248 136752 261504 60992 398256 398256 0x00000000 0 0 No
Then I extended the inline length to 4096 and reran. Now db2pd reports:
Code:
Address Id TotalPgs UsablePgs UsedPgs PndFreePgs FreePgs HWM Max HWM State MinRecTime NQuiescers PathsDropped
0x000007FEC4D641C0 45 590336 590320 136752 392256 61312 529008 529008 0x00000000 0 0 No
The totalpgs GREW! The freepages and pending freepages also grew (so I answered my initial question myself). So, why did the LOB tablespace grow when it was suppose to shrink and how can I reclaim all that space held in that tablespace?
googled and tried this
Code:
db2 alter tablespace ts32_bprce_lob2010 lower high water mark
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL1763N Invalid ALTER TABLESPACE statement for table space
"TS32_BPRCE_LOB2010" due to reason "11" SQLSTATE=429BC
I did mention "autoresize yes" when I created that tablespace. What the <beep> is a "Reclaimable Storage attribute"?