1. 程式人生 > >檢視db2各表空間狀況

檢視db2各表空間狀況

select
substr(tbsp_name,1,20) as 表空間名稱,
substr(tbsp_content_type,1,10) as 表空間型別,
sum(tbsp_total_size_kb)/1024 as 表空間總大小(MB),
sum(tbsp_used_size_kb)/1024 as 已經使用的表空間大小(MB),
sum(tbsp_free_size_kb)/1024 as 剩餘表空間大小(MB),
tbsp_page_size AS 頁大小
from SYSIBMADM.TBSP_UTILIZATION
group by
tbsp_name,
tbsp_content_type,
tbsp_page_size
order by 3 desc