How to check reclaimable space enabled on DB2 tablespace with MON_GET_TABLESPACE

19 September,2014 by Jack Vamvas

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%')


Read More on DB2 reorg options

Reorg table DB2

DB2 table reorg and table truncate

DB2 Used Space and REORG

Author: Jack Vamvas(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

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.

Working...

Post a comment on How to check reclaimable space enabled on DB2 tablespace with MON_GET_TABLESPACE

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright