opatch requires response file for Oracle Configuration Manager (OCM) : One-off patch installation failed during configuration

While upgrading one of Oracle Software using runInstaller, I received error One-off patch installation failed during configuration . I looked at inventory log$INVENTORY_LOCATION/ logs/ installActions[YYYY]-[MM]-[DD]_[hh]-[mm]-[ss][PM|AM].log and realised error was related to Oracle Configuration Manager ( OCM )

_______
ERROR: OPatch failed because of cmd. args. problem.

To run in silent mode, OPatch requires a response file for Oracle Configuration Manager (OCM).
Run $ORACLE_HOME/OPatch/ocm/bin/emocmrsp to generate an OCM response file. The generated response file can be reused
on different platforms and in multiple OPatch silent installs.

To regenerate an OCM response file, rerun  $ORACLE_HOME/OPatch/ocm/bin/emocmrsp.
________

To fix this issue, I created OCM response fileusing $ORACLE_HOME/ OPatch/ ocm/ bin/ emocmrsp , I tried again runInstaller but still faced same error .

.

On futher looking at patch log(Installer was running one-off patch using opatch in silent mode) at

$ORACLE_HOME/ .patch_storage/ [patch_number]/ Apply_[patchNo]_[MM]-[DD]-[YYYY]_[hh]-[mm]-[ss].log

_________

Oracle Configuration Manager (OCM) is included with this release of OPatch.

This is a OCM patch.
Home has OCM installed but not configured

To run in silent mode, OPatch requires a response file for Oracle Configuration Manager (OCM).
Run $ORACLE_HOME/OPatch/ocm/bin/emocmrsp to generate an OCM response file. The generated response file can be reused on different platforms and in multiple OPatch silent installs.

To regenerate an OCM response file, rerun  $ORACLE_HOME/OPatch/ocm/bin/emocmrsp.

________

I realized that OUI was calling OPatch in silent mode
opatch apply  -silent -force -oh $ORACLE_HOME -invPtrLoc $INVENTORY_LOCATION/oraInst.loc

and there was no way I could pass OCM response file opatch option in OUI screen like “-ocmrf

This made me think to look at error again and found this “Home has OCM installed but not configured

so question was How to configure OCM (Oracle Configuration Manager) in Oracle Home. OCM configuration is  documented here

I used $ORACLE_HOME/ccr/bin/setupCCR –s –d to configure OCM where

-s parameter indicates the acceptance of the Oracle Configuration Manager license agreement.
-d parameter indicates Oracle Configuration Manager will be installed in Disconnected Mode.

I then clicked Retry on Oracle Universal Installer (OUI) and it worked this time

About the Author Atul Kumar

Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Specialising in Design, Implement, and Trainings.

follow me on:

Leave a Comment:

5 comments
troydba says December 3, 2009

Can you please provide some clue as to what version of the database or software you were attempting to patch?

Reply
Atul Kumar says December 10, 2009

@troydba,
While upgrading OID/Identity Management from 10.1.4.2 to 10.1.4.3

Reply
anonymous says June 13, 2016

I have a 2 node rac (GI/DB home is non-shared). Do i have to create response file in both the nodes as grid user ?

Reply
steve says October 25, 2017

worked for me! ./setupCCR –s –d

Reply
    Atul Kumar says November 9, 2017

    Great Steve that it worked. Atul

    Reply
Add Your Reply

Not found