Friday, May 6, 2011

Backend WLS or EM application seems to be down

When trying to access the web interface of Oracle 11g Release 1 Grid Control after restart of the server I am getting the following message:

Backend WLS or EM application seems to be down 
In the first try I receive the following error:


$  ./Oracle/Middleware/oms11g/bin/emctl start oms
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Could Not Be Started
Oracle Management Server is not functioning because of the following reason:
Connection to the repository failed. Verify that the repository connection information provided is correct.
Please check /home/oracle/Oracle/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log for error details

This is very clear message and rectified by starting the listener.


To resolve the main issue I did the following:
$ pwd
/home/oracle
$  ./Oracle/Middleware/oms11g/bin/emctl start oms
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Could Not Be Started
Oracle Management Server is Up
And it worked, now I can access the Oracle 11g Release 1 Grid Control's web interface.

Few other things which you can do is:

Check if the listener is running and you can connect to database.

Another is check status of oms with details option


$ ./Oracle/Middleware/oms11g/bin/emctl status oms -details
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : *******************
HTTP Console Port   : ****
HTTPS Console Port  : ****
HTTP Upload Port    : ****
HTTPS Upload Port   : ****
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is locked.
Active CA ID: 1
If you are still getting the same error then make sure that the listener is running.


lsnrctl status listener

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-JUL-2012

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=orcl)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=gcdb)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(Port=XXXX)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused


stop and restart the listener and try stopping and starting the listener again


Oracle Grid Control 12c

[oracle@oem01 bin]$ ./emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down
[oracle@oem01 bin]$
[oracle@oem01 bin]$
[oracle@oem01 bin]$ ./emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Starting Oracle Management Server...
Starting WebTier...
WebTier Successfully Started
Oracle Management Server Successfully Started
Oracle Management Server is Up
[oracle@oem01 bin]$
[oracle@oem01 bin]$
[oracle@oem01 bin]$
[oracle@oem01 bin]$ ./emctl status oms
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Up
[oracle@oem01 bin]$
[oracle@oem01 bin]$
[oracle@oem01 bin]$
[oracle@oem01 bin]$ ./emctl status oms -details
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host        : oem01.localdomain
HTTP Console Port          : 7789
HTTPS Console Port         : 7801
HTTP Upload Port           : 4890
HTTPS Upload Port          : 4901
EM Instance Home           : /u01/app/oracle/Middleware2/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/Middleware2/gc_inst/em/EMGC_OMS1/sysman/log
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is locked.
Active CA ID: 1
Console URL: https://oem01.localdomain:7801/em
Upload URL: https://oem01.localdomain:4901/empbs/upload

WLS Domain Information
Domain Name      : GCDomain
Admin Server Host: oem01.localdomain

Managed Server Information
Managed Server Instance Name: EMGC_OMS1
Managed Server Instance Host: oem01.localdomain
WebTier is Up
Oracle Management Server is Up
[oracle@oem01 bin]$

No comments: