Prerequisite Check “CheckActiveFilesAndExecutables” Failed

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 04 Sep, 2023
  • 0 Comments
  • 1 Min Read

Prerequisite Check “CheckActiveFilesAndExecutables” Failed

While applying a patch to oracle binary using opatch utility, got below error.

Solution : While applying patch using opatch, all processes using that ORACLE_HOME should be done. If any of the processes are still using the ORACLE_HOME, It will fail with above error.

Now find the process id using below command.


/sbin/fuser /oracle/app/oracle/product/12.1.0/prim/lib/libclntsh.so.12.1
/oracle/app/oracle/product/12.1.0/prim/lib/libclntsh.so.12.1: 29274m 29786m

ps -ef | grep 29786

ps -ef | grep 29274

Kill both the process: 

kill -9 29786 29274

/sbin/fuser /oracle/app/oracle/product/12.1.0/prim/lib/libsqlplus.so
/oracle/app/oracle/product/12.1.0/prim/lib/libsqlplus.so:

If this command shows any process id , then those need to be killed also.

Now retry the opatch : 


# $ORACLE_HOME/OPatch/opatch apply

We have applied the patch successfully.

P.S. :
So before running the opatch apply command directly, it is better to run the below command, to check whether any process using the oracle binary or not.

[oracle@node1 27072683]$ $ORACLE_HOME/OPatch/opatch prereq CheckActiveFilesAndExecutables -ph ./

Hope it helps!