当前位置:Gxlcms > 数据库问题 > oracle 查看表空间使用情况

oracle 查看表空间使用情况

时间:2021-07-01 10:21:17 帮助过:14人阅读

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   

人气教程排行