首页 >

Oracle 11g r2环境imp导入报IMP-00051与IMP-00008错误

数据库|mysql教程Oracle 11g r2环境imp导入报IMP-00051与IMP-00008错误
IMP-00051,IMP-00008,Oracle 11g
数据库-mysql教程
tablayout 源码,ubuntu切换程序,除了tomcat外还要哪些,央视新闻爬虫,php怎么计算时间差,seo优化软件有哪些哪个靠谱lzw
今天客户在imp导入数据的时候遇到了下面的报错信息IMP-00051: Direct path exported dump file contains illegal column lengthI
易语言网页qq登录源码,vscode使用卡,ubuntu变成了grub界面,tomcat 优雅退出,cc sqlite3,织梦防伪码查询插件,前端样式框架有哪些,pathon爬虫简单案例,php获取js,金连接淘宝seo,开发网站免签约支付宝接口,.net网页qq客服,c web 模板之家,京东手机版活动页面,营运车辆动态管理系统源码,java程序设计代码lzw
php网页论坛源码,ubuntu 网非常慢,tomcat做成服务的日志,站长模拟爬虫,php页面跳转到其他页面,濟寧seolzw

今天客户在imp导入数据的时候遇到了下面的报错信息

IMP-00051: Direct path exported dump file contains illegal column length

IMP-00008: unrecognized statement in the export file

这个报错的原因与解决方法见如下官方文档

ALERT: Direct Path Export (EXP) Corrupts The Dump If An Empty Table Partition Exists (文档 ID 1604983.1)

修改时间:2013-12-19

类型:ALERT

In this Document

APPLIES TO:

Oracle Database – Enterprise Edition – Version 11.2.0.1 and later

Information in this document applies to any platform.

DESCRIPTION

You performed a direct path export (table, schema or full) using the traditional export utility (EXP). If the exported objects include an empty table partition, then the export dump is corrupt and cannot be imported.

OCCURRENCE

Only exp versions >= 11.2.0.1 are affected. The traditional export utility is de-supported beginning with the version 11g and is no more maintained.

SYMPTOMS

During import you may see one of the following issues:

IMP-00009: abnormal end of export file

Or:

IMP-00051: Direct path exported dump file contains illegal column length

IMP-00008: unrecognized statement in the export file

Or:

Import silently skips a part of the dump, tables are missing and later constraints cannot be created.

This is below demonstrated with a simple test:

connect test

create table part001

(

col001 number,

col002 varchar2(100)

)

partition by range (col001)

(

partition p001 values less than (10),

partition p002 values less than (100),

partition p003 values less than (1000)

);

insert into part001 values (5, ‘Text 5’);

insert into part001 values (500, ‘Text 500’);

commit;

#> exp test/password file=part001.dmp tables=part001 direct=y

This will show:

About to export specified tables via Direct Path …

. . exporting table PART001

. . exporting partition P001 1 rows exported

. . exporting partition P002 0 rows exported

. . exporting partition P003 1 rows exported

Export terminated successfully without warnings.

but the import breaks with error:

. importing TEST’s objects into TEST

. . importing partition “PART001″:”P001” 1 rows imported

. . importing partition “PART001″:”P002”

IMP-00009: abnormal end of export file

Import terminated successfully with warnings.

WORKAROUND

If you perform direct path exports using a version greater or equal 11.2.0.1 and you see the messages:

About to export specified tables via Direct Path …

. . exporting partition 0 rows exported

in the export output (or log file), then you obtain a corrupt dump. You can verify the dump with the commands:

#> imp user/passw full=y

or:

#> imp user/passw full=y show=y

which will show you one of the behaviors listed above.

To workaround this please use:

– conventional path export (exp direct=n)

Or:

– materialize the empty partitions before running direct path exports:

connect / as sysdba

exec dbms_space_admin.materialize_deferred_segments (schema_name => ‘TEST’, table_name => ‘PART001’, partition_name => ‘P002’);

Or:

– DataPump export (expdp)

HISTORY

[03-DEC-2013] – Document created

REFERENCES

BUG:13880226 – IMPORT FAIL WITH IMP-00051 AND IMP-00008

VMware+Linux+Oracle 10G RAC全程详细图解

在CentOS 6.4下安装Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

Oracle 11gR2 在VMWare虚拟机中安装步骤

本文永久更新链接地址:


Oracle 11g r2环境imp导入报IMP-00051与IMP-00008错误
  • Oracle 11g direct path read 等待事件的理解
  • Oracle 11g direct path read 等待事件的理解 | Oracle 11g direct path read 等待事件的理解 ...

    Oracle 11g r2环境imp导入报IMP-00051与IMP-00008错误
  • Oracle 11g 两个节点RAC 搭建单实例DG详细步骤以及注意事项
  • Oracle 11g 两个节点RAC 搭建单实例DG详细步骤以及注意事项 | Oracle 11g 两个节点RAC 搭建单实例DG详细步骤以及注意事项 ...

    Oracle 11g r2环境imp导入报IMP-00051与IMP-00008错误
  • Debian7安装Oracle 11g
  • Debian7安装Oracle 11g | Debian7安装Oracle 11g ...