1, check the database page size
db2 get db cfg
2, to collect status information of
db2 runstats on table schema.table_name
3, the number of pages occupied by the table query data
select tabname, npages from syscat.tables where tabname = ‘table_name’
4, calculation table occupied by disk space
Table of disk space occupied by the data page size = number of pages *
View the table much disk space: the SELECT tabname, NPAGES 16384 / (1024 1024) from the SYSCAT.TABLES the WHERE tabname = 'XXXXXX'
See table above db2 v9 logic much disk space: select sum (x.DATA_OBJECT_P_SIZE + x.INDEX_OBJECT_P_SIZE + x.LOB_OBJECT_P_SIZE + x.LONG_OBJECT_P_SIZE + x.XML_OBJECT_P_SIZE) from SYSIBMADM.ADMINTABINFO x where TABNAME = 'XXXXXXX';
select TABNAME,sum(x.DATA_OBJECT_P_SIZE+x.INDEX_OBJECT_P_SIZE+x.LOB_OBJECT_P_SIZE+x.LONG_OBJECT_P_SIZE+x.XML_OBJECT_P_SIZE) from SYSIBMADM.ADMINTABINFO x group by TABNAME;
View more db2 v9 database footprint size: db2 "call SYSPROC.GET_DBSIZE_INFO (,,, 10???)"