oracle之臨時表空間的收縮

liqilin0429發表於2012-03-06
收縮臨時表空間
SQL> conn /as sysdba
已連線。
SQL> col name for a44;
SQL> select file#,name,bytes/1024/1024 mb from v$tempfile;
     FILE# NAME                                                 MB
---------- -------------------------------------------- ----------
         1 E:\ORACLE\APP\ADMINISTRATOR\ORADATA\WNPSAIL\        297
           TEMP01.DBF

SQL> select * from dba_temp_free_space;
TABLESPACE_NAME                TABLESPACE_SIZE ALLOCATED_SPACE FREE_SPACE
------------------------------ --------------- --------------- ----------
TEMP                                 311427072       311427072  310378496
SQL> alter tablespace temp shrink space;
表空間已更改。
SQL> select file#,name,bytes/1024/1024 mb from v$tempfile;
     FILE# NAME                                                 MB
---------- -------------------------------------------- ----------
         1 E:\ORACLE\APP\ADMINISTRATOR\ORADATA\WNPSAIL\  1.9921875
           TEMP01.DBF
 

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

相關文章