19 September,2014 by Tom Collins
Question: How can I check if a DB2 database tablespace has reclaimable space enabled? A REORG completed and I need to reclaim the space
Answer: You can find metrics about DB2 tablespaces using the MON_GET_TABLESPACE table function .
Use the reclaimable_space_enabled column . It returns an smallint . If the value returned is 1 – reclaimable space is enabled. If 0 is returned , reclaimables space is not enabled.
select substr(TBSP_NAME,1,14),reclaimable_space_enabled from table (MON_GET_TABLESPACE(NULL,-1)) WHERE TBSP_NAME NOT LIKE ('SYS%')
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |