select char(TABLESPACE_NAME,16) tablespace_name,decimal(PAGE_SIZE/1024,4,2) page,used_pages*100/usable_pages rate,total_pages*(PAGE_SIZE/1024)/1024 total_M,usable_pages*(PAGE_SIZE/1024)/1024 usable_M,used_pages*(PAGE_SIZE/1024)/1024 as used_M,free_pages*(PAGE_SIZE/1024)/1024 as free_M FROM TABLE(SNAPSHOT_TBS_CFG(CAST(NULL AS VARCHAR(1)), CAST (NULL AS INTEGER))) AS SNAPSHOT_TBS_CFG where usable_pages<>0
db2 "select cast('DATABASE_NAME' as varchar(50)) as SJK,TBSP_ID, substr(tbsp_name,1,20) as TABLESPACE_NAME, substr(tbsp_content_type,1,10) as TABLESPACE_TYPE, sum(tbsp_total_size_kb)/1024 as TOTAL_MB, sum(tbsp_used_size_kb)/1024 as USED_MB, sum(tbsp_free_size_kb)/1024 as FREE_MB, tbsp_page_size AS PAGE_SIZE,sum(tbsp_used_size_kb)*100.0000/case when sum(tbsp_total_size_kb)=0 then null else sum(tbsp_total_size_kb) end as syl from SYSIBMADM.TBSP_UTILIZATION where tbsp_name not like '%SYS%' and tbsp_name not like '%TEMP%' group by TBSP_ID,tbsp_name,tbsp_content_type,tbsp_page_size"
http://blog.sina.com.cn/s/blog_64e1665801018otq.html
http://www.cnblogs.com/BradMiller/archive/2013/07/18/3198074.html
http://blog.itpub.net/30227852/viewspace-1622070/