Oacle 체크 표 공간 크기, 남 은 공간, 표 점용 공간
2908 단어 Oacle
--oracle
select f.tablespace_name tablespace_name, round((d.sumbytes / 1024 / 1024)) total_m, round((d.sumbytes - f.sumbytes) / 1024 / 1024) used_m, round(f.sumbytes / 1024 / 1024, 2) free_m, round((d.sumbytes - f.sumbytes) * 100 / d.sumbytes, 2) || '%' used_percent, round((f.sumbytes) * 100 / d.sumbytes, 2) || '%' free_percent from (select tablespace_name, sum(bytes) sumbytes from dba_free_space group by tablespace_name) f, (select tablespace_name, sum(bytes) sumbytes from dba_data_files group by tablespace_name) d where f.tablespace_name = d.tablespace_name(+) order by (d.sumbytes - f.sumbytes) * 100 / d.sumbytes desc;
----
Select Segment_Name,Sum(bytes)/1024/1024 From User_Extents Group By Segment_Name ;
select OWNER, t.segment_name, t.segment_type, sum(t.bytes / 1024 / 1024) mmm from dba_segments t where t.owner = 'IUBA_DATA' and t.segment_type='TABLE' group by OWNER, t.segment_name, t.segment_type order by mmm desc;
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
자바 작업 은 Clob 또는 NClob 데이터 형식의 저장 프로 세 스 인 스 턴 스 를 포함 합 니 다.텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.