ITPub博客

首页 > 数据库 > Oracle > impdp ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1'

impdp ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1'

原创 Oracle 作者:guocun09 时间:2021-11-02 21:11:41 1 删除 编辑

对 之前存在表结构的表impdp导入 超过500G的数据时报错:ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1' 

DB Version:12.2.0.1

只好先执行Import > stop_job=immediate

查看:

735366.1 - Run Out Of Space On Undo Tablespace Using Import/Export DataPump
727894.1 - Import Data Pump Exhausts Undo Tablespace - ORA-30036

Cause

Excess undo generation can occur when there is a Primary Key (PK) constraint present on the system.

Import datapump will perform index maintenance and this can increase undo usage especially if there is other DML occurring on the database).

Solution

Disable constraints for Primary Keys (PK) on the database during import datapump load.

This will reduce undo as index maintenance will not be performed.

用以下通过:

1、impdp先导入数据(如果有index和约束的先drop)

1)CONTENT=METADATA_ONLY
TABLE_EXISTS_ACTION=REPLACE
EXCLUDE=CONSTRAINT
EXCLUDE=INDEX

2)CONTENT=DATA_ONLY

2、再创建索引,约束等

参考: 客户在做impdp时,报“ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1'”_ITPUB博客

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25583515/viewspace-2840311/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
DBA,掌握Oracle,SQLServer,MySQL,hadoop,casscandra等数据库。喜爱深入研究数据库技术原理,擅长管理和优化工作。

注册时间:2011-10-02

  • 博文量
    177
  • 访问量
    686671