怎麼檢視oracle表空間,剩餘大小,表空間利用

liuhaimiao發表於2014-09-24
 SELECT t1 "表空間",z "總表空間",z-s "已用表空間",s "剩餘表空間",ROUND((z-s)/z*100,2) "使用率%"
     From (Select tablespace_name t1,Sum(bytes) s
              From DBA_FREE_SPACE Group by tablespace_name),
           (Select tablespace_name t2,Sum(bytes) z
           From DBA_DATA_FILES Group by tablespace_name) Where t1=t2;

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/223653/viewspace-1279413/,如需轉載,請註明出處,否則將追究法律責任。

相關文章