å¨Oracleä¸æ¥çå表å表空é´å ç¨ç©ºé´å¤§å°å¯ç¨sqlè¯å¥æ§è¡æ¥çã
Oracleçæ¬ï¼Oracle 10g
ä¸ãæ¥ç表å ç¨ç©ºé´å¤§å°è¯å¥ï¼
select t.segment_name, t.segment_type, sum(t.bytes / 1024 / 1024) "å ç¨ç©ºé´(M)"æ¥è¯¢ç»æï¼
äºãæ¥ç表空é´å ç¨ç©ºé´å¤§å°è¯å¥ï¼
select a.tablespace_name,a.bytes/1024/1024 "Sum MB",(a.bytes-b.bytes)/1024/1024 "used MB",b.bytes/1024/1024 "free MB",round(((a.bytes-b.bytes)/a.bytes)*100,2) "percent_used"æ¥è¯¢ç»æï¼