oracle學習筆記:重建臨時表空間


重建臨時表空間

 

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表空間,解決辦法是退出該會話,重新登錄並刪除。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM