db2查询表空间使用情况

	select tablespace_name,                                                   
       sum(float(total_pages*page_size)/(1024*1024*1024)) total_GB , 
       sum(float(usable_pages*page_size)/(1024*1024*1024)) usable_GB, 
       sum(float(used_pages*page_size)/(1024*1024*1024)) used_GB,
       sum(float(free_pages*page_size)/(1024*1024*1024)) free_all_GB
 from table(snapshot_tbs_cfg('数据库名',-2)) as aa                            
 group by tablespace_name;

你可能感兴趣的:(db2查询表空间使用情况)