SELECT d.tn,
ROUND (total / 1000000) "total(MB)",
ROUND (free / 1000000) "free(MB)",
TO_CHAR (ROUND (free / total * 100, 1), '99.9') || '%' rate
FROM ( SELECT tablespace_name tn, SUM (bytes) total
FROM dba_data_files
GROUP BY tablespace_name) d,
( SELECT tablespace_name tn, SUM (bytes) free
FROM dba_free_space
GROUP BY tablespace_name) f
WHERE d.tn = f.tn
ORDER BY 4 DESC
'IT > DB' 카테고리의 다른 글
Performance tuning #1 (0) | 2014.04.24 |
---|---|
Teradata Performance Tuning - Basic Tips (0) | 2014.04.24 |
Teradata SQL Query Optimization Or Performance Tuning (0) | 2014.04.24 |
Oracle Database XE Installation(oracle-xe-11.2.0-1.0.x86_64.rpm) 오라클 설치 (1) | 2013.03.14 |
# Database 용어 정리 (0) | 2011.09.18 |
댓글