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;