Control Oracle HTTP server with EM

A nice feature of EM is the metric gathering and control of Oracle HTTP server. If you follow the standard installation method provided by the Oracle ‘bugy’ wizards, you could have troubles with EM and oracle HTTP server.

Most of the time the HTTP server is not registered with the EM console to gather state information.

The reason:

[wc_dev_adminserver] [NOTIFICATION:32] [] [] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: fe7afd919a7a61df:-1896f1d5:13739376179:-8000-0000000000000ad7,0] [APP: em] Failed to get Attributes:[[ Unable to contact MBeanServer,
Location=AdminServer,EMTargetType=oracle_apache at weblogic.rmi.internal.ServerRequest.sendReceive(


As you can see, the location of the OHS is not correct defined.

We need to delete and redeploy the system components. Make sure AdminServer is up and running at the time you do this.
Run the commands below on the OHS server. Make sure you use your correct instancename.

cd /apps/oracle/middleware/Oracle_WT1/instances/instance1/bin

echo -n unregister the OHS in EM
./opmnctl unregisterinstance -instanceName ohs1 -adminHost -adminPort 8100

echo -n redeply to the EM adminserver
./opmnctl redeploy -adminHost -adminPort 8100

echo -n register instance in EM
./opmnctl registerinstance -adminHost -adminPort 8100

The Result:

Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: