Skip Headers
Oracle® Application Server Administrator's Guide
10g (10.1.4.0.1)

Part Number B28185-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

8 Changing Network Configurations

This chapter provides procedures for changing the network configuration of an Oracle Application Server host.

It contains the following topics:

8.1 Overview of Procedures for Changing Network Configurations

The following procedures for changing network configurations are presented in this chapter:

If you have disabled anonymous binds in Oracle Internet Directory, you must enable them before you make configuration changes. See Section 7.5 for more information.

8.2 Changing the Hostname, Domain Name, or IP Address

You may want to change the hostname, domain name, or IP address of the host after you have installed Oracle Application Server. Depending on your installation type, you can perform some or all of these operations.

Many of the procedures in this section use the chgiphost command. See Section 8.2.1 for more information about the command.

Table 8-1 summarizes the installation types that support hostname, domain name, and IP address changes, and provides pointers to the appropriate procedures.

Table 8-1 Supported Procedures for Hostname, Domain Name, and IP Address Changes

Installation Type Changing the Hostname or Domain Name Changing the IP Address

Infrastructure: Identity Management only

Identity Management installations with the following components configured on the host to be changed:

  • Oracle Internet Directory only

  • OracleAS Single Sign-On, Oracle Delegated Administration Services, and (optionally) Oracle Directory Integration Platform

  • Oracle Internet Directory, OracleAS Single Sign-On, Oracle Delegated Administration Services, and (optionally) Oracle Directory Integration Platform

Supported

See Section 8.2.2

Supported

See Section 8.2.2

Infrastructure: Identity Management and Metadata Repository

Not supported

Supported

See Section 8.2.5

Infrastructure: Metadata Repository only

Not supported

Supported

See Section 8.2.5

Oracle Identity Federation


Supported

See Section 8.2.3

Supported

See Section 8.2.3

OracleAS Certificate Authority


Supported

See Section 8.2.4

Supported

Simply change the address in your operating system. No updates to Oracle Application Server are required.


For the procedures in this chapter, a Metadata Repository is one created by an installation of OracleAS Infrastructure or by the running Oracle Application Server Repository Creation Assistant.


See Also:


8.2.1 Understanding the chgiphost Command

The chgiphost command-line utility changes the hostname, domain name, or IP address of an Oracle Application Server installation.

The utility is located at:

  • On UNIX systems:

    ORACLE_HOME/chgip/scripts/chgiphost.sh
    
    
  • On Windows systems:

    ORACLE_HOME\chgip\scripts\chgiphost.bat
    
    

Table 8-2 shows the options for the command.

Table 8-2 Options for the chgiphost Command

Options Description

-fed

Changes the hostname, domain name, or IP address of an Oracle Identity Federation installation

-help

Displays command-line Help for the utility

-idm

Changes the hostname, domain name, or IP address of an Identity Management only instance

-infra

Changes the IP address of an Infrastructure instance

-silent

Runs the command in silent mode

-version

Displays the version of the utility


Note that if you use chgiphost to change the hostname, domain name, or IP address, it does not update the instance name. For example, assume that the original instance name, with the hostname and domain name appended, is:

1014im.myhost1.mydomain.com

If you change the hostname to myhost2, the instance name does not change; it remains the same.

8.2.2 Changing the Hostname, Domain Name, or IP Address of an Identity Management Installation

This section describes how to change the hostname, domain name, or IP address on a host that contains an Identity Management installation. This procedure applies to any Identity Management-only installation (one that does not include a Metadata Repository), including the following:

  • Identity Management with only Oracle Internet Directory configured

  • Identity Management with OracleAS Single Sign-On and Oracle Delegated Administration Services configured, and, optionally, Oracle Directory Integration Platform

  • Identity Management with Oracle Internet Directory, OracleAS Single Sign-On, and Oracle Delegated Administration Services configured and, optionally, Oracle Directory Integration Platform

  • Identity Management with Oracle Identity Federation configured


Note:

If your Identity Management installation consists of only OracleAS Certificate Authority, use the procedure described in Section 8.2.4.

The following sections describe the procedure:

Before You Begin

Review the following items before you start the procedure:

  • Consider changing the log level before running the chgiphost command so you can view more detailed information. See Section 8.2.6.2 for more information.

  • If your old hostname is a string that is likely to appear in a configuration file, the chgiphost command may encounter problems when trying to update the configuration files. Refer to Section 8.2.6.3 for information on how to avoid this problem.

  • Write down the old hostname and IP address before you begin. You will be prompted for these values.

  • Oracle recommends that you perform a backup of your environment before you start this procedure. Refer to Part V, "Backup and Recovery" for more information.

Task 1: Shut Down Middle-Tier Instances

For each middle-tier instance that uses Identity Management, stop the Application Server Control Console and the middle-tier instance using the following commands:

  • On UNIX systems:

    ORACLE_HOME/bin/emctl stop iasconsole
    
    ORACLE_HOME/opmn/bin/opmnctl stopall
    
    
  • On Windows systems:

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

Task 2: Prepare Your Host

Prepare your host for the hostname change by stopping all processes:

  1. Set the ORACLE_HOME environment variable.

  2. Shut down the Identity Management installation, including the servers, such as Oracle Directory Server, Oracle Directory Integration Platform server, and Replication Server, and the Application Server Control Console. For example, on UNIX, use the following commands:

    ORACLE_HOME/bin/emctl stop iasconsole
    
    ORACLE_HOME/bin/oidctl server=odisrv instance=instance_number stop
    
    ORACLE_HOME/bin/oidctl connect=global_db_name server=oidrepld instance=instance_number stop
    
    ORACLE_HOME/bin/oidctl server=oidldapd instance=instance_number stop
    
    ORACLE_HOME/opmn/bin/opmnctl stopall
    
    
  3. To make sure Oracle Application Server processes will not start automatically after a restart of the host, disable any automated startup scripts you may have set up, such as /etc/init.d scripts.

Task 3: Change the Hostname, Domain Name, or IP Address

Update your operating system with the new hostname, domain name, or IP address. 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 hostname, domain name, or both.

  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.

Task 4: Run the chgiphost Command

Perform these steps using the Identity Management Oracle home:

  1. Log in to the host as the user that installed Identity Management.

  2. Set the ORACLE_HOME environment variable. Do not use a trailing slash (UNIX) or backslash (Windows) when specifying the ORACLE_HOME 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 Identity Management Oracle home:

    • On UNIX systems:

      cd ORACLE_HOME/chgip/scripts
      
      ./chgiphost.sh -idm
      
      
    • On Windows systems:

      cd ORACLE_HOME\chgip\scripts
      
      cmd /c chgiphost.bat -idm
      
      

    The chgiphost command prompts for information, as shown in Table 8-3. Note that the prompts may provide values in parentheses. You can enter a different value, or press the return key to accept the suggested value.

    Table 8-3 Prompts and Actions for chgiphost -idm

    Prompt Action
    Enter fully qualified hostname (hostname.domainname) of destination
    

    If you changed the hostname or domain name on your system, enter the new fully qualified hostname.

    Otherwise, enter the current fully qualified hostname.

    Enter fully qualified hostname (hostname.domainname) of source
    

    If you changed the hostname or domain name on your system, enter the old fully-qualified hostname.

    Otherwise, enter the current fully qualified hostname.

    Enter valid IP Address of destination
    

    If you changed the IP address of the system, enter the new IP address.

    Otherwise, enter the current IP address

    Enter valid IP Address of source
    

    If you changed the IP address of the system, enter the old IP address.

    Otherwise, enter the current IP address


  5. Verify that the tool ran successfully by checking for errors in the files in the following directory:

    (UNIX) ORACLE_HOME/chgip/log
    
    (Windows) ORACLE_HOME\chgip\log
    

Task 5: Restart Your Environment

Restart the Identity Management installation and any other instances that you stopped during this procedure:

  1. Restart the Identity Management instance, using the following commands:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl stopall
      
      ORACLE_HOME/opmn/bin/opmnctl startall
      
      ORACLE_HOME/bin/emctl start iasconsole
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl stopall
      
      ORACLE_HOME\opmn\bin\opmnctl startall
      
      ORACLE_HOME\bin\emctl start iasconsole
      
      
  2. If you disabled any processes for automatically starting Oracle Application Server at the beginning of this procedure, enable them.

Task 6: Update Your Environment

This task contains the steps to update your environment for the new hostname, domain name, or IP address. The steps you need to take depend on how your environment is configured. If you changed the hostname or IP address of the host containing:

If your environment uses LDAP-based replication of Oracle Internet Directory and Oracle Internet Directory is on a different host than OracleAS Metadata Repository, you can change the hostname, domain name, or IP address of the host containing the Master (supplier) or Replica (consumer) Oracle Internet Directory. See Task 7: Update Oracle Internet Directory If LDAP-Based Replication Is Used for information.

Configuration 1: Oracle Internet Directory Only  In this case, Oracle Internet Directory is installed on one host and the other Identity Management components are installed on another host and you changed the host that contains Oracle Internet Directory. Take the following steps:

  1. In the OracleAS Single Sign-On installation, stop the Infrastructure processes and the Application Server Control Console:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl stopall
      
      ORACLE_HOME/bin/emctl stop iasconsole
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl stopall
      
      ORACLE_HOME\bin\emctl stop iasconsole
      
      
  2. Update the ias.properties file in every instance that uses Oracle Internet Directory. This includes other Identity Management instances (OracleAS Single Sign-On, Oracle Delegated Administration Services, and Oracle Directory Integration Platform) and middle-tier instances (such as J2EE and Web Cache, Portal and Wireless, and Business Intelligence and Forms).

    In each Oracle home, update the following file:

    (UNIX) ORACLE_HOME/config/ias.properties
    
    (Windows) ORACLE_HOME\config\ias.properties
    
    

    In the file, update the OIDhost parameter in with the new hostname:

    OIDhost=newhost.us.oracle.com
    
    
  3. Update the ldap.ora file in every instance that uses Oracle Internet Directory. This includes other Identity Management instances and middle-tier instances.

    In each Oracle home, edit the following file:

    (UNIX) ORACLE_HOME/ldap/admin/ldap.ora
    
    (Windows) ORACLE_HOME\ldap\admin\ldap.ora
    
    

    In the file, update the DIRECTORY_SERVERS parameter with the new fully qualified hostname.

  4. In the Oracle homes for the other Identity Management components and the middle-tier instances, restart OPMN and Application Server Control Console:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl start
      
      ORACLE_HOME/bin/emctl start iasconsole
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl start
      
      ORACLE_HOME\bin\emctl start iasconsole
      
      
  5. In the Oracle homes for the other Identity Management components and each middle tier, run the Change Identity Management Services wizard and supply the new Oracle Internet Directory information:

    1. Using the Application Server Control Console, navigate to the Application Server Home page for OracleAS Single Sign-On.

    2. Click the Infrastructure link.

    3. On the Infrastructure page, in the Identity Management section, click Change.

    4. Follow the steps in the wizard for supplying the new Identity Management information (new hostname).

      Note that although you may see the new Internet Directory host and port on the page, you still need to perform this step. The Application Server Control Console displays the virtual hostname only because it read it from the updated ias.properties file.

  6. When the wizard completes, it asks you to restart the affected components. Run the following commands in each Oracle home:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl stopall
      
      ORACLE_HOME/opmn/bin/opmnctl startall
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl stopall
      
      ORACLE_HOME\opmn\bin\opmnctl startall
      
      
  7. If OracleAS Certificate Authority is installed, take the following steps:

    1. Stop OracleAS Certificate Authority, the OC4J oca process, and the Oracle HTTP Server on the host running OracleAS Certificate Authority. For example, on UNIX, execute the following commands:

      ORACLE_HOME/oca/bin/ocactl stop
      
      ORACLE_HOME/opmn/bin/opmnctl stopproc process-type=oca
      
      ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server
      
      
    2. Edit the following file and change the name of the host listed in the file:

      (UNIX) ORACLE_HOME/oca/conf/oca.conf
      
      (Windows) ORACLE_HOME\oca\conf\oca.conf
      
      
    3. Reassociate with OracleAS Single Sign-On and Oracle Internet Directory. For example, on UNIX:

      ORACLE_HOME/oca/bin/ocactl changesecurity -server_auth_port OcaSslPort
      
      
    4. Start Oracle HTTP Server, the OC4J oca process, and OracleAS Certificate Authority. For example, on UNIX:

      ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server
      
      ORACLE_HOME/opmn/bin/opmnctl startproc process-type=oca
      
      ORACLE_HOME/oca/bin/ocactl start
      
      

Configuration 2: OracleAS Single Sign-On, Oracle Delegated Administration Services, and (optionally) Oracle Directory Integration Platform  In this case, Oracle Internet Directory is installed on one host and the other Identity Management components are installed on another host and you changed the host that contains the other Identity Management components.

In each middle-tier installation (such as J2EE and Web Cache, Portal and Wireless, or Business Intelligence and Forms installations), take the following steps:

  1. Start the OPMN and the Application Server Control Console:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl start
      
      ORACLE_HOME/bin/emctl start iasconsole
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl start
      
      ORACLE_HOME\bin\emctl start iasconsole
      
      
  2. In the Oracle home for each middle tier, run the Change Identity Management Services wizard and supply the new Oracle Internet Directory information:

    1. Using the Application Server Control Console, navigate to the Application Server Home page for OracleAS Single Sign-On.

    2. Click the Infrastructure link.

    3. On the Infrastructure page, in the Identity Management section, click Change.

    4. Follow the steps in the wizard for supplying the new Identity Management information (new hostname).

      Note that although you may see the new Internet Directory host and port on the page, you still need to perform this step. The Application Server Control Console displays the virtual hostname only because it read it from the updated ias.properties file.

  3. Restart the affected components. Run the following commands in each Oracle home:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl stopall
      
      ORACLE_HOME/opmn/bin/opmnctl startall
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl stopall
      
      ORACLE_HOME\opmn\bin\opmnctl startall
      
      

Configuration 3: Oracle Internet Directory, OracleAS Single Sign-On, Oracle Delegated Administration Services, and (optionally) Oracle Directory Integration Platform  In this case, Oracle Internet Directory and the other Identity Management components are installed on the same host and this is the host you changed. Take the following steps:

  1. Start the OPMN and the Application Server Control Console:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl start
      
      ORACLE_HOME/bin/emctl start iasconsole
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl start
      
      ORACLE_HOME\bin\emctl start iasconsole
      
      
  2. Update the ias.properties file in every middle-tier instance.

    In each Oracle home, update the following file:

    (UNIX) ORACLE_HOME/config/ias.properties
    
    (Windows) ORACLE_HOME\config\ias.propertie
    
    

    In the file, update the OIDhost parameter in with the new hostname:

    OIDhost=newhost.us.oracle.com
    
    
  3. Update the ldap.ora file in every middle-tier instance that uses the Identity Management instance.

    In each Oracle home, edit the following file:

    (UNIX) ORACLE_HOME/ldap/admin/ldap.ora
    
    (Windows) ORACLE_HOME\ldap\admin\ldap.ora
    
    

    In the file, update the DIRECTORY_SERVERS parameter with the new fully qualified hostname.

  4. In each middle-tier installation, run the Change Identity Management Services wizard:

    1. Using the Application Server Control Console, navigate to the Application Server Home page for the middle-tier instance.

    2. Click the Infrastructure link.

    3. On the Infrastructure page, in the Identity Management section, click Change.

      Note that the Infrastructure page may display an error, but the error will be resolved after you complete the steps in the wizard.

    4. Follow the steps in the wizard for supplying the new Identity Management information.

  5. Restart the affected components. Run the following commands in each Oracle home:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl stopall
      
      ORACLE_HOME/opmn/bin/opmnctl startall
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl stopall
      
      ORACLE_HOME\opmn\bin\opmnctl startall
      
      

Task 7: Update Oracle Internet Directory If LDAP-Based Replication Is Used

If your environment uses LDAP-based replication of Oracle Internet Directory and Oracle Internet Directory is on a different host than OracleAS Metadata Repository, you can change the hostname, domain name or IP address of the host containing the Master (supplier) or Replica (consumer) Oracle Internet Directory:

Configuration A: Host with Master Oracle Internet Directory is Changed

If you change the hostname, domain name, or IP address of the host containing the Master Oracle Internet Directory, take the following steps:

  1. Obtain the replica ID of the Master Oracle Internet Directory:

    ldapsearch -p master_port -h master_host -b "" -s base "objectclass=*" orclreplicaid
    
    
  2. On both the Master and the Replica, update either orclreplicauri or orclreplicasecondaryuri or both, if they exist, in the replica entry of the Master Oracle Internet Directory. Take the following steps:

    1. Create a file named mod.ldif and enter the following lines in the file:

      dn: orclreplicaid=master_replicaID,cn=replication configuration
      
      changetype:modify
      
      replace: orclreplicauri
      
      orclreplicauri: ldap://new_master_host:new_master_port/
      
      

      In the example, master_replicaID is the ID obtained in Step a, new_master_host is the new hostname of the Master Oracle Internet Directory, and new_master_port is the port number for the Master Oracle Internet Directory.

    2. Run the following command on the Master:

      ldapmodify -p master_port -h master_host -f mod.ldif
      
      
    3. Run the following command on the Replica:

      ldapmodify -p replica_port -h replica_host -f mod.ldif
      
      
  3. Restart the Replication server at the Replica:

    oidctl server=oidrepld inst=inst_num connect=connect_string flags="-h
    
     replica_host -p replica_port -m false" stop
    
    oidctl server=oidrepld inst=inst_num connect=connect_string flags="-h
    
     replica_host -p replica_port -m false" start
    
    

    In the example, replica_host is the hostname of the Replica Oracle Internet Directory and replica_port is the port of the Replica Oracle Internet Directory.

Configuration B: Host with Replica Oracle Internet Directory is Changed

If you change the hostname, domain name, or IP address of the host containing the Replica Oracle Internet Directory, take the following steps:

  1. Obtain the replica ID of the Replica Oracle Internet Directory:

    ldapsearch -p replica_port -h replica_host -b "" -s base "objectclass=*" orclreplicaid
    
    
  2. On both the Master and the Replica, update either orclreplicauri or orclreplicasecondaryuri or both, if they exist, in the replica entry of the Replica Oracle Internet Directory. Take the following steps:

    1. Create a file named mod.ldif and enter the following lines in the file:

      dn: orclreplicaid=replica_replicaID,cn=replication configuration
      
      changetype:modify
      
      replace: orclreplicauri
      
      orclreplicauri: ldap://new_replica_host:new_replica_port/
      
      

      In the example, replica_replicaID is the ID obtained in Step a, new_replica_host is the new hostname of the Replica Oracle Internet Directory, and new_replica_port is the port number for the Replica Oracle Internet Directory.

    2. Run the following command on the Master:

      ldapmodify -p master_port -h master_host -f mod.ldif
      
      
    3. Run the following command on the Replica:

      ldapmodify -p replica_port -h replica_host -f mod.ldif
      
      
  3. Restart the Replication server at the Replica:

    oidctl server=oidrepld inst=inst_num connect=connect_string flags="-h
    
     new_replica_host -p new_replica_port -m false" stop
    
    oidctl server=oidrepld inst=inst_num connect=connect_string flags="-h
    
     new_replica_host -p new_replica_port -m false" start
    
    

    In the example, new_replica_host is the new hostname of the Replica Oracle Internet Directory and new_replica_port is the port of the Replica Oracle Internet Directory.

Task 8: Update Oracle Identity Federation

If your environment includes Oracle Identity Federation and Oracle Identity Federation uses Oracle Internet Directory or OracleAS Single Sign-On, update the Oracle Identity Federation configuration by taking the following steps:

  1. In the Oracle home for the Oracle Identity Federation instance, run the Change Identity Management Services wizard and supply the new Oracle Internet Directory information:

    1. Using the Application Server Control Console, navigate to the Application Server Home page for OracleAS Single Sign-On.

    2. Click the Infrastructure link.

    3. On the Infrastructure page, in the Identity Management section, click Change.

    4. Follow the steps in the wizard for supplying the new Identity Management information (new hostname).

      Note that although you may see the new Internet Directory host and port on the page, you still need to perform this step. The Application Server Control Console displays the virtual hostname only because it read it from the updated ias.properties file.

  2. When the wizard completes, it asks you to restart the affected components. Run the following commands in the Oracle home:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl stopall
      
      ORACLE_HOME/opmn/bin/opmnctl startall
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl stopall
      
      ORACLE_HOME\opmn\bin\opmnctl startall
      
      
  3. From a browser, log into the Oracle Identity Federation Administration console, using the following URL:

    http://oif_host:port/fedadmin
    
    

    In the URL, oif_host is the host on which Oracle Identity Federation is installed and port is the port number of the Oracle HTTP Server.

    The username is oif_admin; the password is the password you specified at installation.

  4. If you changed the network information of the Oracle Internet Directory instance, take the following steps:

    1. Choose IDM Data Stores, then User Data Store.

    2. For Select Active Repository, select LDAP Directory.

    3. In the Repository Parameters section, enter the following information:

      • For Connection URL(s), change the hostname or domain name, entering the new information for Oracle Internet Directory, in the following format:

        ldap://oid_hostname.domainname:port
        
        

        For example, if you changed the hostname to newhost, the domain name to mydomain, (and the port remained 389), enter the following:

        ldap://newhost.mydomain:389
        
        
      • For Bind DN, enter the administrator account DN to use to connect to the LDAP directory. For example:

        cn=orcladmin
        
        
      • For Password, enter the administrator account password to use to connect to the LDAP directory.

      • For the other fields, see the online Help for the page.

    4. Click Save.

    5. From the IDM Data Stores tab, choose Federation Data Store.

    6. For Select Active Repository, select LDAP Directory.

    7. For Connection URL(s), change the hostname or domain name, entering the new information for Oracle Internet Directory, in the following format:

      ldap://oid_hostname.domainname:port
      
      

      For example, if you changed the hostname to newhost, the domain name to mydomain, (and the port remained 389), enter the following:

      ldap://newhost.mydomain:389
      
      
    8. Click Save.

  5. If you changed the network information of the OracleAS Single Sign-On instance, take the following steps:

    1. Choose IDM Data Stores, then User Data Store.

    2. For Select Active Repository, select OracleAS Single Sign-On.

    3. In the Repository Parameters section, enter the following information:

      • For Connection URL(s), change the hostname or domain name, entering the new information for the OracleAS Single Sign-On instance, in the following format:

        ldap://sso_hostname.domainname:port
        
        

        For example, if you changed the hostname to newhost, the domain name to mydomain, (and the port remained 389), enter the following:

        ldap://newhost.mydomain:389
        
        
      • For Bind DN, enter the administrator account DN to use to connect to the LDAP directory. For example:

        cn=orcladmin
        
        
      • For Password, enter the administrator account password to use to connect to the LDAP directory.

      • For the other fields, see the online Help for the page.

    4. For OSSO Login URL, change the hostname or domain name, entering the new information for the OracleAS Single Sign-On instance, in the following format:

      http://sso_hostname.domainname:port/sso/auth
      
      
    5. For OSSO Logout URL, change the hostname or domain name, entering the new information for the OracleAS Single Sign-On instance, in the following format:

      http://sso_hostname.domainname:port/sso/logout
      
      
    6. Click Save.

    7. If any resource is protected by Oracle Identity Federation using a virtual host and a non-default (other than osso.conf) partner application, re-register mod_osso with the new hostname or domain name. Do this by running the following command:

      On UNIX systems:

      ORACLE_HOME/sso/bin/ssoreg.sh
      
      -oracle_home_path identity_management_oracle_home
      
      -site_name newhostname:port
      
      -config_mod_osso TRUE
      
      -mod_osso_url http://newhostname:port
      
      -virtualhost 
      
      -config_file path/osso-https.conf
      
      

      On Windows systems:

      ORACLE_HOME\sso\bin\ssoreg.bat
      
      -oracle_home_path identity_management_oracle_home
      
      -site_name newhostname:port
      
      -config_mod_osso TRUE
      
      -mod_osso_url http://newhostname:port
      
      -virtualhost 
      
      -config_file path\osso-https.conf
      
      

      In the examples, the config_file parameter is the name of the file, including the full path, that is used in the partner application or resource protection.

      For example, if you changed the hostname to newhost on UNIX:

      $ORACLE_HOME/sso/bin/ssoreg.sh
      
      -oracle_home_path /disk1/oracleas
      
      -site_name newhost:4445
      
      -config_mod_osso TRUE
      
      -mod_osso_url http://newhost.mydomain:7778
      
      -virtualhost 
      
      -config_file $ORACLE_HOME/Apache/Apache/conf/osso/osso-https.conf
      
      
  6. Restart the Oracle Identity Federation server and Oracle HTTP Server:

    (UNIX) ORACLE_HOME/opmn/bin/opmnctl restartproc process-type=OC4J_FED
    
    (UNIX) ORACLE_HOME/opmn/bin/opmnctl restartproc process-type=HTTP_Server
    
    (Windows) ORACLE_HOME\opmn\bin\opmnctl restartproc process-type=OC4J_FED 
    
    (Windows) ORACLE_HOME\opmn\bin\opmnctl restartproc process-type=HTTP_Server 
    

8.2.3 Changing the Hostname, Domain Name, or IP Address of an Oracle Identity Federation Installation

This section describes how to change the hostname, domain name, or IP address on a host that contains an Oracle Identity Federation installation. This procedure applies to the following types of environments:

  • Oracle Identity Federation used as the Service Provider, and where Oracle Internet Directory is the Federation Data Store and the Metadata Repository is the Federation Transient Store. Oracle Identity Federation may or may not be associated with OracleAS Single Sign-On.

  • Oracle Identity Federation used as the Identity Provider, and where Oracle Internet Directory is the Federation Data Store and the Metadata Repository is the Federation Transient Store. Oracle Identity Federation may or may not be associated with OracleAS Single Sign-On.

The following sections describe the procedure:

Before You Begin

Review the following items before you start the procedure:

  • Consider changing the log level before running the chgiphost command so you can view more detailed information. See Section 8.2.6.2 for more information.

  • If your old hostname is a string that is likely to appear in a configuration file, the chgiphost command may encounter problems when trying to update the configuration files. Refer to Section 8.2.6.3 for information on how to avoid this problem.

  • Write down the old hostname and IP address before you begin. You will be prompted for these values.

  • Oracle recommends that you perform a backup of your environment before you start this procedure. Refer to Part V, "Backup and Recovery" for more information.

Task 1: Prepare Your Host

Prepare your host for the hostname change:

  1. Set the ORACLE_HOME environment variable.

  2. Shut down the Oracle Identity Federation installation, including the Oracle Identity Federation server and Application Server Control Console. For example, on UNIX, use the following commands:

    ORACLE_HOME/bin/emctl stop iasconsole
    
    ORACLE_HOME/opmn/bin/opmnctl stopall
    
    
  3. To make sure Oracle Application Server processes will not start automatically after a restart of the host, disable any automated startup scripts you may have set up, such as /etc/init.d scripts.

Task 2: Change the Hostname, Domain Name, or IP Address

Update your operating system with the new hostname, domain name, or IP address. 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 hostname, domain name, or both.

  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.

Task 3: Run the chgiphost Command

Perform these steps from the Oracle Identity Federation Oracle home:

  1. Log in to the host as the user that installed Oracle Identity Federation.

  2. Set the ORACLE_HOME environment variable. Do not use a trailing slash (UNIX) or backslash (Windows) when specifying the ORACLE_HOME 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 Oracle Identity Federation Oracle home:

    • On UNIX systems:

      cd ORACLE_HOME/chgip/scripts
      
      ./chgiphost.sh -fed
      
      
    • On Windows systems:

      cd ORACLE_HOME\chgip\scripts
      
      cmd /c chgiphost.bat -fed
      
      

    The chgiphost command prompts for information, as shown in Table 8-3. Note that the prompts may provide values in parentheses. You can enter a different value, or press the return key to accept the suggested value.

    Table 8-4 Prompts and Actions for chgiphost -fed

    Prompt Action
    Enter fully qualified hostname (hostname.domainname) of destination
    

    Enter the new fully qualified hostname. This may be a new hostname, domain name, or both.

    Enter fully qualified hostname (hostname.domainname) of source
    

    Enter the original fully qualified hostname and domain name.

    Enter valid IP Address of destination
    

    If you changed the IP address of the host, enter the new IP address.

    Otherwise, enter the current IP address.

    Enter valid IP Address of source
    

    If you changed the IP address of the host, enter the old IP address.

    Otherwise, enter the current IP address.

    OIDAdmin Password:
    

    Enter the cn=orcladmin password for the Oracle Internet Directory in which this instance is registered.


  5. Verify that the tool ran successfully by checking for errors in the files in the following directory:

    (UNIX) ORACLE_HOME/chgip/log
    
    (Windows) ORACLE_HOME\chgip\log
    

Task 4: Restart Your Environment

Restart the Oracle Identity Federation installation and any other instances that you stopped during this procedure:

  1. Restart the Oracle Identity Federation instance, using the following commands:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl startall
      
      ORACLE_HOME/bin/emctl start iasconsole
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl startall
      
      ORACLE_HOME\bin\emctl start iasconsole
      
      
  2. If you disabled any processes for automatically starting Oracle Application Server at the beginning of this procedure, enable them.

Task 5: Update the Metadata for the Identity Provider

If you changed the hostname, domain name, or IP address of the Oracle Identity Federation instance that is configured as an Identity Provider, you must load the new metadata file for the Identity Provider into the Service Provider configuration in the Circle of Trust. Take the following steps:

  1. From a browser, navigate to the Oracle Identity Federation Identity Provider's metadata file, using the following URL:

    http://oif_host:port/fed/idp/metadata_file
    
    

    In the URL, oif_host is the host on which Oracle Identity Federation is installed as an Identity Provider; port is the port number of the Oracle HTTP Server; metadata_file is the metadata file used for the protocol you are using. For example, the metadata file for the protocol SAML 2.0 is metadatav20.

  2. From the browser, save the page.

  3. From a browser, log into the Oracle Identity Federation Administration console for the Service Provider, using the following URL:

    http://oif_host:port/fedadmin
    
    

    In the URL, oif_host is the host on which Oracle Identity Federation is installed as the Service Provider and port is the port number of the Oracle HTTP Server.

    The username is oif_admin; the password is the password that you specified at installation.

  4. Select Server Configuration, then Circle of Trust.

  5. In the Identity Provider table, select the Identity Provider that has had its network information changed and click Update.

    The Edit Trusted Provider page is displayed.

  6. For Description, enter a description of the file.

  7. For Metadata Location, click Browse to locate the metadata file you downloaded for the Identity Provider.

  8. Click Load New.

  9. Click Apply.

  10. Click Refresh Server.


Note:

The Identity Provider tab (Server Configuration > Identity Provider) continues to have the old hostname information in the Provider ID (URI) field. This is expected. It allows the user federations that were created before the hostname was changed to continue to function.

Task 6: Update the Metadata for the Service Provider

If you changed the hostname, domain name, or IP address of the Oracle Identity Federation instance that is configured as a Service Provider, you must load the new metadata file for the Service Provider into the Identity Provider configuration in the Circle of Trust. Take the following steps:

  1. From a browser, navigate to the Oracle Identity Federation Service Provider's metadata file, using the following URL:

    http://oif_host:port/fed/sp/metadata_file
    
    

    In the URL, oif_host is the host on which Oracle Identity Federation is installed as a Service Provider; port is the port number of the Oracle HTTP Server; metadata_file is the metadata file used for the protocol you are using. For example, the metadata file for the protocol SAML 2.0 is metadatav20.

  2. From the browser, save the page.

  3. From a browser, log into the Oracle Identity Federation Administration console for the Identity Provider, using the following URL:

    http://oif_host:port/fedadmin
    
    

    In the URL, oif_host is the host on which Oracle Identity Federation is installed as the Identity Provider and port is the port number of the Oracle HTTP Server.

    The username is oif_admin; the password is the password you specified at installation.

  4. Select Server Configuration, then Circle of Trust.

  5. In the Service Provider table, select the Service Provider that has had its network information changed and click Update.

    The Edit Trusted Provider page is displayed.

  6. For Description, enter a description of the file.

  7. For Metadata Location, click Browse to locate the metadata file you downloaded for the Service Provider.

  8. Click Load New.

  9. Click Apply.

  10. Click Refresh Server.


Note:

The Service Provider tab (Server Configuration > Service Provider) continues to have the old hostname information in the Provider ID (URI) field. This is expected. It allows the user federations that were created before the hostname was changed to continue to function.

Task 7: Update OracleAS Single Sign-On

If Oracle Identity Federation is associated with OracleAS Single Sign-On, take the following steps:

  1. On the OracleAS Single Sign-On instance, update the SASSOAuthnUrl and SASSOLogoutUrl properties in the following file with the new network information:

    (UNIX) ORACLE_HOME/sso/conf/policy.properties 
    
    (Windows) ORACLE_HOME\sso\conf\policy.properties
    
    

    For example, if you changed the hostname and domain name to new.cp.com, change the properties to the following:

    SASSOAuthnUrl = http\://new.cp.com\:port/sso/authn
    
    SASSOLogoutUrl = http\://new.cp.com\:port/sso/jsp/sasso_logout_success.jsp
    
    
  2. On the Oracle Identity Federation installation, edit the following file to update the IP address, if it has been changed:

    (UNIX) ORACLE_HOME/Apache/Apache/conf/httpd.conf
    
    (Windows) ORACLE_HOME\Apache\Apache\conf\httpd.conf
    
    
  3. On the Oracle Identity Federation installation, re-register mod_osso with the new hostname or domain name by running the following command:

    On UNIX:

    ORACLE_HOME/sso/bin/ssoreg.sh
    
    -oracle_home_path identity_management_oracle_home
    
    -site_name newhostname:port
    
    -config_mod_osso TRUE
    
    -mod_osso_url http://newhostname:port
    
    -virtualhost 
    
    -config_file path/osso-file.conf
    
    

    On Windows:

    ORACLE_HOME\sso\bin\ssoreg.bat
    
    -oracle_home_path identity_management_oracle_home
    
    -site_name newhostname:port
    
    -config_mod_osso TRUE
    
    -mod_osso_url http://newhostname:port
    
    -virtualhost 
    
    -config_file path\osso-file.conf
    
    

    In the examples, path/osso-file.conf, refers to the SSO partner application configuration file. The file name should be the same as the one defined for resource protection by OracleAS Single Sign-On for Oracle Identity Federation.

    For example, if you changed the hostname to newhost on UNIX:

    $ORACLE_HOME/sso/bin/ssoreg.sh
    
    -oracle_home_path /disk1/oracleas
    
    -site_name newhost:4445
    
    -config_mod_osso TRUE
    
    -mod_osso_url http://newhost.mydomain:7778
    
    -virtualhost 
    
    -config_file $ORACLE_HOME/Apache/Apache/conf/osso/my-osso-file.conf
    
    
  4. Regenerate the OSSO secret in Oracle Identity Federation and copy it to the OracleAS Single Sign-On home:

    1. From a browser, log into the Oracle Identity Federation Administration console for the Identity Provider, using the following URL:

      http://oif_host:port/fedadmin
      
      

      In the URL, oif_host is the host on which Oracle Identity Federation is installed as the Identity Provider and port is the port number of the Oracle HTTP Server.

      The username is oif_admin; the password is the password you specified at installation.

    2. Choose IdM Data Stores, then User Data Stores.

    3. In the Oracle SSO Parameters section, for Regenerate OSSO Secret, click Update. This updates the key and generates an updated keystore file.

    4. Stop processes in the OracleAS Single Sign-On installation:

      (UNIX) ORACLE_HOME/opmn/bin/opmnctl stopall
      
      (Windows) ORACLE_HOME\opmn\bin\opmnctl stopall
      
      
    5. Copy the keystore file from the Oracle Identity Federation home to the OracleAS Single Sign-On home. For example:

      cp OIF_HOME/sso/conf/keystore SSO_HOME/sso/conf/
      
      
  5. In both the Identity Management instance and the Oracle Identity Federation instance, restart the processes:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl stopall
      
      ORACLE_HOME/opmn/bin/opmnctl startall
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl stopall
      
      ORACLE_HOME\opmn\bin\opmnctl startall
      

See Also:

Oracle Identity Federation Administrator's Guide for more information about Oracle Identity Federation

8.2.4 Changing the Hostname or Domain Name of an OracleAS Certificate Authority Installation

If you have installed OracleAS Certificate Authority, and you want to change the name of the OracleAS Certificate Authority host, you must perform these steps:

  1. Verify that Oracle Internet Directory and OracleAS Metadata Repository are started.

  2. Stop OracleAS Certificate Authority, the OC4J oca process, and the Oracle HTTP Server on the host running OracleAS Certificate Authority. For example, on UNIX, execute the following commands:

    ORACLE_HOME/oca/bin/ocactl stop
    
    ORACLE_HOME/opmn/bin/opmnctl stopproc process-type=oca
    
    ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server
    
    
  3. Change the name of the host where OracleAS Certificate Authority is running.

  4. Regenerate the SSL wallet. For example, on UNIX:

    ORACLE_HOME/oca/bin/ocactl generatewallet -type CASSL
    
    
  5. Reassociate with OracleAS Single Sign-On and Oracle Internet Directory. For example, on UNIX:

    ORACLE_HOME/oca/bin/ocactl changesecurity -server_auth_port OcaSslPort
    
    
  6. Start Oracle HTTP Server, the OC4J oca process, and OracleAS Certificate Authority. For example, on UNIX:

    ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server
    
    ORACLE_HOME/opmn/bin/opmnctl startproc process-type=oca
    
    ORACLE_HOME/oca/bin/ocactl start
    

8.2.5 Changing the IP Address of an Infrastructure Containing a Metadata Repository

This section describes how to change the IP address of a host that contains either of the following Infrastructure installation types:

  • Metadata Repository only

  • Identity Management and Metadata Repository

Note that you cannot change the hostname or domain name that contains a Metadata Repository.

The following sections describe the procedure:

Before You Begin

Review the following items before you start the procedure:

  • Write down the old IP address before you begin. You will be prompted for this during the procedure.

  • Oracle recommends that you perform a backup of your environment before you start this procedure. Refer to Part V, "Backup and Recovery" for more information.

Task 1: Shut Down Middle-Tier Instances

Shut down all middle-tier instances that use the Infrastructure installation, even if they are on other hosts.

Task 2: Prepare Your Host

Prepare your host for the change by stopping all processes:

  1. Set the ORACLE_HOME and ORACLE_SID environment variables.

  2. Shut down the Infrastructure:

    • On UNIX systems:

      ORACLE_HOME/bin/emctl stop iasconsole
      
      ORACLE_HOME/opmn/bin/opmnctl stopall
      
      
    • On Windows systems:

      ORACLE_HOME\bin\emctl stop iasconsole
      
      ORACLE_HOME\opmn\bin\opmnctl stopall
      
      
  3. Shut down the listener and database:

    lsnrctl stop
    
    
    sqlplus /nolog
    
    SQL> CONNECT SYS as SYSDBA
    
    SQL> SHUTDOWN
    
    SQL> quit
    
    
  4. Verify that all Oracle Application Server processes have stopped.

  5. To make sure Oracle Application Server processes will not start automatically after a restart of the host, disable any automated startup scripts you may have set up, such as /etc/init.d scripts.

Task 3: Change the IP Address

Update your operating system with the new IP address. 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 IP address.

  2. Restart the host, if required by your operating system.

  3. Verify that you can ping the host from another host in your network. Be sure to ping using the new IP address to make sure everything is resolving properly.

Task 4: Update the Infrastructure

Update the Infrastructure on your host with the new IP address:

  1. Log in to the host as the user that installed the Infrastructure.

  2. Set the ORACLE_HOME and ORACLE_SID environment variables. Do not use a trailing slash (UNIX) or backslash (Windows) when specifying the ORACLE_HOME 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. Start the database and listener:

    sqlplus /nolog
    
    SQL> CONNECT SYS as SYSDBA
    
    SQL> STARTUP
    
    SQL> quit
    
    
    lsnrctl start
    
    
  5. Start OPMN:

    (UNIX) ORACLE_HOME/opmn/bin/opmnctl start
    
    (Windows) ORACLE_HOME\opmn\bin\opmnctl start
    
    
  6. Start Oracle Internet Directory:

    (UNIX) ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=OID process-type=OID
    
    (Windows) ORACLE_HOME\opmn\bin\opmnctl startproc ias-component=OID process-type=OID
    
    
  7. Run the following commands in the Infrastructure Oracle home:

    • On UNIX systems:

      cd ORACLE_HOME/chgip/scripts
      
      ./chgiphost.sh -infra
      
      
    • On Windows systems:

      cd ORACLE_HOME\chgip\scripts
      
      cmd /c chgiphost.bat -infra
      
      

    The chgiphost command prompts for the old and new IP address.

  8. Verify that the tool ran successfully by checking for errors in the files in the following directory:

    (UNIX) ORACLE_HOME/chgip/log
    
    (Windows) ORACLE_HOME\chgip\log
    

Task 5: Restart Your Environment

Start the remaining components of the Infrastructure and start any middle-tier instances that use it:

  1. Start the Infrastructure:

    • On UNIX systems:

      ORACLE_HOME/opmn/bin/opmnctl startall
      
      ORACLE_HOME/bin/emctl start iasconsole
      
      
    • On Windows systems:

      ORACLE_HOME\opmn\bin\opmnctl startall
      
      ORACLE_HOME\bin\emctl start iasconsole
      
      
  2. If a middle-tier instance is on the same host as the Infrastructure, then you need to run the chgiphost command on the middle-tier instance before restarting the middle-tier processes.

  3. If you disabled any processes for automatically starting Oracle Application Server at the beginning of this procedure, enable them.

8.2.6 Special Topics for Changing Your Hostname or Domain Name

This section contains the following special topics that apply to changing the hostname or domain name of an Oracle Application Server host:

8.2.6.1 Running SSLConfigTool for SSL Environments

After running the chgiphost command, you must run the SSLConfigTool utility to complete the necessary Oracle Directory Integration Platform server registration and OracleAS Single Sign-On re-association and re-registration.


See Also:

Chapter 12 for information about running the SSLConfigTool utility

8.2.6.2 Setting the Log Level for chgiphost

By default, the console log level for the chgiphost command is SEVERE. This causes only critical information to be printed while running chgiphost. To view additional progress information, set the console log level to CONFIG as follows:

  1. Edit the following file:

    (UNIX) ORACLE_HOME/chgip/config/chgip.log.properties
    
    (Windows) ORACLE_HOME\chgip\config\chgip.log.properties
    
    
  2. Change the java.util.logging.ConsoleHandler.level parameter to CONFIG:

    java.util.logging.ConsoleHandler.level = CONFIG
    

8.2.6.3 Customizing the chgiphost Command

By default, the chgiphost command updates key configuration files in the Oracle home with the new hostname. If any of the following cases apply to your installation, you may want to consider customizing the behavior of the chgiphost command:

  • You have created additional configuration files that contain the hostname and want the chgiphost command to update those files.

    To update these files, add their full path name to the following file before running chgiphost:

    (UNIX) ORACLE_HOME/chgip/config/hostname.lst
    
    (Windows) ORACLE_HOME\chgip\config\hostname.lst
    
    
  • Your old hostname is very short (one or two letters) or is a string that is likely to appear in a configuration file.

    Before running chgiphost, examine each of the files listed in hostname.lst to determine if the old hostname exists in any settings in those files. If you find a match, you can correct those settings after you run chgiphost.

  • Your Oracle home contains the hostname in its full path.

    In this case, the chgiphost command may not update your configuration files properly. You can avoid this problem by using a Java utility called FileFixer, which searches for specific text strings in a file by matching regular expressions, and updates them to their new values. Note that FileFixer searches for patterns one line at a time. It cannot match patterns across lines.

    To use FileFixer:

    1. Make a copy of the following file:

      (UNIX) ORACLE_HOME/chgip/config/hostname_short_sample.lst.xml
      
      (Windows) ORACLE_HOME\chgip\config\hostname_short_sample.lst.xml
      
      
    2. Edit your copy of the file to specify the regular expression matching required for your old and new hostnames. The file contains an example of how to do this.

    3. Specify the file when running the chgiphost command:

      ./chgiphost option -hostnameShortXml full_path_to_your_xml_file
      
      

      For example, if you named your file /mydir/my_sample.lst.xml, and you are updating a middle-tier installation on UNIX, run chgiphost as follows:

      ./chgiphost -mid -hostnameShortXml /mydir/my_sample.lst.xml
      

8.2.6.4 Changing a Hostname After Upgrading from Windows 2000 to Windows 2003

When you upgrade from Windows 2000 to Windows 2003, lowercase letters in your hostname may be changed to uppercase letters. For example, if your hostname is myhost before the upgrade, it may be changed to MYHOST. If this occurs, some Oracle Application Server processes may not function properly.

To resolve this problem, you do not need to run the chgiphost command to update Oracle Application Server. You can simply add an entry with the lowercase hostname to the hosts file:

OS_path\system32\drivers\etc\hosts

For example, if your fully qualified hostname was myhost.mydomain before the upgrade, and your IP address is 1.2.3.4, add the following line:

1.2.3.4 myhost.mydomain myhost

8.2.6.5 Recovering from Errors When Changing Your Hostname

This section describes how to recover from typical errors you might encounter when using the chgiphost command. It contains the following scenarios:

Scenario 1: You Specified the Wrong Destination Name

Suppose you ran the chgiphost command but specified the wrong destination name. In this case, you can remedy the error by running chgiphost again. Here are the details.

Suppose the current source hostname is loire985, the incorrect destination hostname you specified is mqa985, and the correct destination hostname is sqb985. Initially, you ran chgiphost with source = loire985 and destination = mqa985.

To recover from this error:

  1. Run chgiphost with source = mqa985 and destination = sqb985.

  2. Run chgiphost again with source = loire985 and destination = sqb985.

Scenario 2: You Encountered an Error when Running chgiphost

For example, you will get an error message if you enter the wrong password for Oracle Internet Directory. In this case, you should run chgiphost again, with the same source and destination hostnames as before, and make sure to supply the correct password when prompted.

If you encounter an error when running chgiphost, you should fix the error and run chgiphost again.

8.3 Moving Between Off-Network and On-Network

This section describes how to move an Oracle Application Server host on and off the network. The following assumptions and restrictions apply:

8.3.1 Moving from Off-Network to On-Network (Static IP Address)

This procedure assumes you have installed Oracle Application Server on a host that is off the network, using a standard hostname (not localhost), and would like to move on the network and use a static IP address. The IP address may be the default loopback IP, or any standard IP address.

To move onto the network, you can simply connect the host to the network. No updates to Oracle Application Server are required.

8.3.2 Moving from Off-Network to On-Network (DHCP)

This procedure assumes you have installed Oracle Application Server on a host that is off the network, using a standard hostname (not localhost), and would like to move on the network and use DHCP. The IP address of the host can be any static IP address or loopback IP address, and should be configured to the hostname.

To move onto the network:

  1. Connect the host to the network using DHCP.

  2. Configure the hostname to the loopback IP address only.

8.3.3 Moving from On-Network to Off-Network (Static IP Address)

Follow this procedure if your host is on the network, using a static IP address, and you would like to move it off the network:

  1. Configure the /etc/hosts file so the IP address and hostname can be resolved locally.

  2. Take the host off the network.

There is no need to perform any steps to change the hostname or IP address.

8.3.4 Moving from On-Network to Off-Network (DHCP)

Follow this procedure if your host is on the network, using DHCP in loopback mode, and you would like to move it off the network:

  1. Configure the /etc/hosts file so the IP address and hostname can be resolved locally.

  2. Take the host off the network.

There is no need to perform any steps to change the hostname or IP address.

8.4 Changing Between a Static IP Address and DHCP

This section describes how to change between a static IP address and DHCP. The following assumptions and restrictions apply:

8.4.1 Changing from a Static IP Address to DHCP

To change a host from a static IP address to DHCP:

  1. Configure the host to have a hostname associated with the loopback IP address before you convert the host to DHCP.

  2. Convert the host to DHCP. There is no need to update Oracle Application Server.

8.4.2 Changing from DHCP to a Static IP Address

To change a host from DHCP to a static IP address, configure the host to use a static IP address.

There is no need to update Oracle Application Server.