码迷,mamicode.com
首页 > 数据库 > 详细

oracle 查看表空间使用情况

时间:2017-09-16 13:40:40      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:使用情况   ble   ace   eee   run   select   空间   color   table   

 查看表空间剩余:

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 查看表空间使用情况

标签:使用情况   ble   ace   eee   run   select   空间   color   table   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!