How Do I Check and Change The Server IP Address of The Oracle Database Listener
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: