Oracle 19c RAC升级补丁19.14报错记录

环境:linux7.6+Oracle19c RAC
问题描述:数据新环境部署,从19.3直接升级到19.14,期间grid打补丁成功,但db失败,失败日志如下:

[root@cdjkdb1 patch]# /oracle/app/oracle/product/19.3.0/db_1/OPatch/opatchauto apply /oracle/patch/33567274/33509923 -oh /oracle/app/oracle/product/19.3.0/db_1

OPatchauto session is initiated at Thu Oct 13 20:46:51 2022


System initialization log file is /oracle/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchautodb/systemconfig2022-10-13_08-46-53PM.log.

Session log file is /oracle/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchauto/opatchauto2022-10-13_08-47-14PM.log
The id for this session is 393P

Executing OPatch prereq operations to verify patch applicability on home /oracle/app/oracle/product/19.3.0/db_1
Patch applicability verified successfully on home /oracle/app/oracle/product/19.3.0/db_1


Executing patch validation checks on home /oracle/app/oracle/product/19.3.0/db_1
Patch validation checks successfully completed on home /oracle/app/oracle/product/19.3.0/db_1


Verifying SQL patch applicability on home /oracle/app/oracle/product/19.3.0/db_1
SQL patch applicability verified successfully on home /oracle/app/oracle/product/19.3.0/db_1


Preparing to bring down database service on home /oracle/app/oracle/product/19.3.0/db_1
Successfully prepared home /oracle/app/oracle/product/19.3.0/db_1 to bring down database service


Bringing down database service on home /oracle/app/oracle/product/19.3.0/db_1
Following database(s) and/or service(s) are stopped and will be restarted later during the session: mochabsm
Database service successfully brought down on home /oracle/app/oracle/product/19.3.0/db_1


Performing prepatch operation on home /oracle/app/oracle/product/19.3.0/db_1
Perpatch operation completed successfully on home /oracle/app/oracle/product/19.3.0/db_1


Start applying binary patch on home /oracle/app/oracle/product/19.3.0/db_1
Failed while applying binary patches on home /oracle/app/oracle/product/19.3.0/db_1

Execution of [OPatchAutoBinaryAction] patch action failed, check log for more details. Failures:
Patch Target : cdjkdb1->/oracle/app/oracle/product/19.3.0/db_1 Type[rac]
Details: [
---------------------------Patching Failed---------------------------------
Command execution failed during patching in home: /oracle/app/oracle/product/19.3.0/db_1, host: cdjkdb1.
Command failed:  /oracle/app/oracle/product/19.3.0/db_1/OPatch/opatchauto  apply /oracle/patch/33567274/33509923 -oh /oracle/app/oracle/product/19.3.0/db_1 -target_type rac_database -binary -invPtrLoc /oracle/app/oracle/product/19.3.0/db_1/oraInst.loc -jre /oracle/app/oracle/product/19.3.0/db_1/OPatch/jre -persistresult /oracle/app/oracle/product/19.3.0/db_1/opatchautocfg/db/sessioninfo/sessionresult_cdjkdb1_rac_2.ser -analyzedresult /oracle/app/oracle/product/19.3.0/db_1/opatchautocfg/db/sessioninfo/sessionresult_analyze_cdjkdb1_rac_2.ser
Command failure output: 
==Following patches FAILED in apply:

Patch: /oracle/patch/33567274/33509923/33515361
Log: /oracle/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-10-13_20-49-00PM_1.log
Reason: Failed during Patching: oracle.opatch.opatchsdk.OPatchException: Prerequisite check "CheckActiveFilesAndExecutables" failed. 

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 Thu Oct 13 20:49:54 2022
Time taken to complete the session 3 minutes, 3 seconds

 opatchauto failed with error code 42

最初由于忽略了日志的info输出信息,在网上以及mos上找各种方式尝试,均已失败告终,随后重新研究日志信息,定位了原因,最终顺利升级。
错误方式一:
排除oui-patch.xml文件权限,日志里没有这一项,排查无意义;
错误方式二:
排查oneoff目录下的内容,日志里也没有这一项。
正确方式:
根据日志提示信息,有一个关键项:libxxx.so(详见下图)正在使用,不能被opatch使用的信息,使用fuser libxxx.so查看后,会有显示占用的进程号,
在这里插入图片描述

kill -9 进程号
结束进程,再执行就顺利完成了。
值得注意的是,其实在补丁升级的过程中报错信息在日志里已经有明显提示了,所以还是先仔细看日志,然后再根据日志提示去针对性的处理。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值