728x90
누군가 깔끔하게 보기좋게 쿼리를 뽑아놨길래~
select substr(a.tablespace_name,1,30) tablespace,
round(sum(a.total1)/1024/1024,1) "TotalMB",
round(sum(a.total1)/1024/1024,1)-round(sum(a.sum1)/1024/1024,1) "UsedMB",
round(sum(a.sum1)/1024/1024,1) "FreeMB",
round((round(sum(a.total1)/1024/1024,1)-round(sum(a.sum1)/1024/1024,1))/round(sum(a.total1)/1024/1024,1)*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;
320x100
'IT > Databases' 카테고리의 다른 글
oracle 캐릭터셋(characterset) 잘못변경 할 경우 (0) | 2021.04.30 |
---|---|
oracle 테이블 읽기 권한 주기 (0) | 2021.04.30 |
oracle blob or clob type empty insert 방법 (0) | 2021.04.30 |
sql developer에서 Diagram pdf로 다운받기 (0) | 2021.04.30 |
oracle procedure lock 오라클 프로시저 행 or 락 걸렸을 경우 처리 방안 (0) | 2021.04.30 |