Error starting ORMI-Server. Unable to bind socket: The socket name is already in use.
Thread-1 WARN http: snmehl_connect: connect failed to (node1:xx): A remote host refused an attempted connect operation. (error = 79)

I face with that error on 10.2.0.4 RAC system on AIX 6.1. While I am trying to start dbconsole it fails.

[oracle@node1] emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
http://node1:1158/em/console/aboutApplication
ps: 0509-048 Flag -o was used with invalid list.
ps: Not a recognized flag: –
Usage: ps [-AMNZaedfklm] [-n namelist] [-F Format] [-o specifier[=header],…]
[-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T pid] [ -L pidlist ]
[-@ [wparname] ]
Usage: ps [aceglnsuvwxX] [t tty] [processnumber]
Starting Oracle Enterprise Manager 10g Database Control ………………………..
When I checked $ORACLE_HOME/node1_Instance1/sysman/log I noticed 2 error messages at log files:

– Error starting ORMI-Server. Unable to bind socket: The socket name is already in use.
– Thread-1 WARN http: snmehl_connect: connect failed to (node1:xx): A remote host refused an attempted connect operation. (error = 79)

After investigate issue I followed:

1. Stop the dbconsole:
$ORACLE_HOME/bin/emctl stop dbconsole

2. Edit the following file
$ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_<HOST_SID>/config/rmi.xml

change the rmi-server port to different port
For example, change

<rmi-server port=”5520″
to
<rmi-server port=”5521″

Note: Before changing the check if it is not being used by any process using netstat command

For instance:
netstat -an|grep 5521

3. Start the dbconsole
$ORACLE_HOME/bin/emctl start dbconsole

After that change dbconsole has been started

Reference:
Problem: Startup: Cannot Start dbconsole and log Shows ‘ORMI-Server address is already being used’ [ID 419586.1]
EMCA or DB Control (DBConsole) Fails with Error starting ORMI-Server [ID 438504.1]

Advertisements