728x90
select tablespace_name, "TOTAL_SIZE(MB)", "FREE_SIZE(MB)", file_name
from
(
select file_name, tablespace_name, round(sum(bytes/1024/1024),2) "TOTAL_SIZE(MB)" from dba_data_files
group by file_name, tablespace_name
) inner join
(
select tablespace_name, round(sum(bytes/1024/1024),2) "FREE_SIZE(MB)" from dba_free_space
group by tablespace_name
) using (tablespace_name)
쿼리로 테이블 스페이스 용량을 체크 한 후 상황파악을 ...
728x90