oracle 查看表空间使用情况


 查看表空间剩余:

select tablespace_name,sum(bytes)/1024/1024||'M'
 from dba_free_space group by tablespace_name

 

 查看表空间总大小、使用大小、剩余大小,使用率、剩余率

select a.tablespace_name,a.bytes/1024/1024||'M' total,b.bytes/1024/1024||'M' used,c.bytes/1024/1024||'M' free ,
trunc(b.bytes/a.bytes,2) useded, trunc(c.bytes/a.bytes,2) freeed from sys.sm$ts_avail a,sys.sm$ts_used b,sys.sm$ts_free c where a.tablespace_name = b.tablespace_name and a.tablespace_name = c.tablespace_name

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM