expdp时遇到ORA-31693&ORA-00922

expdp时遇到ORA-31693&ORA-00922
执行expdp遇到如下报错:
ORA-31693: Table data object "HQ_X1"."B3901_P" failed to load/unload and is being skipped due to error:
ORA-00922: missing or invalid option
ORA-31693: Table data object "HQ_X1"."B3903" failed to load/unload and is being skipped due to error:
ORA-00922: missing or invalid option
ORA-31693: Table data object "HQ_X1"."B3904" failed to load/unload and is being skipped due to error:
ORA-00922: missing or invalid option
ORA-31693: Table data object "HQ_X1"."B3906" failed to load/unload and is being skipped due to error:
ORA-00922: missing or invalid option
ORA-31693: Table data object "HQ_X1"."B3905" failed to load/unload and is being skipped due to error:
ORA-00922: missing or invalid option
expdp命令为:
nohup expdp HQ_X1/HQ_X1 DUMPFILE=HQ_X1%u.DMP DIRECTORY=DIR1 parallel=8  flashback_scn=10838324803 &
官方的一篇文档给出了解释:
A Datapump Export fails with:
ORA-31693: Table data object "SCPOMGR"."FCST" failed to load/unload and is being skipped due to error:
ORA-00922: missing or invalid option
CHANGES
The use of the PARALLEL command line option triggers this issue.
CAUSE
The cause of this problem has been identified in:
Bug:8734963 - ORA-31693 AND ORA-922 OCCURS IN EXPDP WITH PARALLEL PARAMETER.
closed as duplicate of:
Bug:9243068 - EXPDP RETURNS ORA-00922: MISSING OR INVALID OPTION WHEN USING CONSISTENT=TRUE
The cause of the issue is an incorrect PARALLEL value for an external table to be exported when using deferred segment creation.
Bug:9243068 is fixed in RDBMS 12.1.
SOLUTION
To implement a solution for Bug:9243068, please execute any of the below alternative solutions:
Upgrade to 12.1 in which Bug:9243068 is fixed.
OR
Apply patchset release 11.2.0.4 in which Bug:9243068 is fixed.
OR
Download and apply interim Patch:9243068, if available for your platform and RDBMS release. To check for conflicting patches, please use the MOS Patch Planner Tool. If no patch is available, file a Service Request through My Oracle Support for your specific Oracle version and platform.
OR
Do not use the PARALLEL command line option.
BUG8734963导致了报错,如果要避免报错,或者禁用parallel,或者打patch,先把patch下下来之后,发现这个patch可以在线apply:
<instance_shutdown>false</instance_shutdown>
<instance_shutdown_message></instance_shutdown_message>
<online_rac_installable>true</online_rac_installable>
该patch仅仅是更新一个pld文件,并更新了一个package.抽个系统空闲时段,apply patch:
[oracle@dbhost 9243068]$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch apply
Invoking OPatch 11.1.0.6.6
Oracle 中间补丁程序安装程序版本 11.1.0.6.6
版权所有 (c) 2009, Oracle Corporation。保留所有权利。
Oracle 主目录       : /u01/app/oracle/product/11.2.0/db_1
主产品清单: /u01/app/oraInventory
   从           : /etc/oraInst.loc
OPatch 版本    : 11.1.0.6.6
OUI 版本       : 11.2.0.1.0
OUI 位置      : /u01/app/oracle/product/11.2.0/db_1/oui
日志文件位置 : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2015-06-23_22-55-59下午.log
Patch history file: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
ApplySession 将中间补丁程序 '9243068' 应用到 OH '/u01/app/oracle/product/11.2.0/db_1'
Running prerequisite checks...
OPatch 从产品清单中检测到非集群 Oracle 主目录, 将仅对本地系统打补丁。
为 Oracle 主目录备份文件和产品清单 (不是用于自动回退)
正在备份受补丁程序 '9243068' 影响的文件以用于还原。此操作将需要一些时间...
正在备份受补丁程序 '9243068' 影响的文件以用于回退。此操作将需要一些时间...
正在为组件 oracle.rdbms, 11.2.0.1.0 打补丁...
将文件复制到 "/u01/app/oracle/product/11.2.0/db_1/rdbms/admin/prvtbpw.plb"
正在为组件 oracle.rdbms.dbscripts, 11.2.0.1.0 打补丁...
将文件复制到 "/u01/app/oracle/product/11.2.0/db_1/rdbms/admin/prvtbpw.plb"
ApplySession 将中间补丁程序 '9243068' 添加到产品清单
Verifying the update...
Inventory check OK: Patch ID 9243068 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 9243068 are present in Oracle Home.
OPatch succeeded.
[oracle@dbhost 9243068]$
patch apply之后,以sysdba执行了prvtbpw.plb。
再次expdp时,未再报错,问题解决。
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值