0% found this document useful (0 votes)
136 views1 page

How Do I Check and Change The Server IP Address of The Oracle Database Listener

This document provides instructions for changing the IP address of an Oracle database listener when the server IP address changes. It describes logging in as the oracle user, editing the listener.ora and tnsnames.ora files to replace the old IP with the new one, and restarting the listener service using lsnrctl commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
136 views1 page

How Do I Check and Change The Server IP Address of The Oracle Database Listener

This document provides instructions for changing the IP address of an Oracle database listener when the server IP address changes. It describes logging in as the oracle user, editing the listener.ora and tnsnames.ora files to replace the old IP with the new one, and restarting the listener service using lsnrctl commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

How Do I Check and Change the Server IP Address of the Oracle Database Listener

Question
In case of an eSight server IP address change, a connection error may occur on the
Oracle database. How do I change the server IP address listened by the Oracle
database accordingly?

Answer

This operation supports only the scenario where eSight and the Oracle database are
deployed on the same server.
If the IP address of the Oracle database listener is 127.0.0.1, do not change the
server IP address of the Oracle database listener.
In a local HA system, the new IP address of the listener is the floating IP address
of eSight.
In other scenarios, the new IP address of the listener is the system IP address of
eSight.
Log in to the Linux operating system as the oracle user.
Check and change the IP address of the Oracle database listener.
Open the listener.ora file. In the following example, 10.137.59.87 is the current
IP address of the Oracle database listener. Change 10.137.59.87 to a new one.
vi /opt/oracle/product/11.2.0/db_1/network/admin/listener.ora
...

ESIGHTLISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = REGISTER))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.137.59.87)(PORT = 31521))
)
)

...
Press Esc and enter :wq to save the settings and exit.

Open the tnsnames.ora file. In the following example, 10.137.59.87 is the current
IP address of the Oracle database listener. Change 10.137.59.87 to a new one.
vi /opt/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
ESIGHTLINK=(
DESCRIPTION=(
ADDRESS_LIST=(
ADDRESS=(PROTOCOL=TCP)
(HOST=10.137.59.87)
(PORT=31521)
)
)
(CONNECT_DATA=(SERVER=DEDICATED)
(SERVICE_NAME=esight)
)
)

...
Press Esc and enter :wq to save the settings and exit.

Run the following commands to restart the listening service of the Oracle database:

$ lsnrctl stop esightlistener


$ lsnrctl start esightlistener

You might also like