Oracle/Administrator
Temporary Tablespace 관리
타울
2012. 4. 4. 12:35
현재 temporary tablespace 조회
select * from database_properties where property_name like '%TEMP%'; PROPERTY_NAME PROPERTY_VALUE DESCRIPTION ------------------------------ -------------------- ---------------------------------- DEFAULT_TEMP_TABLESPACE TEMP Name of default temporary tablespace--
select FILE_NAME, TABLESPACE_NAME, BYTES / 1024/ 1024 , STATUS, AUTOEXTENSIBLE from dba_temp_files; FILE_NAME TABLESPACE BYTES/1024/1024 STATUS AUT -------------------------------------------------- ---------- --------------- --------- --- /home/oracle/oradata/testdb/temp2.dbf TEMP2 10 AVAILABLE YES-------
Temporary Tablespace 생성
autoextend , maxsize 는 옵션이다. 임의로 설정하면 된다.
create temporary tablespace temp tempfile '/home/oracle/oradata/testdb/temp01.dbf' size 10m autoextend on next 1m maxsize 100m;----
Default Temporary Tablespace 설정
alter database default temporary tablespace temp;---
관련 에러 리포팅
Export 나 Import 시에 Temporary 크기가 작아서 나는 에러
메시지
AlertSID.ora 파일 로그
EXP-00008: ORACLE error 25153 encountered
ORA-25153: Temporary Tablespace is Empty
해결책
Temporary Tablespace 크기가 작아서 발생한다. resize 등으로 크기를 늘려준다.