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