DBA Hub

📋Steps in this guide1/2

Prerequisite Check “CheckActiveFilesAndExecutables” Failed

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

oracle configurationintermediate
by OracleDba
18 views
1

Overview

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. If this command shows any process id , then those need to be killed also.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
/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 -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:
2

Section 2

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.

Code/Command (click line numbers to comment):

1
2
3
# $ORACLE_HOME/OPatch/opatch apply

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

Comments (0)

Please to add comments

No comments yet. Be the first to comment!