欢迎光临
我们一直在努力

impdp 导入数据报错 ORA-01652

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

已经自动扩展到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> 

这里可能会出现添加一个tempfile还不够用的现象,取决于导入数据数量的大小。因为impdp导入的是逻辑数据会吃内存。

导入完成后,再释放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; 

至此,完毕!

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。