åäºä¸ä¸ªï¼ä½ è¯è¯ï¼
select a.TABLESPACE_NAME "TableSpace Name",
round(a.BYTES / 1024 / 1024) "MB Allocated",
round((a.BYTES-nvl(b.BYTES, 0)) / 1024 / 1024) "MB Used",
nvl(round(b.BYTES / 1024 / 1024), 0) "MB Free",
round(((a.BYTES-nvl(b.BYTES, 0))/a.BYTES)*100,2) "Pct Used"
from (select TABLESPACE_NAME,
sum(BYTES) BYTES
from sys.dba_data_files
group by TABLESPACE_NAME) a,
(select TABLESPACE_NAME,
sum(BYTES) BYTES
from sys.dba_free_space
group by TABLESPACE_NAME) b
where a.TABLESPACE_NAME = b.TABLESPACE_NAME (+)
And a.tablespace_name in ('表空é´å','表空é´å','表空é´å');
追é®ææ¯è¦ç»è®¡è¡¨ç©ºé´ä¸çä¸å¼ 表ç大å°ï¼ä¸æ¯ç»è®¡è¡¨ç©ºé´ç大å°
追çä¸å¥½ææï¼é¢æ²¡çæ¸
ã
è¿ä¸ªæå没æè¯è¿ï¼åµåµãææºä¼æä¹å¾è¯è¯ï¼ç°å¨æ²¡æç¯å¢ç说ä¹æ²¡å¥ææã
追é®è¿æ¯è°¢è°¢å¦