ORACLE/Script
ORACLE Temp file 관리 명령어 정리
아무래도오늘
2023. 9. 20. 10:50
728x90
반응형
temp 파일 경로 변경을 위해서는
신규 temp 테이블스페이스 생성 > 신규 temp 테이블스페이스를 default로 변경 > 기존 temp 삭제
순서로 진행하여야한다.
-- 신규 temp 테이블스페이스 생성
create temporary tablespace TEMP파일명 tempfile '/oratemp/temp01.dbf' size 1G;
-- default temp 변경
alter database default temporary tablespace TEMP파일명;
-- 기존 temp 삭제
drop tablespace TEMP파일명;
-- OS상의 데이터파일도 함께 삭제
drop tablespace TEMP파일명 including contents and datafiles;728x90
반응형