12 Replies Latest reply: Aug 26, 2007 6:31 PM by 592714 RSS

    OAS 10g Change name / IP address

    480863
      We are going to change server name and IP address of OAS 9.0.4.2 server for the duration of upgrade to 10.1.2.0.2 / 10.1.4. There are few things that I didn't get from the manual. Just after the changing host name and IP we should probably change network configuration
      1. Used by RDBMS 10.2.0.3 (OID / Metadata repository)
      2. OAS Infrastructure home
      3. Middle tier home
      4. Inside OID?
      Otherwise listener wouldn't start.
      We should probably regenerate SSL certificates as well.
      What happens with web cache when we change IP/name? The renaming script should probably take care of it?
      Does anybody has a complete checklist for renaming OAS 10g R1 and R2.
      Any input or thoughts will be highly appreciated
      Michael
        • 1. Re: OAS 10g Change name / IP address
          360194
          Changing the Host Name and IP Address (Middle Tier)
          The procedure to change either the host name only, the IP address only, or both includes the following steps:

          Step 1: Prepare Your Host
          In this step, you prepare your host for the change by removing instances from clusters and stopping all processes.
          1.     If the host contains a middle-tier instance that is part of a Managed OracleAS Cluster Using Database Repository, Managed OracleAS Cluster Using File-Based Repository, or Manually Managed OracleAS Cluster, remove the instance from the cluster. You can add the instance back into the cluster at the end of the procedure. Use either Application Server Control or the dcmctl leavecluster command-line utility.
          2.     If the host contains a middle-tier instance that is part of an OracleAS Web Cache cluster, remove the instance from the cache cluster. You can add the instance back into the cluster at the end of the procedure. Use either Application Server Control or the dcmctl leavecluster command.
          3.     Shut down each middle-tier instance on the host by running the following commands in each Oracle home:
          $ORACLE_HOME/bin/emctl stop iasconsole
          $ORACLE_HOME/opmn/bin/opmnctl stopall
          4.     Verify that all Oracle Application Server processes have stopped.
          5.     Make sure Oracle Application Server processes will not start automatically after a reboot by disabling any automated startup scripts you may have set up.

          Step 2: Change the Host Name and IP Address on Your Operating System
          In this step, you update your operating system with the new host name, IP address, or both, reboot, and verify that the host is functioning properly on your network. Consult your operating system documentation, system administrator, and network administrator for more information about how to do this.
          1.     Make the updates to your operating system to properly change the host name, IP address, or both.
          2.     Reboot the host.
          3.     Verify that you can communicate with the host from another host in your network. Be sure to communicate using the new host name to make sure that everything is resolving properly.

          Step 3: Update the Middle-Tier Instances on Your Host
          In this step, you update the Oracle Application Server middle-tier instances on your host with the new host name and IP address. 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.
          3.     Run the following commands in the middle-tier Oracle home:
          cd $ORACLE_HOME/chgip/scripts./chgiphost.sh –mid
               The chgiphost.sh command prompts for information that you must provide. The number of prompts depends on your middle-tier installation type.Note that the prompts may provide values in parentheses. These are not default values—they are just reminders. You must enter a value for each prompt. For information about changing the host name and IP Address of a middle tier, refer to the Oracle Application Server 10g Administrator’s Guide.
          4.     Verify that the tool ran successfully by checking for errors in the files in the following directory: $ORACLE_HOME/chgip/log.

          Step 4: Restart Oracle Application Server
          In this step, you restart the middle-tier instances and restore your configuration back to the way it was before you started the procedure.
          1.     Start each middle-tier instance on your host by running the following commands in each Oracle home:
          $ORACLE_HOME/opmn/bin/opmnctl startall$ORACLE_HOME/bin/emctl start iasconsole
          2.     If you removed any instances from an OracleAS Cluster at the beginning of this procedure, then add them back to the cluster. Use either Application Server Control or the dcmctl joincluster command. For instructions on adding instances to a cluster, refer to the Oracle Application Server 10g High Availability Guide.
          3.     If you removed any instances from an OracleAS Web Cache cluster at the beginning of this procedure, then add them back to the cache cluster. For instructions on adding caches to a cluster, refer to the Oracle Application Server Web Cache Administrator’s Guide.
          4.     If you disabled any processes for automatically starting Oracle Application Server at the beginning of this procedure, then enable them.

          Step 5: Update OracleAS Portal and OracleAS Wireless
          This is a special step required for updating OracleAS Portal and OracleAS Wireless. You must perform this step if:
          You changed the host name
          Your middle-tier instance is running OracleAS Portal and OracleAS Wireless
          When you change the host name, the OracleAS Wireless server URL changes to use the new host name. You must update OracleAS Portal with the new OracleAS Wireless service URL. OracleAS Wireless is used by OracleAS Portal as an intermediary in providing access to mobile devices. To provide this access, OracleAS Portal must know the URL to the OracleAS Wireless service on which the Portal is registered. If the OracleAS Wireless service URL has changed, its reference within OracleAS Portal must be updated. This reference can be updated in either of the following ways:
          Specify the OracleAS Wireless Portal Service URL using the Global Settings page.
          Use the cfgiasw script to update the OracleAS Wireless Service URL reference.
          To obtain detailed instructions on updating the OracleAS Wireless Portal service URL reference, refer to the Oracle Application Server Portal Configuration Guide 10g.


          Changing the IP Address (OracleAS Infrastructure)
          The procedure to change the IP address for the host that runs OracleAS Infrastructure includes four steps as outlined in the slide.

          ****** In Infrastructure you can change only IP Address, never change the hostname


          Step 1: Prepare Your Host
          In this step, you prepare your host for the change by stopping all processes.
          1.     Shut down all middle-tier instances that use the OracleAS Infrastructure, even if they are on other hosts.
          2.     Shut down the OracleAS Infrastructure:
          prompt> $ORACLE_HOME/bin/emctl stop iasconsoleprompt> $ORACLE_HOME/opmn/bin/opmnctl stopallprompt> $ORACLE_HOME/bin/lsnrctl stopprompt> $ORACLE_HOME/bin/sqlplus /nologSQL> connect SYS as SYSDBASQL> shutdownSQL> quit
          3.     Verify that all Oracle Application Server processes have stopped.
          4.     Make sure that Oracle Application Server processes do not start automatically after a reboot by disabling any automated startup scripts you may have set up.

          Step 2: Change the IP Address on Your Operating System
          In this step, you update your operating system with the new IP address, reboot, and verify that the host is functioning properly on your network. Consult your operating system documentation, system administrator, and network administrator for more information about how to do this.
          1.     Make the updates to your operating system to properly change the IP address.
          2.     Reboot the host.
          3.     Verify that you can ping the host from another host in your network. Be sure to ping using the new host name to make sure that everything is resolving properly.

          Step 3: Update OracleAS Infrastructure
          In this step, you update OracleAS Infrastructure on your host with the new IP address.
          1.     Log in to the host as the user that installed OracleAS Infrastructure.
          2.     Make sure your ORACLE_HOME and ORACLE_SID environment variables are set to OracleAS Infrastructure Oracle home and the OracleAS Infrastructure database.
          3.     Start the database using:
          prompt> $ORACLE_HOME/bin/sqlplus /nolog
          SQL> connect / as SYSDBA
          SQL> startup
          SQL> quit
          4.     Run the following commands in the OracleAS Infrastructure Oracle home:
          prompt> $ORACLE_HOME/opmn/bin/opmnctl start
          prompt> $ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=OID process-type=OID
          prompt> cd $ORACLE_HOME/chgip/scriptsprompt> ./chgiphost.sh –infra
               The chgiphost.sh command prompts for the old and new IP addresses.
          5.     Verify that the tool ran successfully by checking for errors in the files in the following directory: $ORACLE_HOME/bin/chgip/log.

          Step 4: Restart OracleAS Infrastructure
          In this step, you restart OracleAS Infrastructure and any middle-tier instances that use it.
          1.     Start OracleAS Infrastructure:
          prompt> $ORACLE_HOME/bin/sqlplus /nolog     SQL> connect SYS as SYSDBA     SQL> startup     SQL> quitprompt> $ORACLE_HOME/lsnrctl startprompt> $ORACLE_HOME/opmn/bin/opmnctl startallprompt> $ORACLE_HOME/bin/emctl start iasconsole
          2.     Start all middle-tier instances that use OracleAS Infrastructure, even if they are on other hosts.
          3.     If you disabled any processes for automatically starting Oracle Application Server at the beginning of this procedure, then enable them.
          • 2. Re: OAS 10g Change name / IP address
            480863
            Hi Zaballa,
            Thank you for the input. Did you try it by yourself or it's an extract from documentation?
            Michael
            • 3. Re: OAS 10g Change name / IP address
              360194
              I extract from documentation!!
              • 4. Re: OAS 10g Change name / IP address
                513417
                Hi zaballa,
                Thanks for your inputs they are really helpfull.

                One question i want to ask,

                While running the chgiphost.bat for mid tier you said ORACLE_HOME should be set to that of the mid tier oracle home and

                while running the chgiphost.bat for infra ORACLE_HOME should be set to that of the infra oracle home

                and after this all the services to be set to automatic and then restart the AS.

                But finally to which home the ORACLE_HOME should point to?
                Should it point to mid tier oracle home or infra home?


                Secondly the script tells to execute as follows -
                <prompt><ORACLE_HOME>chgip\scripts\chgiphost.bat -[version/mid/infra]

                so which options should we execute of these three when executing for mid and while executing for infra...

                Thanks & Regards,
                Avinash.
                Pune.
                India.

                Message was edited by:
                Avi4Ora
                • 5. Re: OAS 10g Change name / IP address
                  437541
                  Hi, I am trying to run the script ./chgiphost.sh -mid as the owner of the OAS install, but I am getting the following error:

                  24/08/2007 09:19:33 oracle.chgip.Session execute
                  SEVERE: Error in executing:/u01/app/web/product/10.1.2/as10gfr1/dcm/bin/dcmctl resetHostInformation
                  24/08/2007 09:21:46 oracle.chgip.Session execute
                  SEVERE: Error in executing:/u01/app/web/product/10.1.2/as10gfr1/dcm/bin/dcmctl updateConfig
                  One(or more) of the CHGIP operations has failed.

                  Can anyone advise what do I need to check. Thanks
                  • 6. Re: OAS 10g Change name / IP address
                    592714
                    Tejas,

                    The script generates log file that gets written to $ORACLE_HOME/chgip/log.
                    Look for the latest log file and check inside.
                    There you will find more information on the error.

                    Regards
                    Roelie Viviers
                    • 7. Re: OAS 10g Change name / IP address
                      437541
                      Roelie,

                      thank you for your reply. Among many errors, I see this

                      24/08/2007 09:26:27 oracle.chgip.Session execute
                      WARNING: Command Output:
                      Warning: file_name does not exist /u01/app/web/product/10.1.2/as10gfr1/portal/conf/portal.conf

                      Warning: file_name does not exist /u01/app/web/product/10.1.2/as10gfr1/portal/conf/portal.conf

                      Do you want me to post the log file ??
                      • 8. Re: OAS 10g Change name / IP address
                        592714
                        Tejas,

                        That is just a warning message and should not stop the execution of the
                        script.

                        Just give us the last 2 or 3 messages.
                        They may span multiple lines as they normally include a java error stack.

                        Regards
                        Roelie Viviers
                        • 9. Re: OAS 10g Change name / IP address
                          437541
                          24/08/2007 09:26:27 oracle.chgip.Session execute
                          INFO: Starting Command /u01/app/webtest/product/10.1.2/as10gfr1/jdk/bin/java -cp /u01/app/webtest/product/10.1.2/as10gfr1/lib/xml.jar:/u01/app
                          /webtest/product/10.1.2/as10gfr1/chgip/jlib/filefixer.jar:/u01/app/webtest/product/10.1.2/as10gfr1/lib/xmlparserv2.jar:/u01/app/webtest/produc
                          t/10.1.2/as10gfr1/lib/xschema.jar oracle.sysman.cloneutils.filefixer.FileFixer -instantiateOnly -targetScript /u01/app/webtest/product/10.1.
                          2/as10gfr1/chgip/config/configtool.xml -templateScript /u01/app/webtest/product/10.1.2/as10gfr1/chgip/config/configtool.xml.tmpl old_hostname
                          =mnisdb1.optus.com.au new_hostname=mnisdb1.optus.com.au new_ip=10.16.104.203 old_ip=10.16.104.203 oracle_home=/u01/app/webtest/product/10.1.2/
                          as10gfr1 http_port=7777 instance_name=as10gfr1.mnisdb1 connect_string=null obf_oid_password=null gdb=null userDN=cn=orcladmin oid_hostname=nul
                          l oid_port=null oid_ssl_port=null oca_ssl_port=Unknown db_connect_string=null
                          24/08/2007 09:26:28 oracle.chgip.Session execute
                          INFO: Exit value of 0
                          24/08/2007 09:26:28 oracle.chgip.Session execute
                          INFO: Command Completed.
                          24/08/2007 09:26:29 oracle.chgip.Session loadConfigToolCommands
                          Replacement: res = "cluster_name=C_10.19.97.193.95c083.10fcc4c1f34.-8000"
                          Replacement: copying "repository_type=init"
                          Replacement: copying "instance_id=10.19.97.193.95c083.10fcc4c1f34.-8000"
                          Replacement: copying "cluster_id=1"
                          Replacement: copying "instance_name=as10gfr1.mnisdb1"
                          Replacement: copying "cluster_name=C_10.19.97.193.95c083.10fcc4c1f34.-8000"
                          Operation: file_name = "/u01/app/webtest/product/10.1.2/as10gfr1/portal/conf/portal.conf"
                          ReplacementActor:
                          Command: valueRef = 2 newValue = 10.16.104.203 pattern = (?i)([^.])(10.16.104.203([^.]))
                          Info: performed successfully


                          24/08/2007 09:26:27 oracle.chgip.Session execute
                          WARNING: Command Output:
                          Warning: file_name does not exist /u01/app/webtest/product/10.1.2/as10gfr1/portal/conf/portal.conf

                          Warning: file_name does not exist /u01/app/webtest/product/10.1.2/as10gfr1/portal/conf/portal.conf

                          24/08/2007 09:26:27 oracle.chgip.Session execute
                          INFO: Starting Command /u01/app/webtest/product/10.1.2/as10gfr1/jdk/bin/java -cp /u01/app/webtest/product/10.1.2/as10gfr1/lib/xml.jar:/u01/app
                          /webtest/product/10.1.2/as10gfr1/chgip/jlib/filefixer.jar:/u01/app/webtest/product/10.1.2/as10gfr1/lib/xmlparserv2.jar:/u01/app/webtest/produc
                          t/10.1.2/as10gfr1/lib/xschema.jar oracle.sysman.cloneutils.filefixer.FileFixer -instantiateOnly -targetScript /u01/app/webtest/product/10.1.
                          2/as10gfr1/chgip/config/configtool.xml -templateScript /u01/app/webtest/product/10.1.2/as10gfr1/chgip/config/configtool.xml.tmpl old_hostname
                          =mnisdb1.optus.com.au new_hostname=mnisdb1.optus.com.au new_ip=10.16.104.203 old_ip=10.16.104.203 oracle_home=/u01/app/webtest/product/10.1.2/
                          as10gfr1 http_port=7777 instance_name=as10gfr1.mnisdb1 connect_string=null obf_oid_password=null gdb=null userDN=cn=orcladmin oid_hostname=nul
                          l oid_port=null oid_ssl_port=null oca_ssl_port=Unknown db_connect_string=null
                          24/08/2007 09:26:28 oracle.chgip.Session execute
                          INFO: Exit value of 0
                          24/08/2007 09:26:28 oracle.chgip.Session execute
                          INFO: Command Completed.
                          24/08/2007 09:26:29 oracle.chgip.Session loadConfigToolCommands
                          INFO: Command Retrieved:/u01/app/webtest/product/10.1.2/as10gfr1/dcm/bin/dcmctl resetHostInformation
                          24/08/2007 09:26:29 oracle.chgip.Session loadConfigToolCommands
                          INFO: Command Retrieved:/u01/app/webtest/product/10.1.2/as10gfr1/dcm/bin/dcmctl updateConfig
                          24/08/2007 09:26:29 oracle.chgip.Session execute
                          INFO: Starting Command /u01/app/webtest/product/10.1.2/as10gfr1/dcm/bin/dcmctl resetHostInformation
                          24/08/2007 09:28:43 oracle.chgip.Session execute
                          INFO: Exit value of 1
                          24/08/2007 09:28:43 oracle.chgip.Session execute
                          WARNING: Command Output:
                          ADMN-705002
                          The most likely causes are:
                          1. TaskMaster cannot read configuration files, such as $ORACLE_HOME/opmn/conf/opmn.xml, and $ORACLE_HOME/dcm/dcm.conf, etc.
                          2. Cannot connect to the repository.
                          Resolution:
                          1. Make sure that the system configuration files are present and the permission for those files are set correctly.
                          2. If you are using Infrastructure Database, please make sure that the database is up and running, and the listener for the database is runnin
                          g. Also check the connectivity of the machine to the Database Repository. Please refer to the exception thrown by the Repository API for resol
                          ution. The Repository API may be misconfigured.
                          Base Exception:
                          • 10. Re: OAS 10g Change name / IP address
                            592714
                            Tejas,

                            We now know that the dcmctl command is failed but we don't know why.

                            Try the following command to get more information:
                            /u01/app/webtest/product/10.1.2/as10gfr1/dcm/bin/dcmctl -v resetHostInformation

                            Are your Infrastructure database and listner running ?
                            Are your OID running ?

                            They must be running to execute the change ip script.

                            Regards
                            Roelie Viviers
                            • 11. Re: OAS 10g Change name / IP address
                              437541
                              Hi Roelie,

                              That failed too....

                              ADMN-705002
                              The most likely causes are:
                              1. TaskMaster cannot read configuration files, such as $ORACLE_HOME/opmn/conf/opmn.xml, and $ORACLE_HOME/dcm/dcm.conf, etc.
                              2. Cannot connect to the repository.
                              Resolution:
                              1. Make sure that the system configuration files are present and the permission for those files are set correctly.
                              2. If you are using Infrastructure Database, please make sure that the database is up and running, and the listener for the database is running. Also check the connectivity of the machine to the Database Repository. Please refer to the exception thrown by the Repository API for resolution. The Repository API may be misconfigured.
                              Base Exception:
                              oracle.ons.SubscriptionException
                              Subscription request timed out after 120000 millseconds. Possible causes: OPMN may not be running, you may have an OPMN running in an alternate ORACLE_HOME using duplicate port values, or OPMN may be misconfigured.

                              May be the only option I have is to reinstall the whole thing again ......
                              • 12. Re: OAS 10g Change name / IP address
                                592714
                                Tejas,

                                From your other post it seems that you are running a file based repository
                                and the dcmctl complains that it cannot talk to the opmn.

                                Sounds that you have either some misconfiguration or come corruption
                                somewhere.

                                I think that re-installing your middletier will give you quickest and cleanest
                                solution.

                                I would also recommend that you make regular backups of your middletier
                                so that you can revert to it when things go wrong.

                                Regards
                                Roelie Viviers