SELECT TT.FILE_ID
, TT.FILE_NAME
, TT.TABLESPACE_NAME
, ROUND(TT.BYTES / 1024 / 1024) AS "TOTAL_SIZE(MB)"
, ROUND(TF.BYTES / 1024 / 1024) AS "FREE_SIZE(MB)"
, ROUND((TT.BYTES - TF.BYTES) / 1024 / 1024) AS "USED_SIZE(MB)"
, ROUND(TF.BYTES / TT.BYTES * 100, 1) AS "FREE_PERCENT(%)"
, ROUND((TT.BYTES - TF.BYTES) / TT.BYTES * 100, 1) AS "USED_PERCENT(%)"
, TT.BLOCKS AS TOTAL_BLOCK
, TF.BLOCKS AS FREE_BLOCKS
, TT.STATUS
, TT.AUTOEXTENSIBLE
, TT.ONLINE_STATUS
FROM DBA_DATA_FILES TT
JOIN (SELECT TF.FILE_ID
, TF.TABLESPACE_NAME
, SUM(TF.BYTES) AS BYTES
, SUM(TF.BLOCKS) AS BLOCKS
FROM DBA_FREE_SPACE TF
GROUP BY TF.FILE_ID
, TF.TABLESPACE_NAME) TF ON TF.FILE_ID = TT.FILE_ID
ORDER BY TT.TABLESPACE_NAME;
테이블스페이스 사용량 조회(내가 만든거)
|
2016.09.07 08:41:27
|
2016.09.07 08:41:27
|
435
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2017.09.07
2016.11.24
2016.10.20
2016.10.19
2016.09.21
2016.09.07
2016.07.07
2016.02.16
2016.02.13
2016.02.13
2016.02.12