Saturday, August 5, 2017

OHS not running; But Opmnctl status shows OHS proc is running with pid=xxxx

OHS not running; But Opmnctl status shows OHS proc is running with pid=xxxx

Observations

-         Command ps -ef | grep “<pid xxxx>” returns empty.
-         The http.pid file doesn’t exists in ORACLE_INSTANCE/diagnostics/logs/OHS/wcp_ohs1
-         Console~OHS~1.log has below entries
“17/11/27 10:57:33 Stop process--------/u01/app/oracle/product/fmw/Oracle_WT1/ohs/bin/apachectl hardstop: httpd (no pid file) not running”
-         Opmnctl status is as in below screenshot

-         Some cases, even the OHS.log (i.e. <OHS component name>.log) file is not present to get this log


Resolution:
-         Even if the ps –ef | grep pid returns blank
-         Go ahead and execute kill -9 <OHS PID> with oracle user
-         You’ll see that all the opmnctl managed processes get a new PID assigned.