Oracle臨時表空間滿了解決辦法


/**查看當前的數據庫默認表空間**/

    SQL>select * from database_properties where property_name='DEFAULT_TEMP_TABLESPACE';

/**確認當前的臨時表空間為TEMP**/

/**查看目前臨時表空間的大小**/

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

/**創建另一個臨時表空間**/

    SQL>create temporary tablespace TEMP2 TEMPFILE 'D:\oradata\temp02.dbf' SIZE 10M REUSE AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED;

/**改變缺省臨時表空間為剛剛創建的新臨時表空間temp2**/

    SQL>alter database  default temporary tablespace temp2; 

/**刪除原來臨時表空間**/

    SQL>drop tablespace temp including contents and datafiles;

/**重新創建臨時表空間temp **/

    SQL>create temporary tablespace TEMP TEMPFILE 'D:\oradata\temp01.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED; 

/**重置缺省臨時表空間為新建的temp表空間**/

    SQL>alter database default temporary tablespace temp; 

/**刪除中轉用臨時表空間 **/

    SQL>drop tablespace temp2 including contents and datafiles; 

/**重新指定用戶表空間為重建的臨時表空間 **/

    SQL>alter user yhm temporary tablespace temp;


免責聲明!

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



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