标签:users ges space trim highlight dex user order by --
查询空间使用率 select char(TBSP_NAME,50) as TBSP_NAME, TBSP_TOTAL_PAGES,TBSP_USABLE_PAGES, TBSP_USED_PAGES, rtrim(100*TBSP_USED_PAGES/TBSP_USABLE_PAGES)||‘%‘ as USED_RATE from sysibmadm.SNAPTBSP_PART where TBSP_USABLE_PAGES>0 order by TBSP_NAME,DBPARTITIONNUM TBSP_NAME TBSP_TOTAL_PAGES TBSP_USABLE_PAGES TBSP_USED_PAGES USED_RATE -------------------------------------------------- -------------------- -------------------- -------------------- --------------------- SYSCATSPACE 32768 32764 29428 89% SYSTOOLSPACE 8192 8188 152 1% TS_USER18 61200 61152 96 0% TS_USER8 1000 960 96 10% USERSPACE1 8192 8160 1184 14%
查询表和索引结构
db2 describe indexes for table syscat.tables
db2 describe table syscat.tables
db2 describe table syscat.tables show detail
查询表状态信息
db2 "select TABNAME,TBSPACE,STATS_TIME,CREATE_TIME,STATUS from syscat.tables"
标签:users ges space trim highlight dex user order by --
原文地址:https://www.cnblogs.com/dahaoran/p/9283637.html