EM 12c: Applying 12.1.0.3.1 PSU Patch 17513525 to the Enterprise Manager 12.1.0.3 Cloud Control OMS Oracle Home on Windows Fails with Error: Opatchauto Failed with Error Code = 238 (Doc ID 1639643.1)

Last updated on NOVEMBER 02, 2014

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.3.0 and later
Microsoft Windows x64 (64-bit)

Symptoms

In preparation for applying Patch 17513525 to the Enterprise Manager 12c Cloud Control OMS Oracle Home, running the command opatchauto apply -analyze fails from the Enterprise Manager 12c Cloud Control OMS Oracle Home for patch 17513525:
1) The following errors are observed in the command session:

<PATCH_TOP_DIR>/17513525/opatchauto apply -analyze
OPatch Automation Tool
Copyright (c) 2013, Oracle Corporation.  All rights reserved.
.
.

opatchauto log file: C:\app\oracle\middleware_12cR3\oms\cfgtoollogs\opatchauto\17513525\opatch_oms_2014-03-04_13-47-51PM_analyze.log


Please enter OMS weblogic admin server URL:> t3s://cmh.idc.oracle.com:7102
Please enter OMS weblogic admin server username:> weblogic
Please enter OMS weblogic admin server password:> xxxxxxx

Configuration Validation: Success

Running apply prerequisite checks for patch(es) "17513525" and Oracle Home "C:\app\oracle\middleware_12cR3\oms"...
Please monitor OPatch log file: C:\app\oracle\middleware_12cR3\oms\cfgtoollogs\opatch\17513525_Mar_04_2014_13_47_44\ApplyPrereq2014-03-04_13-48-49PM_9.log

Apply binary prerequisite checks failed for patch(es) "17513525".

Copying all logs to: C:\app\oracle\middleware_12cR3\oms\cfgtoollogs\opatch\2014-03-04_13-47-44PM_SystemPatch_17513525_1

[ Error during Run patch(es) binary prerequisite checks Phase]. Detail: Some of the prerequisite checks to apply or rollbacks the patch (es) have failed.
opatchauto failed: Some of the prerequisite checks to apply or rollback the patch(es) have failed.
Log file location: C:\app\oracle\middleware_12cR3\oms\cfgtoollogs\opatchauto\17513525\opatch_oms_2014-03-04_13-47-51PM_analyze.log

Recommended actions: Please check opatchauto, opatch, patch(es) binary prerequisite log files for more details on the errors. If not resolved, please contact Oracle Support.

opatchauto failed with error code = 238  

       


2) Logged errors in ...\Middleware\oms\cfgtoologs\opatch\17513525_<timestamp>\ApplyPrereq<timestamp>.log:

CheckActiveServicesForWindows=[ Prerequisite Status: NOT ATTEMPTED (serious failure), Prerequisite output:
The details are:
                            Executable "C:\app\oracle\middleware_12cR3\oms\bin\oradim.exe" was not found in the Oracle Home, so not checking for active services.]

CheckActiveFilesAndExecutables=[ Prerequisite Status: FAILED, Prerequisite output:
The details are:
                            
                            Following files are active :
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCorePBS.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCorePBS.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCorePBS.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCorePBS.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCLI.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCLI.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCLI.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCLI.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCoreConsole.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCoreConsole.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCoreConsole.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCoreConsole.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emcore_client.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emcore_client.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emcore_client.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emcore_client.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCoreSDK.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCoreSDK.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCoreSDK.jar
                            C:\app\oracle\middleware_12cR3\oms\sysman\jlib\emCoreSDK.jar


3) Logged errors in ...\Middleware\oms\cfgtoologs\opatchauto\17513525\opatch_oms_<timestamp>_analyze.log:

Mar 4, 2014 1:55:30 PM]     Running apply prerequisite checks for patch(es) "17513525" and Oracle Home "C:\app\oracle\middleware_12cR3\oms"...
Mar 4, 2014 1:55:38 PM]     Apply binary prerequisite checks failed for patch(es) "17513525".
Mar 4, 2014 1:55:38 PM]     opatchauto finds that there are active files locked for patching with respect to the following patches
                       & nbsp;    [17513525]. This could be due to running of weblogic admin server on which opatchauto is dependent for configuration detection.
                            opatchauto recommends the following actions for the mentioned patches:
                            (1) Please stop weblogic admin server and related processes.
                           
(2) Please clean up all processes related to active files using process explorer tree.

                            (3) Please run: C:\app\oracle\middleware_12cR3\oms\OPatch\opatchauto checkApplicable -ph C:\Software\EM12cR3\17513525 -oh C:\app\oracle\middleware_12cR3\oms
                            If it passes and no other prerequisites failed, Please re-start weblogic admin server and processes to execute patching operations in non analyze mode.


4) Use an open source utility, like Process Explorer, to search for each of the active files given as in output in (2) to check for activity.

For Example:

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms