Middleware

Changing the Network Configuration of Oracle Weblogic Server 11g

This section describes how to change the host name, domain name, IP address, or any combination of these, of a host that contains the following installation type

  • Oracle WebLogic Server and Java components. When you change the host name, domain name, or IP address of Oracle WebLogic Server, you also automatically change the information for Java components, such as Oracle SOA Suite and Oracle WebCenter components that are deployed to Oracle WebLogic Server.
  • Oracle Fusion Middleware Web Tier components, Oracle Web Cache and Oracle HTTP Server. You can change the host name or the IP address.

The following topics describe how to change the host name, domain name, or IP address:

  • Changing the Network Configuration of a Managed Server
  • Changing the Network Configuration of Web Tier Components

Changing the Network Configuration of a Managed Server

You can change the network configuration of a Managed Server using the Oracle WebLogic Server Administration Console.

To change the host name, domain name, or IP address of a Managed Server:

  1. Display the Administration Console.
  2. In the Change Center, click Lock & Edit.
  3. Create a machine, which is a logical representation of the computer that hosts one or more WebLogic Servers, and point it to the new host. (From the Home page, select Machines. Then, click New.) Follow the directions in the Administration Console help. You must disable Host Name Verification on Administration Servers that access Node Manager, as described in the Help.
  4. Change the Managed Server configuration to point to the new machine:
    1. From the left pane of the Console, expand Environment and then Servers. Then, select the name of the server.
    2. Select the Configuration tab, then the General tab. In the Machine field, select the machine to which you want to assign the server.
    3. Change Listen Address to the new host.
  5. Click Save.
  6. Start the Managed Server. You can use the Oracle WebLogic Server Administration Console, WLST, or the following command:
DOMAIN_NAME/bin/startManagedWeblogic.sh managed_server_name           
admin_url 

The Managed Server connects to the Administration Server and updates its configuration changes.

Changing the Network Configuration of Web Tier Components

If you change the host name, domain name, or IP address of a host that contains multiple Oracle instances, you must change the network configuration of each Oracle instance that resides on that host. You do not need to make changes to any system component that resides on another host.

You can change the network configuration of Oracle HTTP Server and Oracle Web Cache by using the following command:

(UNIX) ORACLE_HOME/chgip/scripts/chpiphost.sh
(Windows) ORACLE_HOME\chgip\scripts\chpiphost.bat

The format of the command is:

chgiphost.sh | chgiphost.bat 
             [-noconfig] [-version] [-help]
             [ -oldhost old_host_name -newhost new_host_name] 
             [-oldip old_IP_address -newip new_IP_address] 
              -instanceHome Instance_path

The parameters have the following meanings:

  • noconfig: The default for changing the network parameters.
  • version: Displays the version of the chgiphost tool.
  • help: Displays help for the command.
  • oldhost: he fully qualified name of the old host. Use this parameter, with newhost, to change the host name or domain name, or both.
  • newhost: The fully qualified name of the new host. Use this parameter, with oldhost, to change the host name or domain name, or both.
  • oldip: The old IP address.
  • newip: The new IP address.
  • instanceHome: The full path of the Oracle instance.

For example, to change the host name, domain name, and IP address of a host that contains either Oracle HTTP Server or Oracle Web Cache, or both, perform the following tasks:

  1. Step 1, "Prepare Your Host"
  2. Step 2, "Change the Host Name, Domain Name, or IP Address"
  3. Step 3, "Run the chgiphost Command"
  4. Step 4, “Update Configuration Files”
  5. Step 5, “Update Weblogic Services”
  6. Step 6, "Restart Processes"

Step 1: Prepare Your Host

Prepare your host for the change:

  1. Perform a backup of your environment before you start this procedure.
    Take a snapshot of the old server: sc-weblogic (192.168.1.29)
  2. Shutdown all Oracle Fusion Middleware processes.
    - Stop OPMN components
    - Stop ManagedServers (WLS_FORMS, WLS_REPORTS)
    - Stop NodeManager
    - Stop AdminServer

Step 2: Change the Host Name, Domain Name, or IP Address

Update your operating system with the new host name, 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 host name, domain name, or IP address.
  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 host name to ensure that everything is resolving properly.

Change Hostname: sc-Weblogic to scWeblogic
Change IP address: 192.168.1.29 to 192.168.1.50

Step 3: Run the chgiphost Command

Follow these steps for each Oracle instance that contains Oracle HTTP Server or Oracle Web Cache on your host. Be sure to complete the steps entirely for one Oracle instance before you move on to the next.

  1. Log in to the host as the user that installed Oracle Fusion Middleware.
  2. Run the chgiphost command. The following example changes the host name from host_a to host_b and the domain name from dom_1 to dom_2 for an Oracle instance named inst_a.
    chgiphost.sh  -noconfig
                 -oldhost host_a.dom_1 -newhost host_b.dom_2 
                 -instanceHome /scratch/Oracle/Middleware/inst_a
  3. Open command DOS with Administrator privileges
    Screenshot of an administrator Command Prompt running chgiphost.bat with the old and new host names and IP addresses
  4. Execute chgiphost command
    cd %ORACLE_HOME%\Oracle_FRHome1\chgip\scripts
    
    chgiphost.bat -noconfig -oldhost sc-weblogic.standridgecolor.com -newhost scWeblogic.standridgecolor.com -oldip 192.168.1.29 -newip 192.168.1.50 -instanceHome E:\Oracle\Middleware\asinst_1

    Screenshot of the chgiphost.bat output ending with “Change Hostname/IP completed successfully”

Step 4: Update Configuration Files

  1. Edit and Update config.xml file:
    old value: sc-weblogic
    new value: scWeblogic

    Screenshot of the WebLogic ClassicDomain config folder in Windows Explorer, with config.xml selected

  2. Edit and Update Environment file of application
    Screenshot of the Forms environment file sccprod.env showing the old URL_EXEC_REPORT value http://192.168.1.29:9002

    New value:

    Screenshot of sccprod.env with URL_EXEC_REPORT updated to the new IP address: http://192.168.1.50:9002

Step 5: Update Weblogic Services

Update Weblogic Services

Edit and update file installWLS_FORMS_Service.cmd
$ORACLE_HOME/wlserver_10.3/server/bin

Screenshot of installWLS_FORMS_Service.cmd with the old ADMIN_URL host, sc-Weblogic.standridgecolor.com:7001

New Value:

Screenshot of installWLS_FORMS_Service.cmd with ADMIN_URL updated to the new host, scWeblogic.standridgecolor.com:7001

Edit and update file installWLS_REPORTS_Service.cmd
$ORACLE_HOME/wlserver_10.3/server/bin

Screenshot of installWLS_REPORTS_Service.cmd with the old ADMIN_URL host, sc-Weblogic.standridgecolor.com:7001

New Value :

Screenshot of installWLS_REPORTS_Service.cmd with ADMIN_URL updated to the new host, scWeblogic.standridgecolor.com:7001

Drop and recreate Weblogic services

Screenshot of sc delete commands removing the WLS_FORMS and WLS_REPORTS WebLogic Windows services

Step 6: Restart Processes

Restart all Oracle Fusion Middleware processes.

Start all Oracle Fusion Middleware processes :

  • Start NodeManager
  • Start AdminServer
  • Start ManagedServers (WLS_FORMS, WLS_REPORTS)
  • Start OPMN components
All articles