Oracle表空间的各种统计

2014-11-24 17:38:05 · 作者: · 浏览: 0

1、每个表空间大小统计:


Select Tablespace_Name,Sum(bytes)/1024/1024 From Dba_Segments Group By Tablespace_Name


2、所有表空间总和统计:


select b.name,sum(a.bytes/1000000) 总空间 from v$datafile a,v$tablespace b where a.ts#=b.ts# group by b.name;


3、查看剩余表空间:


SELECT tablespace_name 表空间,sum(blocks*8192/1000000) 剩余空间M FROM dba_free_space GROUP BY tablespace_name;


相关阅读: