새소식

⇥ DevOps Tech 🙋🏻‍♀️/✏️ TIBERO

[TIBERO] TEMP TABLESPACE 관련 정리

  • -
반응형

1. TEMP TABLESPACE 현황 조회

select tablespace_name, ROUND(sum(bytes)/1024/1024/1024,2) GB
       from dba_temp_files
       group by tablespace_name;

 

2. TEMP TABLESPACE 생성 및 기본 TEMP 변경

# 새로운 TEMP tablespace 생성
create temporary tablespace tmp tempfile '데이터파일 경로' size 1G autoextend on;

# 기본 temp tablespace 를 새로운 temp tablespace 로 변경
alter database default temporary tablespace tmp;

 

3. TEMP TABLESPACE 에 데이터파일 추가

alter tablespace TMP add tempfile '데이터파일 이름' size 1G autoextend on next 10m;
반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.