expdp時遇到ORA-31693&ORA-00922,expdpora-31693

來源:互聯網
上載者:User

expdp時遇到ORA-31693&ORA-00922,expdpora-31693
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時,未再報錯,問題解決。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.