sum(remainedM) 剩余空间M,
sum(usedM) / sum(totalM)*100 占用百分比,
sum(remainedM)/sum(totalM)*100 剩余百分比
from (
select b.file_id ID,
b.tablespace_name tbs,
b.file_name name,b.bytes/(1024*1024) totalM,
(b.bytes-sum(nvl(a.bytes,0)))/(1024*1024) usedM,
sum(nvl(a.bytes,0))/1024/1024 remainedM,
sum(nvl(a.bytes,0))/(b.bytes)*100 剩余百分比,
(100-(sum(nvl(a.bytes,0))/(b.bytes)*100)) 占用百分比
from dba_free_space a,dba_data_files b where a.file_id=b.file_id group by
b.tablespace_name,b.file_name,b.file_id,b.bytes order by b.tablespace_name) group by
tbs;
专注于为中小企业提供成都网站建设、网站建设服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业磴口免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了上千多家企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。