SOLVED

Prerequisite Check “CheckActiveFilesAndExecutables” Failed

Asked by OracleDba16 viewsoracle
1
2
3
Prerequisite Check “CheckActiveFilesAndExecutables” Failed

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

Solutions(1)

Accepted Solution
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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!
OracleDba

Post Your Solution