Wednesday, August 24, 2011

Steps to change IP address of Oracle Application Server (J2EE and WebCache)


Hi Everyone,

Hope we you all are doing well. Here we will discuss about to change IP address or/And Hostname of server which only J2EE and WebCache Installed.

Below are the steps for changing IP Address And/or Hostname by using chgiphost.sh command.

 Located at $ORACLE_HOME/chgip/scripts.

STEP 1] Stop all J2EE instance services (Mid Tier)

            A) Go To $MID_HOME/opmn/bin
                        Give following command to stop opmn processes.
                        . /opmnctl stopall

            B) Go to $MID_HOME /bin
                        Give following command to stop em console.
                        . /emctl stop iasconsole      

STEP 2] Take Entire application server backup.

STEP 3] Note down the old IP- address and old hostname (if hostname is going to change) of the server.

STEP 4] change the IP/Hostname of the server, restart the server if required.

STEP 5] Check that the IP-Address and hostname in /etc/hosts is correct

STEP 6] Check that you are able to ping from other machine to that server.

STEP 7] Go to $MID_HOME /chgip/scripts

STEP 8] Run sh chgiphost.sh -mid

STEP 9] After excuting above command we have to specify NEW and OLD IP Or/And Hostname

When prompted for destination IP/Hostname enter new IP/Hostname.
        When Prompted for source IP/Hostname enter enter Old IP/Hostname
        When prompted for OIDAdmin password enter orcladmin password.

STEP 10] Check for any errors in $MID_HOME /chgip/log/

STEP 11] Start j2ee services using following method.

            A) Go to $MID_HOME /opmn/bin
            . /opmnctl startall

B) Go to $MID_HOME /bin
            . /emctl start iasconsole

STEP 12] Check all services are started properly.

I hope it will help you in changing Oracle Application Server IP/ Hostname.

Enjoy working with Middleware.

Regards,
Ajinkya Vichare

Ajinkya-vichare.blogspot.com

No comments:

Post a Comment