标题: Oracle 19c 打19.7 的RU opatchauto 报OPatchException: Unable to create patchobj [打印本页] 作者: 郑全 时间: 2020-6-20 01:27 标题: Oracle 19c 打19.7 的RU opatchauto 报OPatchException: Unable to create patchobj [root@sy-momdbase-113 bin]# /u01/app/oracle/product/19.3.0/db_1/OPatch/opatchauto apply /u01/setup/patch/30899722 -oh /u01/app/oracle/product/19.3.0/db_1/ -nonrolling
OPatchauto session is initiated at Sat Jun 20 01:10:19 2020
System initialization log file is /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchautodb/systemconfig2020-06-20_01-10-24AM.log.
Session log file is /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchauto/opatchauto2020-06-20_01-10-29AM.log
The id for this session is G5HQ
Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.3.0/db_1
Patch applicability verification failed on home /u01/app/oracle/product/19.3.0/db_1
Execution of [OPatchAutoBinaryAction] patch action failed, check log for more details. Failures:
Patch Target : sy-momdbase-113->/u01/app/oracle/product/19.3.0/db_1 Type[rac]
Details: [
---------------------------Patching Failed---------------------------------
Command execution failed during patching in home: /u01/app/oracle/product/19.3.0/db_1, host: sy-momdbase-113.
Command failed: /u01/app/oracle/product/19.3.0/db_1/OPatch/opatchauto apply /u01/setup/patch/30899722 -oh /u01/app/oracle/product/19.3.0/db_1 -target_type rac_database -binary -invPtrLoc /u01/app/oracle/product/19.3.0/db_1//oraInst.loc -jre /u01/app/oracle/product/19.3.0/db_1/OPatch/jre -persistresult /u01/app/oracle/product/19.3.0/db_1/opatchautocfg/db/sessioninfo/sessionresult_analyze_sy-momdbase-113_rac.ser -analyze -online -prepare_home
Command failure output:
==Following patches FAILED in analysis for apply:
Patch: /u01/setup/patch/30899722/30894985
Log:
Reason: Failed during listing in Analysis: java.lang.Exception: oracle.opatch.opatchsdk.OPatchException: Unable to create patchObject
Possible causes are:
ORACLE_HOME/inventory/oneoffs/30869156 is corrupted. PatchObject constructor: Input file "/u01/app/oracle/product/19.3.0/db_1/inventory/oneoffs/30869156/etc/config/actions" or "/u01/app/oracle/product/19.3.0/db_1/inventory/oneoffs/30869156/etc/config/inventory" does not exist.
Patch: /u01/setup/patch/30899722/30869156
Log:
Reason: Failed during listing in Analysis: java.lang.Exception: oracle.opatch.opatchsdk.OPatchException: Unable to create patchObject
Possible causes are:
ORACLE_HOME/inventory/oneoffs/30869156 is corrupted. PatchObject constructor: Input file "/u01/app/oracle/product/19.3.0/db_1/inventory/oneoffs/30869156/etc/config/actions" or "/u01/app/oracle/product/19.3.0/db_1/inventory/oneoffs/30869156/etc/config/inventory" does not exist.
After fixing the cause of failure Run opatchauto resume
]
OPATCHAUTO-68061: The orchestration engine failed.
OPATCHAUTO-68061: The orchestration engine failed with return code 1
OPATCHAUTO-68061: Check the log for more details.
OPatchAuto failed.
OPatchauto session completed at Sat Jun 20 01:10:44 2020
Time taken to complete the session 0 minute, 25 seconds
opatchauto failed with error code 42 作者: 郑全 时间: 2020-6-20 01:32
解决办法:
[root@sy-momdbase-113 bin]# /u01/app/oracle/product/19.3.0/db_1/OPatch/opatchauto apply /u01/setup/patch/30899722 -oh /u01/app/oracle/product/19.3.0/db_1/ -nonrolling
OPatchauto session is initiated at Sat Jun 20 01:26:12 2020
System initialization log file is /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchautodb/systemconfig2020-06-20_01-26-17AM.log.
Session log file is /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchauto/opatchauto2020-06-20_01-26-22AM.log
The id for this session is AFBW
Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.3.0/db_1
Patch applicability verified successfully on home /u01/app/oracle/product/19.3.0/db_1
Verifying SQL patch applicability on home /u01/app/oracle/product/19.3.0/db_1
No step execution required.........
Preparing home /u01/app/oracle/product/19.3.0/db_1 after database service restarted
No step execution required.........
OPatchAuto successful.
--------------------------------Summary--------------------------------
Patching is completed successfully. Please find the summary as follows:
Host:sy-momdbase-113
RAC Home:/u01/app/oracle/product/19.3.0/db_1
Version:19.0.0.0.0
Summary:
==Following patches were SKIPPED:
Patch: /u01/setup/patch/30899722/30869304
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /u01/setup/patch/30899722/30898856
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /u01/setup/patch/30899722/30894985
Reason: This patch is already been applied, so not going to apply again.
Patch: /u01/setup/patch/30899722/30869156
Reason: This patch is already been applied, so not going to apply again.
OPatchauto session completed at Sat Jun 20 01:26:42 2020
Time taken to complete the session 0 minute, 30 seconds
[root@sy-momdbase-113 bin]#