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

标题: OPatch报错 Prerequisite check "CheckActiveFilesAndExecutables" failed [打印本页]

作者: 郑全    时间: 2017-7-23 02:29
标题: OPatch报错 Prerequisite check "CheckActiveFilesAndExecutables" failed
本帖最后由 郑全 于 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命令正常!








欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2