Oracle Application Server 10g IP Change

Are there still clients using this old version? Yes there are many many clients !.

This is one of them who is using Oracle Forms and Reports services 10g g ( and he moved the application sever from one data center to another, and so he wants to change the IP address of it, although the server name remains the same.

Current IP Address/ Server Name:     APP015

New IP Address/ Server Name:       192.168.yyy.222     APP015

The current IP address “” is one used in the server’s hosts file. The server has another interface with IP address in the same domain as that of the database, and this one will remain the same without change. 

The IP address of the “VPN” connection is the one that we are going to change. The “PROD” connection IP will remain the same and it points to to the database on the same IP segment.
This is the current network settings of the “VPN” interface

The hosts file contains the following line:  APP015

Main Steps:

We are so lucky as the server name remains the same. All the Application server configuration is done against the server name not the IP address, so, the steps are very simple:

1- Change the network settings, modify the IP address to the new IP.

2- Modify the hosts file to reflect the new IP.

3- Optionally, restart the server (or only the application server)

This is the new network settings for the “VPN” network interface.

That is all.

But what if we need to change the server name also. In this case we should follow the steps in the following standard documentation:

The main steps in this case:

1- Shutdown the iAS instance:

Shut down each middle-tier instance on the host by running the following commands in each Oracle home:

On Windows systems:

  • ORACLE_HOME\bin\emctl stop iasconsole
  • ORACLE_HOME\opmn\bin\opmnctl stopall

2- Change the Hostname, Domain Name, or IP Address

Update your operating system with the new hostname, domain name, IP address, or any combination of these. Consult your operating system documentation for information on how to perform the following steps.

  1. Make the updates to your operating system to properly change the hostname, domain name, or IP address. (add the IP/server name to the hosts file)
  2. Restart the host, if necessary for your operating system.
  3. Verify that you can ping the host from another host in your network. Be sure to ping using the new hostname to make sure everything is resolving properly.

3- Run the chgiphost Command

Follow these steps for each middle-tier instance on your host. Be sure to complete the steps entirely for one middle-tier instance before you move on to the next.

  1. Log in to the host as the user that installed the middle-tier instance.
  2. Make sure your ORACLE_HOME environment variable is set to the middle-tier Oracle home. Do not use a trailing slash (UNIX) or backslash (Windows) when specifying the variable.
  3. On UNIX systems, set the LD_LIBRARY_PATH, LD_LIBRARY_PATH_64, LIB_PATH, or SHLIB_PATH environment variables to the proper values, as shown in Table 1-1. The actual environment variables and values that you must set depend on the type of your UNIX operating system.
  4. Run the following commands in the middle-tier Oracle home

On Windows systems:

cd ORACLE_HOME\chgip\scripts         
cd c:\oracle\frhome1\chgip\scripts
cmd /c chgiphost.bat -mid

One sample run output:

4- Restart Your Environment

ORACLE_HOME\opmn\bin\opmnctl startall
ORACLE_HOME\bin\emctl start iasconsole

Donate to support our blogging work




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s