1、SQL 查询(选择Schema为SYSPROC)
SELECT SUBSTR(TABLESPACE_NAME,1,20) AS TBSPC_NAME, bigint(TOTAL_PAGES * PAGE_SIZE)/1024/1024 AS "TOTAL(MB)", used_pages*PAGE_SIZE/1024/1024 AS "USED(MB)", free_pages*PAGE_SIZE/1024/1024 AS "FREE(MB)" FROM TABLE(snapshot_tbs_cfg(‘FJDC2‘, -2)) AS snapshot_tbs_cfg
2、存储过程查询(选择Schema为SYSPROC)
db2 call GET_DBSIZE_INFO (?,?,?,0)
3、AIX中通过查询磁盘空间得到数据库物理大小
df -g
时间: 2024-10-16 12:10:26