Oracle9i重建和切換臨時表空間

therorawt發表於2008-03-04

先建立個臨時表空間,然後把它置為預設臨時表空間,然後刪除之前的。具體步驟如下:
1. SQL> select username,temporary_tablespace from dba_users;

2. SQL> select * from v$tempfile;

3. SQL> CREATE TEMPORARY TABLESPACE temp1 TEMPFILE 'F:ORACLEORADATAMYDBTEMP02.DBF' SIZE 100M

AUTOEXTEND ON;

[@more@]

SQL> ALTER TABLESPACE TEMP1 ADD TEMPFILE 'F:ORACLEORADATAMYDBTEMP01.DBF' SIZE 100M

4. SQL> alter database default temporary tablespace temp1;

SQL> select username,temporary_tablespace from dba_users;

5. SQL> drop tablespace temp;

SQL> select * from v$tempfile;

SQL> select file_name,tablespace_name,bytes/1024/1024 MB,autoextensible from dba_temp_files;

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9896745/viewspace-1000354/,如需轉載,請註明出處,否則將追究法律責任。

相關文章