Linux7.7上 安装oracle rac 19.3,在节点2打数据库19.9补丁时遇到错误。
对gi打补丁
[root@host2 31720429]# opatchauto apply /tmp/31720429/31750108
-
OPatchauto session is initiated at Thu Apr 8 17:31:37 2021
-
-
System initialization log file is /u01/app/19c/grid/cfgtoollogs/opatchautodb/systemconfig2021-04-08_05-31-41PM.log.
-
-
会话日志文件是/u01/app/19c/grid/cfgtoollogs/opatchauto/opatchauto2021-04-08_05-32-12PM.log
-
此会话的 ID 为 WXLV
-
-
Executing OPatch prereq operations to verify patch applicability on home /u01/app/19c/grid
-
Patch applicability verified successfully on home /u01/app/19c/grid
-
-
Executing patch validation checks on home /u01/app/19c/grid
-
Patch validation checks successfully completed on home /u01/app/19c/grid
-
-
Performing prepatch operations on CRS - bringing down CRS service on home /u01/app/19c/grid
-
Prepatch operation log file location: /u01/app/grid/crsdata/host2/crsconfig/crs_prepatch_apply_inplace_host2_2021-04-08_05-32-54PM.log
-
CRS service brought down successfully on home /u01/app/19c/grid
-
-
Start applying binary patch on home /u01/app/19c/grid
-
Binary patch applied successfully on home /u01/app/19c/grid
-
-
Performing postpatch operations on CRS - starting CRS service on home /u01/app/19c/grid
-
Postpatch operation log file location: /u01/app/grid/crsdata/host2/crsconfig/crs_postpatch_apply_inplace_host2_2021-04-08_05-44-32PM.log
-
CRS service started successfully on home /u01/app/19c/grid
-
-
-
OPatchAuto 成功。
-
-
-
--------------------------------Summary--------------------------------
-
-
-
Patching is completed successfully. Please find the summary as follows:
-
-
-
Host:host2
-
CRS Home:/u01/app/19c/grid
-
Version:19.0.0.0.0
-
Summary:
-
-
-
==Following patches were SUCCESSFULLY applied:
-
-
-
Patch: /tmp/31720429/31750108/31771877
-
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-04-08_17-35-39下午_1.log
-
-
-
Patch: /tmp/31720429/31750108/31772784
-
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-04-08_17-35-39下午_1.log
-
-
-
Patch: /tmp/31720429/31750108/31773437
-
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-04-08_17-35-39下午_1.log
-
-
-
Patch: /tmp/31720429/31750108/31780966
-
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-04-08_17-35-39下午_1.log
-
-
-
-
OPatchauto session completed at Thu Apr 8 17:49:40 2021
- Time taken to complete the session 18 minutes, 4 seconds
按README.HTML中说明执行opatchauto应该对grid和db都打上补丁呀,但是检查db没有打上,于是单独对db_home打补丁
[root@host2 31720429]# /u01/app/oracle/product/19c/db_1/OPatch/opatchauto apply /tmp/31720429/31750108 -oh /u01/app/oracle/product/19c/db_1
-
OPatchauto session is initiated at Thu Apr 8 17:50:39 2021
-
-
-
System initialization log file is /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatchautodb/systemconfig2021-04-08_05-50-46PM.log.
-
-
-
会话日志文件是/u01/app/oracle/product/19c/db_1/cfgtoollogs/opatchauto/opatchauto2021-04-08_05-51-05PM.log
-
此会话的 ID 为 PVR4
-
-
-
Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19c/db_1
-
Patch applicability verified successfully on home /u01/app/oracle/product/19c/db_1
-
-
Executing patch validation checks on home /u01/app/oracle/product/19c/db_1
-
Patch validation checks successfully completed on home /u01/app/oracle/product/19c/db_1
-
-
Verifying SQL patch applicability on home /u01/app/oracle/product/19c/db_1
-
No step execution required.........
-
-
Preparing to bring down database service on home /u01/app/oracle/product/19c/db_1
-
No step execution required.........
-
-
Performing prepatch operation on home /u01/app/oracle/product/19c/db_1
-
Perpatch operation completed successfully on home /u01/app/oracle/product/19c/db_1
-
-
Start applying binary patch on home /u01/app/oracle/product/19c/db_1
-
Failed while applying binary patches on home /u01/app/oracle/product/19c/db_1
-
-
-
未能执行 [OPatchAutoBinaryAction] 补丁程序操作, 有关详细信息, 请查看日志。故障:
-
Patch Target : host2->/u01/app/oracle/product/19c/db_1 类型 [rac]
-
Details: [
-
---------------------------Patching Failed---------------------------------
-
Command execution failed during patching in home: /u01/app/oracle/product/19c/db_1, host: host2.
-
Command failed: /u01/app/oracle/product/19c/db_1/OPatch/opatchauto apply /tmp/31720429/31750108 -oh /u01/app/oracle/product/19c/db_1 -target_type rac_database -binary -invPtrLoc /u01/app/oracle/product/19c/db_1/oraInst.loc -jre /u01/app/oracle/product/19c/db_1/OPatch/jre -persistresult /u01/app/oracle/product/19c/db_1/opatchautocfg/db/sessioninfo/sessionresult_host2_rac_2.ser -analyzedresult /u01/app/oracle/product/19c/db_1/opatchautocfg/db/sessioninfo/sessionresult_analyze_host2_rac_2.ser
-
Command failure output:
-
==Following patches FAILED in apply:
-
-
-
Patch: /tmp/31720429/31750108/31771877
-
Log: /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2021-04-08_17-51-45下午_1.log
-
Reason: Failed during Patching: oracle.opatch.opatchsdk.OPatchException: ApplySession 在系统修改阶段失败... 'ApplySession::apply failed: java.io.IOException: oracle.sysman.oui.patch.PatchException: java.io.FileNotFoundException: /u01/app/oraInventory/ContentsXML/oui-patch.xml (权限不够)'
-
-
After fixing the cause of failure Run opatchauto resume
-
-
]
-
OPATCHAUTO-68061: 业务流程引擎失败。
-
OPATCHAUTO-68061: 业务流程引擎失败, 返回代码为 1
-
OPATCHAUTO-68061: 有关详细资料, 请查看日志。
-
OPatchAuto 失败。
-
-
-
OPatchauto session completed at Thu Apr 8 17:55:39 2021
-
Time taken to complete the session 5 minutes, 0 second
-
-
- opatchauto failed with error code 42
提示中oui-patch.xml (权限不够),具体检查一下权限与节点1不一样,这是bug导致的失败。
解决方法是:
1、复制节点1上的文件
host1 $ cd $ORACLE_HOME/inventory/oneoffs
host1 $ scp -r * host2:$PWD
2、修改权限
host2 # chmod 660 /u01/app/oraInventory/ContentsXML/oui-patch.xml
3、重新执行打补丁命令
这是在打节点2的db补丁时遇到的问题,节点1却没事。