Thursday, August 18, 2011

Steps to change IP address of Oracle Application Server (Infrastructure Tier and Business Inteligence)

Hi Everyone,

Few months back i had done activity for changing IP of Oracle Application Server 10.1.2.3.0 for Infrastructure and Business Intelligence.

We have to Change the IP address of server on which Infrastructure and forms are installed.

Let me tell you

Note: Changing Hostname where infrastructure is installed is not supported method. It is not recommended to change hostname. Only Changing IP-Address is supported method.

Following are the steps which i have followed while doing the activity :
   
In following document the IP Address will be changed using chgiphost.sh command.

Located at $ORACLE_HOME/chgip/scripts.

STEP 1] Stop all services mid-tier plus infra
   
Stopping Mid –Tier
   
A) Go To $MID_HOME/opmn/bin
        . /opmnctl stopall
B) Go to $MID_HOME /bin

Give following command to stop em console.
        . /emctl stop iasconsole   
          
Stopping INFRA-Tier

A) Go To $INFRA_HOME/opmn/bin
          . /opmnctl stopall
           
 B) Go to $INFRA_HOME/bin
  
Give following command to stop em console.
        . /emctl stop iasconsole
   
 C) Go to $INFRA_HOME/opmn/bin
       Stop lsnrctl
              ./lsnrctl stop

  D) Go to $INFRA_HOME/opmn/bin
         Connect to Infra database
                 ./sqlplus “/as sysdba”
                 ./shut immediate

STEP 2] Take complete backup of application server.

STEP 3] Change the IP-address of the server, Reboot If required.

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

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

STEP 6] Set ORACLE_SID, ORACLE_HOME to infrastructure database.


STEP 7] Start Infrastructure database.
     Go to $INFRA_HOME/bin
        ./sqlplus “/as sysdba”
        Startup

STEP 8] Start database listener
    Go to $INFRA_HOME/bin
        ./lsnrctl start

STEP 9] Start opmn service
    Go To $INFRA_HOME/opmn/bin
        ./opmnctl start

STEP 10] Start OID
    Go To $INFRA_HOME/opmn/bin
        ./opmnctl startproc ias-component=OID process-type=OID

STEP 11] Run Chgiphost script.
    Go to $INFRA_HOME/chgip/scripts
        Sh chgiphost.sh  -infra

STEP 12] After excuting above command we have to specify NEW and OLD IP with orcladmin password :

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

STEP 13] Check for any errors in $INFRA_HOME/chgip/log

STEP 14] Startall opmn service
    Go To $INFRA_HOME/opmn/bin
        ./opmnctl startall

Check the status of opmn services.

STEP 15] Go to $MID_HOME

STEP 16] Set $ORACLE_HOME path to $MID_HOME

STEP 17]
Go to $MID_HOME/chgip/scripts
        chgiphost.sh –mid

STEP 18] After excuting above command we have to specify NEW and OLD IP with orcladmin password :

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

STEP 19]
Check for any error in $MID_HOME/chgip/log

STEP 20] Start all services as follows:
      
       A) Go To $INFRA_HOME/opmn/bin
                  ./opmnctl startall

       B) Go To $INFRA_HOME/bin
                  . /emctl start iasconsole

      C) Go To $Mid_ORACLE_HOME/opmn/bin
        . /opmnctl startall

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


STEP 20]
Check status from front-end.

It works for me because i did this activity for changing IP from OLD to NEW.


I hope it will help you while doing IP change activity..

Will post blog on how TO CHANGE IP ADDRESS AND/OR HOSTNAME OF J2EE & WEB CACHE very soon.. Till then Enjoyy working with Middleware

Regards,
Ajinkya Vichare
ajinkya-vichare.blogspot.com

8 comments:

  1. Can you please help me to change ip address in Weblogic

    ReplyDelete
  2. Yaa sure why not....!!!!
    Following are the steps you need to performs :

    1) stop all weblogic servers ( Admin, managed and Node Manager)
    2) Change IP addresses either from config.xml.
    3) Start weblogic servers.

    Its very simple, it's not tedious job as OAS.

    Hope it will help you....

    please gv feedback on the same

    Regards,
    Ajinky

    ReplyDelete
  3. Thanks Ajinky!!
    It was very helpful to me.
    Would you please explain why it is not possible to change hostname for metadata repository?
    I appreciate your early response.Thanks
    -S Hossain

    ReplyDelete
    Replies
    1. Hi Hossain,

      Thank you so much reviewing my blog.

      Please go through following link for your query. You will get more clear view on the changing IP and hostname.

      http://docs.oracle.com/cd/B14099_19/core.1012/b13995/host.htm#CHDGHFGE

      go through Table 8-1 .


      Hope it will help you.. In case of any further help. Kindly revert or write me on middlewaresolution1@gmail.com

      Regards,
      Ajinkya Vichare

      Delete
  4. Really you gave the great information. We can solve that question by using 20 steps how to change ip address. Thanks for sharing this.

    ReplyDelete
  5. Nice article ! I have changed my ip address successfully . I have confirmed it by using Ip-details.com

    ReplyDelete
  6. This has made me re-think some stuff. If you don’t want to get your information stolen easily while on free Wi-Fi then you need a VPN. Go here to see the best ones compared to each other http://www.anonymousvpnsoftware.com

    ReplyDelete
  7. Hi Alinkya, good and useful article. We are using Oracle Aps and wish to enable users log in to the local server. How can it be done?

    ReplyDelete