ITPub博客

首页 > 数据库 > Oracle > 11G R2 RAC环境打GI补丁 报错处理,缺少fuser命令导致的补丁安装失败

11G R2 RAC环境打GI补丁 报错处理,缺少fuser命令导致的补丁安装失败

原创 Oracle 作者:raysuen 时间:2021-05-27 22:15:33 0 删除 编辑
##1 打补丁一直报DBcheck失败 
[root@bare0002 31718723]# /u01/app/11.2.0.4/product/11.2.0/grid_1/OPatch/opatch auto /tmp/31720783/31718723/
Executing /u01/app/11.2.0.4/product/11.2.0/grid_1/perl/bin/perl /u01/app/11.2.0.4/product/11.2.0/grid_1/OPatch/crs/patch11203.pl -patchdir /tmp/31720783 -patchn 31718723 -paramfile /u01/app/11.2.0.4/product/11.2.0/grid_1/crs/install/crsconfig_params
This is the main log file: /u01/app/11.2.0.4/product/11.2.0/grid_1/cfgtoollogs/opatchauto2021-05-27_19-03-47.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0.4/product/11.2.0/grid_1/cfgtoollogs/opatchauto2021-05-27_19-03-47.report.log
2021-05-27 19:03:47: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0.4/product/11.2.0/grid_1/crs/install/crsconfig_params
Error : The opatch Applicable check failed.  The patch /tmp/31720783/31718723/29938455/custom/server/29938455 is not applicable to /u01/app/oracle/product/11.2.0/db_1
Error : The opatch Applicable check failed.  The patch /tmp/31720783/31718723/31537677 is not applicable to /u01/app/oracle/product/11.2.0/db_1
Error:Patch Applicable check failed for /u01/app/oracle/product/11.2.0/db_1
opatch auto failed.


##查询日志
[oracle@bare0002 31668908]$ tail -30 /u01/app/11.2.0.4/product/11.2.0/grid_1/cfgtoollogs/opatchauto2021-05-27_19-03-47.log
......
2021-05-27 19:04:36: Error : The opatch Applicable check failed.  The patch /tmp/31720783/31718723/29938455/custom/server/29938455 is not applicable to /u01/app/oracle/product/11.2.0/db_1
2021-05-27 19:04:36: Running as user oracle: /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch prereq CheckApplicable -ph /tmp/31720783/31718723/31537677 -oh /u01/app/oracle/product/11.2.0/db_1
2021-05-27 19:04:36: s_run_as_user2: Running /bin/su oracle -c ' /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch prereq CheckApplicable -ph /tmp/31720783/31718723/31537677 -oh /u01/app/oracle/product/11.2.0/db_1 '
2021-05-27 19:04:37: Removing file /tmp/file9AaQyt
2021-05-27 19:04:37: Successfully removed file: /tmp/file9AaQyt
2021-05-27 19:04:37: /bin/su exited with rc=2
2021-05-27 19:04:37: Error : The opatch Applicable check failed.  The patch /tmp/31720783/31718723/31537677 is not applicable to /u01/app/oracle/product/11.2.0/db_1
2021-05-27 19:04:37: Status of Applicable  check  for /u01/app/oracle/product/11.2.0/db_1 is 0
2021-05-27 19:04:37: Error:Patch Applicable check failed for /u01/app/oracle/product/11.2.0/db_1

##使用oracle用户执行失败的命令


##因为一直报GI包含的DB补丁检查失败,我在无奈之下手动对DB补丁apply
[oracle@bare0002 31537677]$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch apply
Oracle Interim Patch Installer version 11.2.0.3.29
Copyright (c) 2021, Oracle Corporation.  All rights reserved.
Oracle Home       : /u01/app/oracle/product/11.2.0/db_1
Central Inventory : /u01/app/grid/oraInventory
   from           : /u01/app/oracle/product/11.2.0/db_1/oraInst.loc
OPatch version    : 11.2.0.3.29
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2021-05-27_20-59-53PM_1.log
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckSystemCommandAvailable" failed.
The details are:
Missing command :fuser
Prerequisite check "CheckSystemCommandAvailable" failed.
The details are:
Missing command :fuser
Prerequisite check "CheckSystemCommandAvailable" failed.
The details are:
Missing command :fuser
Prerequisite check "CheckSystemCommandAvailable" failed.
The details are:
这里就发现问题了,发现缺少fuser命令。
#解决方案
[root@bare0002 ~]# yum install -y psmisc
psmisc包安装后,自动安装正常执行




来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28572479/viewspace-2774330/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
擅长oracle,Linux。精通shell,python。

注册时间:2016-08-23

  • 博文量
    138
  • 访问量
    179038