Wednesday, June 20, 2012

EM12c: How to recover EM(OMS) to its original wallet and cert after messing up with 3rd party wallet and certificate?

Problem: I was trying to secure OMS using 3rd party wallet. Created a certificate request. Secured OMS and console using this wallet and certificate successfully. But then while trying to start oms, it did not come up and always showing in emctl.log:
ERROR oms.StatusOMSCmd processStatusOMS.309 - Received fatal alert: handshake_failure Received fatal alert: handshake_failure
        at HTTPClient.HTTPConnection.sendRequest(
        at HTTPClient.HTTPConnection.handleRequest(
        at HTTPClient.HTTPConnection$
        at HTTPClient.HTTPConnection$
        at HTTPClient.HttpClientConfiguration.doAction(
        at HTTPClient.HTTPConnection.doAction(
        at HTTPClient.HTTPConnection.setupRequest(
        at HTTPClient.HTTPConnection.Get(
        at oracle.sysman.emctl.oms.StatusOMSCmd.pingOMSCheck(
        at oracle.sysman.emctl.oms.StatusOMSCmd.processStatusOMS(
        at oracle.sysman.emctl.wls.OMSController.statusOMS(
        at oracle.sysman.emctl.wls.OMSController.startOMS(
        at oracle.sysman.emctl.wls.OMSController.main(
2012-06-06 13:20:28,196 [main] INFO  wls.OMSController statusOMS.1354 - statusOMS finished with result: 9

I did figure out that there is a potential issue with certificate/wallet that I generated. It’s not valid. So I wanted to bring oms back to its original configuration with its wallet and certificate.

Solution: Using following commands, I was able to bring up the OMS without any issues.

%emctl stop oms
%emctl secure oms
%emctl secure console -self_signed
%emctl stop oms -all
%emctl start oms

No comments: