A-A+

高版本exp导出低版本数据库 EXP-00008: 遇到 ORACLE 错误 904

2016年06月24日 Oracle 暂无评论 阅读 4,169 次

 

exp username/password@10.11.12.33/sid file=lspzk1.dmp tables=lspzk1

Export: Release 11.2.0.4.0 - Production on 星期五 6月 24 09:51:48 2016

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

已导出 ZHS16GBK 字符集和 UTF8 NCHAR 字符集

即将导出指定的表通过常规路径...

. . 正在导出表 LSPZK1

EXP-00008: 遇到 ORACLE 错误 904

ORA-00904: "MAXSIZE": 标识符无效

EXP-00008: 遇到 ORACLE 错误 942

ORA-00942: 表或视图不存在

EXP-00024: 未安装导出视图, 请通知您的 DBA

EXP-00000: 导出终止失败

 

可以发现,本地安装的Oracle 版本是Release 11.2.0.4.0,而数据库服务器端安装的Oracle 是Release 10.2.0.5.0

由于Oracle的imp/exp组件的操作原则--向下兼容,且有一些规则:
规则1:低版本的exp/imp可以连接到高版本(或同版本)的数据库服务器,但高版本的exp/imp不能连接到低版本的数据库服务器;
规则2:高版本exp出的dmp文件,低版本无法imp导出的文件;低版本exp出的dmp文件,高版本可以imp(即向下兼容);
规则3:从Oracle 低版本Export的数据可以Import到Oracle高版本中,但限于Oracle的相邻版本,如从Oracle 10 到 Oracle 11.对于两个不相邻版本间进行转换,如从Oracle 9 到 Oracle 11,则应先将数据输入到中间版本-Oracle 10,再从中间数据库转入更高版本Oracle 11.

解决办法是用10G 的客户端 exp导出无报错。

 

$ oerr exp 00008

00008, 00000, "ORACLE error %lu encountered"

// *Cause: Export encountered the referenced Oracle error.

// *Action: Look up the Oracle message in the ORA message chapters of this

// manual and take appropriate action.

给我留言