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

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3914|回复: 0
打印 上一主题 下一主题

[补丁] OPatch报错 Prerequisite check "CheckActiveFilesAndExecutables" failed

[复制链接]
跳转到指定楼层
楼主
发表于 2017-7-23 02:29:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 郑全 于 2017-7-23 02:33 编辑

问题现象:在使用Opatch打补丁时,报下面的错误:
  # /u01/app/11.2.0/grid/OPatch/opatch auto /psu/20996923/ -ocmrf /psu/ocm.rsp
  ...
   patch /psu/20996923/20760982  apply failed  for home  /u01/app/oracle/product/11.2.0/dbhome_1

分析:
  看日志:
   2017-07-22 23:57:09: Executing command /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch napply /psu/20996923/20760982 -local -silent -ocmrf /psu/ocm.rsp -oh /u01/app/oracle/product/11.2.0/dbhome_1 -invPtrLoc /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc as oracle
2017-07-22 23:57:09: Running as user oracle: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch napply /psu/20996923/20760982 -local -silent -ocmrf /psu/ocm.rsp -oh /u01/app/oracle/product/11.2.0/dbhome_1 -invPtrLoc /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
2017-07-22 23:57:09: s_run_as_user2: Running /bin/su oracle -c ' /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch napply /psu/20996923/20760982 -local -silent -ocmrf /psu/ocm.rsp -oh /u01/app/oracle/product/11.2.0/dbhome_1 -invPtrLoc /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc '
2017-07-22 23:57:14: Removing file /tmp/filebnWGJZ
2017-07-22 23:57:14: Successfully removed file: /tmp/filebnWGJZ
2017-07-22 23:57:14: /bin/su exited with rc=73
2017-07-22 23:57:14: status of apply patch is 18688
2017-07-22 23:57:14: The apply patch output is Oracle Interim Patch Installer version 11.2.0.3.16
Copyright (c) 2017, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
    from           : /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
OPatch version    : 11.2.0.3.16
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2017-07-22_23-57-10PM_1.log

Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:


Following executables are active :
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2017-07-22_23-57-10PM_1.log

OPatch failed with error code 73
2017-07-22 23:57:14: patch /psu/20996923/20760982  apply failed  for home  /u01/app/oracle/product/11.2.0/dbhome_1

解决办法:1.停止数据库和和数据库相关进程
2.kill掉所有与oracle相关的进程
  fuser  /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
  kill -9 xxx
再次进行OPatch命令正常!



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-27 22:44 , Processed in 0.091289 second(s), 20 queries .

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

© 2001-2020

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