Tuesday, March 20, 2012

TNS-12542: TNS:address already in use TNS-12560 TNS-00512 Linux Error: 98:

Today I change the IP address of my development server (linux redhat 5) with

Root# ifconfig eth0 netmask up
Root# ifconfig eth0

I change this IP in my /etct/hosts file.

After this when I am trying to start my listener, its says following error…..

[oracle@ebek ~]$ lsnrctl start

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

Starting /opt/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version - Production
System parameter file is /opt/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /opt/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ebek)(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...


After that I also change my target Ip and subnet mask in the following files.
And reboot the server. My problem is solved.

Root# vi /etc/sysconfig/network-scripts/ifcfg-eth0


Root# vi /etc/sysconfig/network

No comments: