Home » RDBMS Server » Enterprise Manager » Failed to allocate port(s) (error at end of Installation.) (Oracle 11gR1, RHEL 5)
Failed to allocate port(s) (error at end of Installation.) [message #477695] Sun, 03 October 2010 18:09 Go to next message
jxh461
Messages: 185
Registered: March 2005
Senior Member
At the end of my installation I received the follwing error message:

Sep 11, 2010 4:20:49 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
Refer to the log file at /u01/app/oracle/cfgtoollogs/dbca/orcl/emConfig.log for more details.
Sep 11, 2010 4:20:49 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2480)
at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:743)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:250)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:177)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:220)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
at java.lang.Thread.run(Thread.java:595)
Sep 11, 2010 4:20:49 PM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to /u01/app/oracle/product/11.1.0/db_1/oui


I am hoping that this looks familiar to some of you on here and you can help me resolve.

When I try to start the listener I get the following.

[oracle@jhlinux db_1]$ lsnrctl status

LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 03-OCT-2010 18:54:43

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=jhlinux.home.com)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
[oracle@jhlinux db_1]$ lsnrctl start

LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 03-OCT-2010 18:54:53

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

Starting /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.1.0.6.0 - Production
System parameter file is /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/jhlinux/listener/alert/log.xml
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=jhlinux.home.com)(PORT=1521)))
TNS-12542: TNS:address already in use
TNS-12560: TNS:protocol adapter error
TNS-00512: Address already in use
Linux Error: 98: Address already in use

Listener failed to start. See the error message(s) above...

I found a thread that reported a similar issue and was directed to Oracle Support Document 353843.1 . The suggestion was to adjust the /etc/hosts file, but I don't see anything wrong in the file:

[oracle@jhlinux etc]$ cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
# ::1 localhost6.localdomain6
127.0.0.1 localhost.localdomain localhost
192.168.1.254 jhlinux.home.com jhlinux




Please advise. Thank you in advance for your help.
Re: Failed to allocate port(s) (error at end of Installation.) [message #477696 is a reply to message #477695] Sun, 03 October 2010 18:15 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>Linux Error: 111: Connection refused
>Linux Error: 98: Address already in use
The problem is with OS/Networking mis-configuration
Oracle is the victim; not the culprit.
The fix is some change to OS.
Consult Installation Guide for what you neglected to do prior to starting Oracle installation.
Re: Failed to allocate port(s) (error at end of Installation.) [message #477774 is a reply to message #477696] Mon, 04 October 2010 07:11 Go to previous messageGo to next message
babuknb
Messages: 1736
Registered: December 2005
Location: NJ
Senior Member

Check here

http://www.orafaq.com/forum/t/85743/2/

Thanks
Re: Failed to allocate port(s) (error at end of Installation.) [message #479173 is a reply to message #477774] Thu, 14 October 2010 22:27 Go to previous messageGo to next message
jxh461
Messages: 185
Registered: March 2005
Senior Member
I think I may have found what is wrong but I want to be sure:

[oracle@jhlinux ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
# ::1 localhost6.localdomain6
127.0.0.1 localhost.localdomain localhost
192.168.1.74 jhlinux.home.com jhlinux

[oracle@jhlinux ~]$ nslookup jhlinux.home.com
Server: 192.168.1.254
Address: 192.168.1.254#53

Name: jhlinux.home.com
Address: 192.168.1.74

[oracle@jhlinux ~]$

It seems like the ip is not matching but which one should I change ?
Re: Failed to allocate port(s) (error at end of Installation.) [message #479175 is a reply to message #479173] Thu, 14 October 2010 22:33 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>It seems like the ip is not matching but which one should I change ?
They look the same to me.
>192.168.1.74 jhlinux.home.com jhlinux
>Address: 192.168.1.74

bcm@bcm-laptop:~$ oerr tns 512
00512, 00000, "Address already in use"
// *Cause: Specified listener address is already being used.
// *Action: Start your listener with an unused address.

I read above as saying another listener is already running on your system
Re: Failed to allocate port(s) (error at end of Installation.) [message #479177 is a reply to message #479175] Thu, 14 October 2010 22:54 Go to previous messageGo to next message
jxh461
Messages: 185
Registered: March 2005
Senior Member
Please explain to me what the following is for ?

Server: 192.168.1.254
Address: 192.168.1.254#53

as opposed to

>192.168.1.74 jhlinux.home.com jhlinux
>Address: 192.168.1.74

I am thinking the former is DNS and the latter is host. My understanding is that they should match.
Please correct me if I am wrong and advise.
Re: Failed to allocate port(s) (error at end of Installation.) [message #479178 is a reply to message #479177] Thu, 14 October 2010 23:00 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>Address: 192.168.1.254#53
DSN Server has IP# 192.168.1.254 & DNS uses port 53

bcm@bcm-laptop:~$ nslookup localhost
Server:		192.168.0.1
Address:	192.168.0.1#53

Name:	localhost
Address: 127.0.0.1

Re: Failed to allocate port(s) (error at end of Installation.) [message #479181 is a reply to message #479178] Thu, 14 October 2010 23:24 Go to previous messageGo to next message
jxh461
Messages: 185
Registered: March 2005
Senior Member
How come yours nslookup is showing Address: 127.0.0.1

whereas I have that ip in /etc/hosts but not showing in nslookup ?

I am confused as my latest listener status is as follows

[oracle@jhlinux ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 15-OCT-2010 00:25:30

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=jhlinux.home.com)(PORT=1521)))
TNS-12532: TNS:invalid argument
TNS-12560: TNS:protocol adapter error
TNS-00502: Invalid argument
Linux Error: 113: No route to host
Re: Failed to allocate port(s) (error at end of Installation.) [message #480232 is a reply to message #477695] Thu, 21 October 2010 21:08 Go to previous messageGo to next message
digumarty
Messages: 1
Registered: October 2010
Junior Member
Hi

This problem can also be a result of ipv6 being enabled on your linux machine (assuming you have looked at /etc/hosts and /etc/services for port allocation conflicts) - most recent linux distributions enable ipv6 by default which can be a cause the port allocation code to fail when no ipv6 network is being used.

To see if ipv6 is enabled in your kernel run the following on your command prompt

> ip a | grep inet6

If you need to disable ipv6 in your kernel you should either
blacklist your ipv6 module - or if compiled directly in your kernel, disable ipv6 via sysctl.

eg:

add the following into /etc/modprobe.d/blacklist.conf
blacklist ipv6

AND/OR

add the following into /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
(exec: sbin/sysctl -p)

(I would boot your machine to ensure the changes take hold - or restart appropriate services in /etc/init.d)

Finally after your reboot make sure ipv6 is actually disabled:
> ip a | grep inet6
(should return nothing)

clean up your old oracle installation including /etc/oratab and /etc/oraInst.loc

- remove ipv6 address from /etc/hosts to be extra sure - you can restore these later.

and restart your oracle 11g installation.


(please google for distribution specific ways to disable ipv6 - if ipv6 is still enabled after the above changes)

Re: Failed to allocate port(s) (error at end of Installation.) [message #481922 is a reply to message #480232] Mon, 08 November 2010 06:50 Go to previous message
jxh461
Messages: 185
Registered: March 2005
Senior Member
After adding suggested entry in /etc/sysctl.conf


[root@jhlinux etc]# grep ipv6 sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1



[root@jhlinux etc]# /sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
error: "net.ipv6.conf.all.disable_ipv6" is an unknown key
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
[root@jhlinux etc]# ip a | grep inet6
inet6 ::1/128 scope host
inet6 fe80::200:6cff:feed:9fc5/64 scope link
[root@jhlinux etc]#
Previous Topic: OEM problem
Next Topic: How can i successfully run emcli execute_hostcmd from EM console on Windows Agent?
Goto Forum:
  


Current Time: Thu Mar 28 17:27:44 CDT 2024