溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

impdp 導(dǎo)入數(shù)據(jù)報錯 ORA-01652

發(fā)布時間:2020-08-05 11:25:07 來源:網(wǎng)絡(luò) 閱讀:5304 作者:wangluochongzi 欄目:關(guān)系型數(shù)據(jù)庫

Oracle 11.2.0.4.0

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

ORA-39171: Job is experiencing a resumable wait.

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

ORA-39171: Job is experiencing a resumable wait.

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

查看temp 表空間


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

  2  ;


FILE_NAME

--------------------------------------------------------------------------------

        MB AUT TABLESPACE_NAME

---------- --- ------------------------------

/data0/oracle/oradata/hldbm/hldbm/temp01.dbf

     32767 YES TEMP

已經(jīng)自動擴(kuò)展到32G了,db_block為8192,dbf只能增長到32G。

解決方法:


給temp表空間添加tempfile并文件開啟autoextend。

SQL> alter tablespace temp add tempfile '/data0/oracle/oradata/hldbm/hldbm/temp02.dbf' size 1000M autoextend on;


Tablespace altered.


SQL> 

這里可能會出現(xiàn)添加一個tempfile還不夠用的現(xiàn)象,取決于導(dǎo)入數(shù)據(jù)數(shù)量的大小。因?yàn)閕mpdp導(dǎo)入的是邏輯數(shù)據(jù)會吃內(nèi)存。

導(dǎo)入完成后,再釋放temp空間。

釋放過程:

create temporary tablespace TEMP01   

     TEMPFILE '/data0/oracle/oradata/hldbm/hldbm/tempfile01.dbf' SIZE 1000M   

     REUSE AUTOEXTEND ON;


alter database default temporary tablespace TEMP01;  


drop tablespace temp including contents and datafiles; 


create temporary tablespace TEMP   

     TEMPFILE '/data0/oracle/oradata/hldbm/hldbm/temp01.dbf' SIZE 1000M   

     REUSE AUTOEXTEND ON;

alter database default temporary tablespace TEMP; 


drop tablespace TEMP01 including contents and datafiles; 


至此,完畢!





向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI