// // Prerequisite check “CheckActiveFilesAndExecutables” failed.

A technical troubleshooting blog about Oracle with other Databases & Cloud Technologies.

Prerequisite check “CheckActiveFilesAndExecutables” failed.

1 min read
While trying to rollback the conflicting patch 18893947 applying patch 21967332
$ opatch rollback -id 18893947
Oracle Interim Patch Installer version 12.2.0.1.11
Copyright (c) 2018, Oracle Corporation. All rights reserved.
Oracle Home : <dir>/oracle/product/12.1.0/12c
Central Inventory : /d01/app/oraInventory
  from : <dir>/product/12.1.0/12c/oraInst.loc
OPatch version : 12.2.0.1.11
OUI version : 12.1.0.2.0
Log file location : <dir>/product/12.1.0/12c/cfgtoollogs/opatch/opatch<timestamp>.log
Patches will be rolled back in the following order:
  18893947
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:

Following executables are active :
<dir>/product/12.1.0/12c/lib/libclntsh.so.12.1
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: <dir>/product/12.1.0/12c/cfgtoollogs/opatch/opatch<timestamp>.log

OPatch failed with error code 73
Following executables are active <dir>/product/12.1.0/12c/lib/libclntsh.so.12.1

The file libclntsh.so.12.1 will be present when emagent is running on the node and will periodically use the library libclntsh.so.11.1 
Follow below steps:

 As root user

1. Run grep command to check and find process id active executable libclntsh.so

2. Terminate the process id associated with executable libclntsh.so

3. Also check if you have emagent running, if yes, stop it too before running opatch command

4. Run the rollback command: "opatch rollback -id 18893947"

5. Start the emagent, if it was stopped in above step.