首页 > 数据库技术 > 详细

oracle 查看表空间使用情况

时间:2017-09-16 12:47:25      阅读:256      评论:0      收藏:0      [点我收藏+]

 查看表空间剩余:

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

 

oracle 查看表空间使用情况

原文:http://www.cnblogs.com/Springmoon-venn/p/7530670.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!