Troubleshooting ORA-01555/ORA-01628/ORA-30036 During Export and Import (Doc ID 1579437.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.2.0.4 [Release 9.2 to 11.2]
Information in this document applies to any platform.

PURPOSE

Purpose of this document is to have a checklist for troubleshooting ORA-01555/ORA-01628/ORA-30036 during export and import. 

本文档旨在提供一个清单,用于在导出和导入期间对ORA-01555/ORA-01628/ORA-30036进行故障排除

This note will also discuss some known issues on this subject.

本说明还将讨论有关此主题的一些已知问题

TROUBLESHOOTING STEPS

Before diagnosing undo errors reported during export and import, it is important first to check UNDO tablespace utilization and tuned undo retention as follow :

在诊断导出和导入期间报告的 undo 错误之前,重要的是首先要检查UNDO表空间利用率和 tuned undo retention,如下所示

  1. SQL> SELECT DISTINCT STATUS,TABLESPACE_NAME, SUM(BYTES), COUNT(*) FROM DBA_UNDO_EXTENTS GROUP BY STATUS, TABLESPACE_NAME;
  2.  
  3. SQL> select max(maxquerylen),max(tuned_undoretention) from v$undostat;
  4.  
  5. SQL> select max(maxquerylen),max(tuned_undoretention) from DBA_HIST_UNDOSTAT;
  6.  
  7. SQL> select sum(bytes) from dba_free_space where tablespace_name='&UNDOTBS';

Before proceed, Invistiagte/Resolve any excessive allocation of ACTIVE/UNEXPIRED extents and high calculation of tuned_undoretention.

在继续之前,请检查/解决 ACTIVE/UNEXPIRED extents的任何过度分配以及 tuned_undoretention 的大量计算

1) ORA-01555 during export  导出期间为ORA-01555

check alert log and export log to determine 1555 error message. We have two different types of 1555 error :

检查 alert log 和 export log 以确定1555错误消息。我们有两种不同类型的1555错误

a. ORA-1555 accessing UNDO data at LOB segment :  ORA-1555在LOB段访问UNDO数据

ORA-01555: snapshot too old: rollback segment number  with name "" too small

notice that segment name is null "".

or/and

ORA-22924: snapshot too old

b. ORA-1555 accessing UNDO data at UNDO tablespace :  ORA-1555在UNDO表空间访问UNDO数据

ORA-01555: snapshot too old: rollback segment number 107 with name "_SYSSMU107_1253191395$" too small

notice that segment name is existing "_SYSSMU107_1253191395$" which mean undo data inside UNDO tablespace.

请注意,段名称是现有的 "_SYSSMU107_1253191395$" ,这表示 undo数据 在UNDO表空间中。

a. ORA-1555 accessing UNDO data at LOB segment :

ORA-01555 for LOB segment is caused by one of the following reasons :

LOB段的ORA-01555是由于以下原因之一引起的

1. LOB segment corruption :  LOB段损坏

To check the LOB table corruption, review the following documents : 要检查LOB表损坏,请查看以下文档

Export Receives The Errors ORA-1555 ORA-22924 ORA-1578 ORA-22922 (Doc ID 787004.1)
Export Fails With ORA-2354 ORA-1555 ORA-22924 and How To Confirm LOB Segment Corruption Using Export Utility? (Doc ID 833635.1)
ORA-01555 And Other Errors while Exporting Table With LOBs, How To Detect Lob Corruption. (Doc ID 452341.1)

2. If no LOB corruption found, so Issues with Retention/Pctversion values :  如果未发现LOB损坏,则 Retention/Pctversion 值的问题

You may need to increase Retention/Pctversion. Check following document carefully :  您可能需要增加 Retention/Pctversion。仔细检查以下文件

LOBs and ORA-01555 troubleshooting (Doc ID 846079.1)

b. ORA-1555 accessing UNDO data at UNDO tablespace : 

This is handled as a normal 1555 error. You may need to increase undo retention before run export and revert it back after export finish successfully :

这被视为正常的1555错误。您可能需要在运行导出之前增加undo retention,并在导出成功完成后将其还原

  1. alter system set undo_retention=<NEW_VALUE>;
  2.  
  3. >> run export till finish successfully. --运行导出,直到成功完成
  4.  
  5. alter system set undo_retention=<OLD_VALUE>;

Note: It is valid that ORA-1555 reported accessing UNDO data at UNDO tablespace when exporting a table with LOB column. In this case you need to identify which undo segment name is mentioned at 1555 error message as explained above and diagnose accordingly.

注意:在导出带有LOB列的表时,ORA-1555报告了在UNDO表空间上访问UNDO数据是有效的。在这种情况下,您需要如上所述确定在1555错误消息中提到哪个撤消段名称,并进行相应的诊断

2) ORA-01628/ORA-30036 during import  导入期间ORA-01628/ORA-30036

It is common to encounter 1628 or 30036 error during import. The key point here is the amount of UNDO generated by import utility.

导入期间通常会遇到1628或30036错误。关键是导入程序生成的UNDO数量

Generally, to resolve both errors, you need to minimize the undo space allocated during import as much as possible and allocate enough UNDO space.

通常,要解决这两个错误,您需要尽可能减少导入期间分配的undo空间,并分配足够的UNDO空间

For examples :

- excluding indexes and statistics from import then create/gather them manually after import finish

- 从导入中排除索引和统计信息,然后在导入完成后手动创建/收集它们

- use TABLE_EXISTS_ACTION=REPLACE instead of APPEND or TRUNCATE.

- 使用 TABLE_EXISTS_ACTION = REPLACE 代替 APPEND 或 TRUNCATE

- use CONTENT=ALL instead of DATA_ONLY

- 使用CONTENT = ALL 而不是 DATA_ONLY

- Make sure all available UNDO segments are ONLINE during the import by setting _rollback_segment_count=999999

- 通过设置 _rollback_segment_count = 999999,确保在导入过程中所有可用的UNDO段均处于在线状态

  1. SQL> select status,count(*),tablespace_name from dba_rollback_segs group by status,tablespace_name;

Known issues :

Bug 17306264 - ORA-1628: MAX # EXTENTS (32765) REACHED FOR ROLLBACK SEGMENT - OFTEN ENCOUNTERE

Bug 17306264 or the Patch 17306264 for 11g readme contains pre-requisite step to set the below event
event="64000 trace name context forever, level 25"
We recommend to set the event 64000 to level 25, as mentioned in the readme of the patch.

How To Check the Usage of Active Undo Segments in AUM (Doc ID 1337335.1)

Data Pump (or other Oracle process) Reports ORA-01628: Max # Extents (32765) For Rollback Segment _SYSSMUx$ (Doc ID 1434643.1)

ORA-1628 Max # Extents Reached Using AUM On Locally Managed Tablespace (Doc ID 761176.1)

Ora-01628: Max # Extents (32765) Reached For Rollback Segment. (Doc ID 837853.1)

Troubleshooting ORA-30036 - Unable To Extend Undo Tablespace (Doc ID 460481.1)

Options to decrease use Of UNDO during import (Doc ID 952892.1)

Error ORA-30036 DataPump Import (IMPDP) Exhausts Undo Tablespace (Doc ID 727894.1)

Run Out Of Space On Undo Tablespace Using Import/Export DataPump (Doc ID 735366.1)

REFERENCES

NOTE:787004.1 - Export Receives The Errors ORA-1555 ORA-22924 ORA-1578 ORA-22922
NOTE:833635.1 - Export Fails With Errors ORA-2354 ORA-1555 ORA-22924 And How To Confirm LOB Segment Corruption Using Export Utility?
NOTE:452341.1 - ORA-01555 And Other Errors while Exporting Table With LOBs, How To Detect Lob Corruption.
NOTE:846079.1 - LOBs and ORA-01555 troubleshooting
NOTE:1337335.1 - How To Check the Usage of Active Undo Segments in AUM
NOTE:1434643.1 - Data Pump (or other Oracle process) Reports ORA-01628: Max # Extents (32765) For Rollback Segment _SYSSMUx$
NOTE:761176.1 - ORA-1628 Max # Extents Reached Using AUM On Locally Managed Tablespace
NOTE:837853.1 - Ora-01628: Max # Extents (32765) Reached For Rollback Segment.
NOTE:460481.1 - Troubleshooting ORA-30036 - Unable To Extend Undo Tablespace
NOTE:952892.1 - Options to decrease use Of UNDO during import
NOTE:727894.1 - Error ORA-30036 DataPump Import (IMPDP) Exhausts Undo Tablespace
NOTE:735366.1 - Run Out Of Space On UNDO Tablespace Using DataPump Import/Export

Troubleshooting ORA-01555/ORA-01628/ORA-30036 During Export and Import (Doc ID 1579437.1)的更多相关文章

  1. Troubleshooting ORA-30036 - Unable To Extend Undo Tablespace (Doc ID 460481.1)

    Troubleshooting ORA-30036 - Unable To Extend Undo Tablespace (Doc ID 460481.1) APPLIES TO: Oracle Da ...

  2. Troubleshooting ORA-1628 - max # extents (32765) reached for rollback segment <SEGMENT_NAME> (Doc ID 1580182.1)

    Troubleshooting ORA-1628 - max # extents (32765) reached for rollback segment <SEGMENT_NAME> ( ...

  3. Troubleshooting ORA-01555 - Snapshot Too Old: Rollback Segment Number "String" With Name "String" Too Small (Doc ID 1580790.1)

    Troubleshooting ORA-01555 - Snapshot Too Old: Rollback Segment Number "String" With Name & ...

  4. Oracle启动中,spfile.ora、init<SID>.ora、spfile<SID>.ora 这三个文件正确的先后顺序是什么?

    Oracle启动中,spfile.ora.init<SID>.ora.spfile<SID>.ora 这三个文件正确的先后顺序是什么? 解答:启动数据库,使用startup命令 ...

  5. Troubleshooting ORA-12547 TNS: Lost Contact (Doc ID 555565.1)

    Troubleshooting ORA-12547 TNS: Lost Contact (Doc ID 555565.1) This error can occur in following scen ...

  6. Master Note: Troubleshooting ORA-1548 error (Doc ID 1577988.1)

    APPLIES TO: Oracle Database Cloud Schema Service - Version N/A and laterOracle Database Exadata Clou ...

  7. Click to add to Favorites Troubleshooting: High Version Count Issues (Doc ID 296377.1)

    Copyright (c) 2018, Oracle. All rights reserved. Oracle Confidential. Click to add to Favorites Trou ...

  8. Troubleshooting ORA-30013 Error (Doc ID 1578717.1)

    Troubleshooting ORA-30013 Error (Doc ID 1578717.1) APPLIES TO: Oracle Database - Enterprise Edition ...

  9. LOBs and ORA-01555 troubleshooting (Doc ID 846079.1)

    LOBs and ORA-01555 troubleshooting (Doc ID 846079.1) APPLIES TO: Oracle Database Cloud Schema Servic ...

随机推荐

  1. 测试环境部署之填坑记录-Expected one result (or null) to be returned by selectOne(), but found: 2

    最近在部署性能测试环境的时候,环境 部署好以后,部分功能出现接口查询异常,问题现象: 拿到错误,肯定要先判断是前端还是后端代码的问题,最简单的方式是抓包查看: 以上是报错页面捕获的接口报错,很明显的接 ...

  2. JS基础语法---对象总结

        * 编程思想:     * 面向过程:凡事亲力亲为,所有的事情的过程都要清楚,注重的是过程     * 面向对象:提出需求,找到对象,对象解决这个问题,我们要结果,注重的是结果     *   ...

  3. git clone克隆项目太慢,或者直接导致克不下来的解决办法(转载请注明出处)

    从github下载项目下来,由于项目提交历史过多等各种原因导致文件太大,clone的时候非常的慢,或者直接出现 error: RPC failed; curl 18 transfer closed w ...

  4. 微信小程序的bindtap事件

    在微信小程序中,要想获取元素的属性值,需要用到 bindtap事件,如果想要正确获取到属性值,对属性的命名还有一定要求 如下是正确的方式data-money-Num="9.93": ...

  5. 纸壳CMS现已支持自定义扩展字段

    简介 纸壳CMS是开源免费的可视化内容管理系统. GitHub https://github.com/SeriaWei/ZKEACMS 自定义字段 纸壳CMS现已支持自定义字段,在不修改代码的情况下, ...

  6. [PHP] 解决php中上传大文件的错误

    修改nginx配置文件,下面这个参数client_max_body_size 110M; 修改php配置文件中下面两个参数在php.ini中找到下面两个配置,配置项给改大,如果找不到php.ini的位 ...

  7. 201871010102-常龙龙《面向对象程序设计(java)》第十五周学习总结

    项目 内容 这个作业属于哪个课程 https://www.cnblogs.com/nwnu-daizh/ 这个作业的要求在哪里 https://www.cnblogs.com/nwnu-daizh/p ...

  8. CSRF介绍

    对于常规的Web攻击手段,如XSS.CRSF.SQL注入.(常规的不包括文件上传漏洞.DDoS攻击)等,防范措施相对来说比较容易,对症下药即可,比如XSS的防范需要转义掉输入的尖括号,防止CRSF攻击 ...

  9. 201871010113-刘兴瑞《面向对象程序设计(java)》第八周学习总结

    项目 内容 这个作业属于哪个课程 <任课教师博客主页链接> https://www.cnblogs.com/nwnu-daizh/ 这个作业的要求在哪里 <作业链接地址>htt ...

  10. CometOJ10C 鱼跃龙门

    题目链接 problem 实际上就是对于给定的\(n\)求一个最小的\(x\)满足\(\frac{x(x+1)}{2}=kn(k\in N^*)\). solution 对上面的式子稍微变形可得\(x ...