标签:
2015-11-10
查看表空间总容量
select tablespace_name, sum(bytes) / 1024 / 1024 as MB from dba_data_files group by tablespace_name;
查看表空间使用率
SELECT a.tablespace_name,total,free, (total-free),total/(1024*1024*1024),free/(1024*1024*1024) "free(G)",(total-free)/(1024*1024*1024) "(total-free)(G)",round((total-free)/total,4)*100 "ratio %" FROM (SELECT tablespace_name, SUM(bytes) free FROM dba_free_space GROUP BY tablespace_name) a,(SELECT tablespace_name,SUM(bytes) total FROM dba_data_files GROUP BY tablespace_name) b WHERE a.tablespace_name = b.tablespace_name ;
标签:
原文地址:http://www.cnblogs.com/cenliang/p/4952410.html