oracle 19c opatchauto打补丁报错Missing command :fuser

余生长醉 提交于 2020-01-06 16:18:07

环境:rhel7.6 oracle 19c rac
集群资源状态
[grid@19crac1 ~]$ crsctl stat res -t -init
ora.asm
1 ONLINE ONLINE 19crac1 STABLE
ora.cluster_interconnect.haip
1 ONLINE ONLINE 19crac1 STABLE
ora.crf
1 ONLINE ONLINE 19crac1 STABLE
ora.crsd
1 ONLINE ONLINE 19crac1 STABLE
ora.cssd
1 ONLINE ONLINE 19crac1 STABLE
ora.cssdmonitor
1 ONLINE ONLINE 19crac1 STABLE
ora.ctssd
1 ONLINE ONLINE 19crac1 ACTIVE:0,STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.drivers.acfs
1 ONLINE ONLINE 19crac1 STABLE
ora.evmd
1 ONLINE ONLINE 19crac1 STABLE
ora.gipcd
1 ONLINE ONLINE 19crac1 STABLE
ora.gpnpd
1 ONLINE ONLINE 19crac1 STABLE
ora.mdnsd
1 ONLINE ONLINE 19crac1 STABLE
ora.storage
1 ONLINE ONLINE 19crac1 STABLE

[grid@19crac1 ~]$ crsctl stat res -t

ora.LISTENER.lsnr
ONLINE ONLINE 19crac1 STABLE
ONLINE ONLINE 19crac2 STABLE
ora.chad
ONLINE ONLINE 19crac1 STABLE
ONLINE ONLINE 19crac2 STABLE
ora.net1.network
ONLINE ONLINE 19crac1 STABLE
ONLINE ONLINE 19crac2 STABLE
ora.ons
ONLINE ONLINE 19crac1 STABLE
ONLINE ONLINE 19crac2 STABLE
ora.proxy_advm
OFFLINE OFFLINE 19crac1 STABLE
OFFLINE OFFLINE 19crac2 STABLE

ora.19crac1.vip
1 ONLINE ONLINE 19crac1 STABLE
ora.19crac2.vip
1 ONLINE ONLINE 19crac2 STABLE
ora.ARCHDG.dg(ora.asmgroup)
1 ONLINE ONLINE 19crac1 STABLE
2 ONLINE ONLINE 19crac2 STABLE
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
1 ONLINE ONLINE 19crac1 STABLE
2 ONLINE ONLINE 19crac2 STABLE
ora.DATADG.dg(ora.asmgroup)
1 ONLINE ONLINE 19crac1 STABLE
2 ONLINE ONLINE 19crac2 STABLE
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE 19crac2 STABLE
ora.OCRDG.dg(ora.asmgroup)
1 ONLINE ONLINE 19crac1 STABLE
2 ONLINE ONLINE 19crac2 STABLE
ora.asm(ora.asmgroup)
1 ONLINE ONLINE 19crac1 Started,STABLE
2 ONLINE ONLINE 19crac2 Started,STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
1 ONLINE ONLINE 19crac1 STABLE
2 ONLINE ONLINE 19crac2 STABLE
ora.cvu
1 ONLINE ONLINE 19crac2 STABLE
ora.qosmserver
1 ONLINE ONLINE 19crac2 STABLE
ora.scan1.vip
1 ONLINE ONLINE 19crac2 STABLE
操作:打最新RU,补丁包名为p29699097_190000_Linux-x86-64.zip
过程:按照readme的指导,替换完OPatch,直接打补丁
[root@19crac1 OPatch]# ./opatchauto apply /u01/soft/29699097/29708769/
在过程中报错:
[root@19crac1 OPatch]# ./opatchauto apply /u01/soft/29699097/29708769/

OPatchauto session is initiated at Sun Dec 8 12:51:27 2019

System initialization log file is /u01/app/19c/grid/cfgtoollogs/opatchautodb/systemconfig2019-12-08_12-51-30PM.log.

Session log file is /u01/app/19c/grid/cfgtoollogs/opatchauto/opatchauto2019-12-08_12-52-00PM.log
The id for this session is UJK7

Executing OPatch prereq operations to verify patch applicability on home /u01/app/19c/grid
Patch applicability verification failed on home /u01/app/19c/grid

Execution of [OPatchAutoBinaryAction] patch action failed, check log for more details. Failures:
Patch Target : 19crac1->/u01/app/19c/grid Type[crs]
Details: [
---------------------------Patching Failed---------------------------------
Command execution failed during patching in home: /u01/app/19c/grid, host: 19crac1.
Command failed: /u01/app/19c/grid/OPatch/opatchauto apply /u01/soft/29699097/29708769/ -oh /u01/app/19c/grid -target_type cluster -binary -invPtrLoc /u01/app/19c/grid/oraInst.loc -jre /u01/app/19c/grid/OPatch/jre -persistresult /u01/app/19c/grid/OPatch/auto/dbsessioninfo/sessionresult_analyze_19crac1_crs.ser -analyze -online -prepare_home
Command failure output:
==Following patches FAILED in analysis for apply:

Patch: /u01/soft/29699097/29708769/29834717
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2019-12-08_12-52-09PM_1.log
Reason: Failed during Analysis: CheckSystemCommandsAvailable Failed, [ Prerequisite Status: FAILED, Prerequisite output:
The details are:
Missing command :fuser]

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 Sun Dec 8 12:52:15 2019
Time taken to complete the session 0 minute, 48 seconds

opatchauto failed with error code 42
发现是fuser命令找不到
进一步排查[root@19crac1 OPatch]# which fuser
/usr/bin/which: no fuser in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
发现就是没有,我的系统为minimal安装,可能与这个有关系,所以安装
[root@19crac1 ~]# yum search fuser
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
===================================================================================== Matched: fuser =====================================================================================
psmisc.x86_64 : Utilities for managing processes on your system
[root@19crac1 ~]# yum install psmisc
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
base | 4.3 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package psmisc.x86_64 0:22.20-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size

Installing:
psmisc x86_64 22.20-15.el7 base 141 k

Transaction Summary

Install 1 Package

Total download size: 141 k
Installed size: 475 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : psmisc-22.20-15.el7.x86_64 1/1
Verifying : psmisc-22.20-15.el7.x86_64 1/1

Installed:
psmisc.x86_64 0:22.20-15.el7

Complete!
再次执行[root@19crac1 OPatch]# ./opatchauto apply /u01/soft/29699097/29708769/

OPatchauto session is initiated at Sun Dec 8 12:54:26 2019

System initialization log file is /u01/app/19c/grid/cfgtoollogs/opatchautodb/systemconfig2019-12-08_12-54-28PM.log.

Session log file is /u01/app/19c/grid/cfgtoollogs/opatchauto/opatchauto2019-12-08_12-54-52PM.log
The id for this session is GI54

Executing OPatch prereq operations to verify patch applicability on home /u01/app/19c/grid
Patch applicability verified successfully on home /u01/app/19c/grid

Bringing down CRS service on home /u01/app/19c/grid
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

Starting CRS service on home /u01/app/19c/grid
CRS service started successfully on home /u01/app/19c/grid

OPatchAuto successful.

--------------------------------Summary--------------------------------

Patching is completed successfully. Please find the summary as follows:

Host:19crac1
CRS Home:/u01/app/19c/grid
Version:19.0.0.0.0
Summary:

==Following patches were SKIPPED:

Patch: /u01/soft/29699097/29708769/29401763
Reason: This patch is already been applied, so not going to apply again.

==Following patches were SUCCESSFULLY applied:

Patch: /u01/soft/29699097/29708769/29834717
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2019-12-08_12-57-47PM_1.log

Patch: /u01/soft/29699097/29708769/29850993
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2019-12-08_12-57-47PM_1.log

Patch: /u01/soft/29699097/29708769/29851014
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2019-12-08_12-57-47PM_1.log

OPatchauto session completed at Sun Dec 8 13:03:32 2019
Time taken to complete the session 9 minutes, 6 seconds
不会报错

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!