TroubleShooting

[DataBase] opatch 73 에러

최선을 다하자! 2022. 10. 18. 17:06
opatch apply fails with Error: Prerequisite check "CheckSystemCommandAvailable" & 'Missing command :fuser' (Doc ID 1581604.1)

 

기동 중인 DB와 LISTENER를 stop 시켰는데도 73에러가 난다면

 

 

Verifying environment and performing prerequisite checks...
Prerequisite check "CheckSystemCommandAvailable" failed.
The details are:
Missing command :fuser
UtilSession failed:
Prerequisite check "CheckSystemCommandAvailable" failed.
Log file location: $ORACLE_HOME/cfgtoollogs/opatch/opatch<timestamp>log
OPatch failed with error code 73

 

 

SOLUTION

1) Check if the missing package (fuser) is installed.
If yes, make sure the executable is included in the PATH.
The common executables used by opatch are make, ld, ar and nm. These executables will be by default under /usr/bin directory.
Add the path location to the $PATH environment variable:
export PATH=$PATH:/usr/bin

2) If the OS package which provides the 'fuser' utility is not installed, then install that OS package.
Example: In Linux , the rpm 'psmisc' provides the fuser utility ,so install this rpm.

Workaround:

Make sure that database and all process accessing database/ORACLE_HOME are shut down as fuser will be skipped.

1) Pass argument for OPatch to ignore fuser and continue with patching.
Set the environment variable OPATCH_NO_FUSER=true

export OPATCH_NO_FUSER=true
opatch apply

2) Set temporary fuser
Set /tmp in your PATH
Create an empty file named "fuser"
Run the opatch command

 

 

 

솔루션

 

 

# yum install -y fuser
Loaded plugins: ulninfo
No package fuser available.
Error: Nothing to do
[root@jwc|/root]#
[root@jwc|/root]#
[root@jwc|/root]# rpm -qa | grep fuser
[root@jwc|/root]#
[root@jwc|/root]#
[root@jwc|/root]# which make ar ld cc
/bin/make
/bin/ar
/bin/ld
/bin/cc
[root@jwc|/root]# which nm
/bin/nm
[root@jwc|/root]# yum install -y psmisc
Loaded plugins: ulninfo
Resolving Dependencies
--> Running transaction check
---> Package psmisc.x86_64 0:22.20-17.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================
 Package                               Arch                                  Version                                        Repository                                 Size
============================================================================================================================================================================
Installing:
 psmisc                                x86_64                                22.20-17.el7                                   ol7_latest                                141 k

Transaction Summary
============================================================================================================================================================================
Install  1 Package

Total download size: 141 k
Installed size: 475 k
Downloading packages:
psmisc-22.20-17.el7.x86_64.rpm                                                                                                                       | 141 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : psmisc-22.20-17.el7.x86_64                                                                                                                               1/1
  Verifying  : psmisc-22.20-17.el7.x86_64                                                                                                                               1/1

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

Complete!
[root@jwc|/root]#
[root@jwc|/root]#
[root@jwc|/root]#
[root@jwc|/root]#
[root@jwc|/root]# rpm -qa  | grep psmisc
psmisc-22.20-17.el7.x86_64