728x90
오라클 테이블스페이스 용량 확인하기
select substr(a.tablespace_name,1,30) tablespace,
round(sum(a.total1)/1024/1024/1024,2) TotalGB,
round(sum(a.total1)/1024/1024/1024,2)-round(sum(a.sum1)/1024/1024/1024,2) UsedGB,
round(sum(a.sum1)/1024/1024/1024,2) FreeGB,
round((round(sum(a.total1)/1024/1024/1024,2)-round(sum(a.sum1)/1024/1024/1024,2))/round(sum(a.total1)/1024/1024/1024,2)*100,2) Used
from
(select tablespace_name,0 total1,sum(bytes) sum1,max(bytes) MAXB,count(bytes) cnt
from dba_free_space
group by tablespace_name
union
select tablespace_name,sum(bytes) total1,0,0,0
from dba_data_files
group by tablespace_name) a
group by a.tablespace_name
order by tablespace;
'Oracle' 카테고리의 다른 글
오라클 PK 인덱스 생성, 삭제, 컬럼 추가하는 방법 (2) | 2024.06.19 |
---|---|
오라클 코멘트 한 번에 복사하기(FROM DBLINK) (0) | 2024.06.17 |
오라클 패키지 생성 CREATE OR REPLACE PACKAGE body (0) | 2024.05.23 |
오라클 데이터베이스명, 인스턴스 확인 (0) | 2024.05.10 |
오라클 데이터베이스 SID 인스턴스 추가(DBCA + oracle 11g) (0) | 2024.05.10 |