重建臨時表空間
1、創建中轉臨時表空間
create temporary tablespace TEMP1 tempfile '/oradata/HXDB/datafile/temp02.dbf' size 256M reuse autoextend on next 16M maxsize 1024M;
2、修改缺省臨時表空間
alter database default temporary tablespace temp1;
3、刪除原來臨時表空間
drop tablespace temp including contents and datafiles;
4、重建臨時表空間
create temporary tablespace TEMP tempfile '/oradata/HXDB/datafile/temp01.dbf' size 256M reuse autoextend on next 16M maxsize 1024M;
5、修改缺省臨時表空間
alter database default temporary tablespace temp;
6、刪除中轉用臨時表空間
drop tablespace temp1 including contents and datafiles;
注意:執行該條語句時數據庫會一直處於等待中,原因是這個會話仍然在使用temp1表空間,解決辦法是退出該會話,重新登錄並刪除。