首页 > 其他 > 详细

impdp 导入数据报错 ORA-01652

时间:2015-05-19 10:57:59      阅读:590      评论:0      收藏:0      [点我收藏+]

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; 


至此,完毕!





本文出自 “虫子” 博客,请务必保留此出处http://worms.blog.51cto.com/969144/1652629

impdp 导入数据报错 ORA-01652

原文:http://worms.blog.51cto.com/969144/1652629

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!