时间:2021-07-01 10:21:17 帮助过:48人阅读
expdp时遇到ORA-31693ORA-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:
该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时,未再报错,问题解决。
Oracle导入导出expdp IMPDP详解
Oracle 10g expdp导出报错ORA-4031的解决方法
Oracle 10gr2 rac expdp 报错UDE-00008 ORA-31626
Oracle中利用expdp/impdp备份数据库的使用说明
Oracle备份还原(expdp/impdp)
impdp ORA-39002,ORA-39166,ORA-39164的问题及解决
本文永久更新链接地址: