`

计算表空间使用脚本

阅读更多

计算表空间使用率脚本 

select a.tablespace_name,100*round((a.sum1 - b.free1)/a.sum1,4) tbs_pct from 
(
select tablespace_name,sum(bytes) sum1 from dba_data_files group by tablespace_name
) a,
(
select tablespace_name,sum(bytes) free1 from dba_free_space group by tablespace_name
) b
where a.tablespace_name=b.tablespace_name
order by tbs_pct desc

转——http://blog.itpub.net/4227/viewspace-1060516/

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics