重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 847|回复: 1
打印 上一主题 下一主题

Oracle 19c 打19.7 的RU opatchauto 报OPatchException: Unable to create patchobj

[复制链接]
跳转到指定楼层
楼主
发表于 2020-6-20 01:27:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[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
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2020-6-20 01:32:52 | 只看该作者
解决办法:

   从1号机把对应的两个补丁拷过来即可
   [oracle@sy-momdbase-112 oneoffs]$ pwd
/u01/app/oracle/product/19.3.0/db_1/inventory/oneoffs
  [oracle@sy-momdbase-112 oneoffs]$ scp -r 30869156 sy-momdbase-113:`pwd`
inventory.xml                                                                                                                                                      100%  224KB  34.6MB/s   00:00   
actions.xml                                                                                                                                                        100% 2100KB  56.2MB/s   00:00   
[oracle@sy-momdbase-112 oneoffs]$ scp -r 30894985 sy-momdbase-113:`pwd`
inventory.xml                                                                                                                                                      100%   55KB  33.7MB/s   00:00   
actions.xml                                                                                                                                                        100%   95KB  45.5MB/s   00:00  

  再去执行2号机器执行DB RU

  [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]#

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-28 15:31 , Processed in 0.091413 second(s), 18 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表