In a client’s test database, we encountered this error in an test attempt of patching the Oracle Grid Home.
The environment was configured with ASM and an Oracle Database (Single Instance).
When the Opatch apply command ran, the below error occurred:
$ORACLE_HOME/OPatch/opatch apply
Verifying environment and performing prerequisite checks…
Prerequisite check «CheckActiveFilesAndExecutables» failed.
/u01/app/19c/grid/lib/libasmclntsh19.so
OPatch failed with error code 73
This error happened because the HAS (High Availability Services) was up and running, and was using the files inside the Oracle Grid Home directory.
The way to handle this is to find the process running and stop/kill it.
You may run the below command to find the PID using the file:
/sbin/fuser /sbin/fuser /u01/app/19c/grid/lib/libasmclntsh19.so
Then find the actual process:
ps -ef | grep 29785
In our case, the only thing we had to do was to stop the HAS:
/u01/app/19c/grid/bin/crsctl stop has
Otherwise, use the below command to kill the process running:
kill -9 29785
Written by Nikos Minaidis
04/06/2022
