Prerequisite check “CheckActiveFilesAndExecutables” failed (files are active) in Patching activity.

During apply patch with opatch command, on windows we will get the following error:

Prerequisite check “CheckActiveFilesAndExecutables” failed

On Windows System, When you try to apply the Patch after clean shutdown.

Sometime following error occurred:

Following files are active:
d:\oracle\product\11.2.0\dbhome_1\bin\oracommon11.dll
d:\oracle\product\11.2.0\dbhome_1\bin\oraclient11.dll
d:\oracle\product\11.2.0\dbhome_1\bin\orageneric11.dll
d:\oracle\product\11.2.0\dbhome_1\bin\orapls11.dll
d:\oracle\product\11.2.0\dbhome_1\bin\oran11.dll
d:\oracle\product\11.2.0\dbhome_1\bin\oraxml11.dll
d:\oracle\product\11.2.0\dbhome_1\bin\oci.dll
d:\oracle\product\11.2.0\dbhome_1\bin\orannzsbb11.dll
d:\oracle\product\11.2.0\dbhome_1\bin\oraasmclnt11.dll

INFO:Prerequisite check “CheckActiveFilesAndExecutables” failed.

OPatch failed with error code = 74
This is the common error occurred during the patch applied on window system.

One command is available for check which process is holding lock on these files

tasklist /m ora*

You can check with the tasklist command. It will provide you list on command.
 
Note:
1. Winmgmt (Windows Management Instrumentation ) is the service used by tasklist command.
If you already disable this service as mentioned in some readme file then you need to enable and start to run tasklist command
2. You always used cmd.ext run as administrator so that you will able to see other user open task also.
Suppose if you find the ora* files is used by some jave.exe then you can also kill that process.
 
Note: Before fire kill command check at internet what the effect of process if you kill it.
Sometime window process locked and it will cause server shutdown if you kill window process. So always check effect first.
IF some application java.exe is used you can kill them.

taskkill /pid processid_number

 

Advertisements

One thought on “Prerequisite check “CheckActiveFilesAndExecutables” failed (files are active) in Patching activity.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s