select
t1.tablespace_name Tablespace_name,
t1.Mbyte Size_Mbytes,
t2.Mbyte Used_Mbytes,
to_char((t1.Mbyte-t2.Mbyte)/t1.Mbyte*100,'09.99') Free_Percent
from (select tablespace_name tablespace_name,sum(b.bytes)/1024/1024 Mbyte from dba_data_files b group by b.tablespace_name) t1,
(select tablespace_name tablespace_name,sum(b.bytes)/1024/1024 Mbyte from dba_free_space b group by b.tablespace_name) t2
where t1.tablespace_name = t2.tablespace_name
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11088128/viewspace-145412/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/11088128/viewspace-145412/
Oracle空间使用率查询
8454

被折叠的 条评论
为什么被折叠?



