1.建立中轉臨時表空間
create temporary tablespace TEMP1 TEMPFILE E:\ORACLEDATABASE\JZTGOS_CENTER\JZTGOS_C\DATAFILE\temp1.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 1M MAXSIZE
UNLIMITED;
2.改變預設臨時表空間 為剛剛建立的新臨時表空間temp1
alter database default temporary tablespace temp1;
3.删除原來臨時表空間
drop tablespace temp including contents and datafiles;
4.重新建立臨時表空間
create temporary tablespace TEMP TEMPFILE E:\ORACLEDATABASE\JZTGOS_CENTER\JZTGOS_C\DATAFILE\temp.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 1M MAXSIZE
5.重置預設臨時表空間為建立的temp表空間
alter database default temporary tablespace temp;
6.删除中轉用臨時表空間
drop tablespace temp1 including contents and datafiles;
7.如有必要重新指定使用者表空間為重建的臨時表空間
alter user test temporary tablespace temp ;