temporary tablespace指定

   今天備份我練習環境的時候發現temporary不存在,無法備份,我表示不理解,我沒有刪除過呢,奇怪,後來重新創建並指定臨時表空間。                              sql>create temporary tablespace temp2 tempfile '/opt/oracle/oradata/ORCL/temp02.dbf' size 200M autoextend on next 10M maxsize unlimited;                                                            sql>alter database default temporary tablespace temp2;                                                                                                      然後exp 備份, ok 了。查看目前的temporary tablespace

 

 

 

SQL> select name from v$tempfile;

NAME
———————————————————————
/opt/oracle/oradata/conner/temp02.dbf
/opt/oracle/oradata/conner/temp03.dbf

SQL> select username,temporary_tablespace from dba_users;
USERNAME TEMPORARY_TABLESPACE
—————————— ——————————
SYS TEMP
SYSTEM TEMP
TEST TEMP

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章