This chapter provides procedures for changing the network configuration, such as the host name, domain name, or IP address, of an Oracle Fusion Middleware host and the Oracle database that Oracle Fusion Middleware uses. It also includes information about using the IPv6 protocol with Oracle Fusion Middleware.
It contains the following sections:
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 types:
For information about moving your environment to a different system, see Chapter 20.
The following topics describe how to change the host name, domain name, or IP address:
You can change the network configuration of an Administration Server using WLST commands:
wls:/offline> readDomain('DOMAIN_HOME') wls:/offline/sampledomain> cd ('/Machine/newhostname') wls:/offline/sampledomain> machine = cmo wls:/offline/sampledomain> cd ('/Server/AdminServer') wls:/offline/sampledomain> set('Machine', machine) wls:/offline/sampledomain> updateDomain() wls:/offline/sampledomain> exit()
wls:/offline/sampledomain> readDomain('DOMAIN_HOME') wls:/offline/sampledomain> cd('/Server/AdminServer') wls:/offline/sampledomain> cmo.setListenPort(8001) wls:/offline/sampledomain> updateDomain() wls:/offline/sampledomain> exit()
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:
DOMAIN_NAME/bin/startManagedWeblogic.sh managed_server_name admin_url
To change the network configuration of Oracle HTTP Server in a WebLogic domain or a standalone domain:
./stopComponent.sh ohs1
DOMAIN_HOME/config/fmwconfig/components/OHS/ohs_component_name
DOMAIN_HOME/bin/startNodeManager.sh
./startComponent.sh ohs1
This section describes how to change the host name, domain name, or IP address of a host that contains a database that contains the metadata for Oracle Fusion Middleware components:
The following tasks describe the procedure:
Stop all components that use the database, even if they are on other hosts. Stop the Administration Server, the Managed Servers, and all components, as described in Chapter 4.
Task 2 Shut Down the Database
Prepare your host for the change by stopping the database:
lsnrctl stop sqlplus /nolog SQL> connect SYS as SYSDBA SQL> shutdown SQL> quit
If you are changing the host name, domain name, or IP address, update your operating system with the new names or IP address, restart the host, and verify that the host is functioning properly on your network. Consult your operating system documentation for information on how to perform the following steps:
You must modify files that contain the host name, domain name, or IP address, depending on the components that you are using. The following lists some of the files that you may need to modify to change references to the new host name, domain name or IP address:
ORACLE_HOME/network/admin/tnsnames.ora
(UNIX) ORACLE_HOME/network/admin/listener.ora (Windows) ORACLE_HOME\network\admin\listener.ora
This is not an exhaustive list. See Chapter 20 for additional information about files used by components. That chapter describes how to move components, including a database, from a test to a production system, in effect changing the host name.
Task 5 Start the Database
Start the database:
sqlplus /nolog SQL> connect SYS as SYSDBA SQL> startup SQL> quit lsnrctl start
Change the system data source to use the new host name, domain name, or IP address for the database, as described in Section 14.3.4.
Task 7 Restart Your Environment
Start the components that use the database:
This section describes how to move an Oracle Fusion Middleware host on and off the network. The following assumptions and restrictions apply:
This procedure assumes you have installed Oracle Fusion Middleware on a host that is off the network, using a standard host name (not localhost ), and would like to move on to the network and use a static IP address. The IP address may be the default loopback IP, or any standard IP address.
To move on to the network, you can simply connect the host to the network. No updates to Oracle Fusion Middleware are required.
This procedure assumes you have installed on a host that is off the network, using a standard host name (not localhost ), and would like to move on to 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 host name.
To move on to the network:
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:
This section describes how to change between a static IP address and DHCP. The following assumptions and restrictions apply:
To change a host from a static IP address to DHCP:
To change a host from DHCP to a static IP address:
Oracle Fusion Middleware supports Internet Protocol Version 4 (IPv4) and Internet Protocol Version 6 (IPv6.) Among other features, IPv6 supports a larger address space (128 bits) than IPv4 (32 bits), providing an exponential increase in the number of computers that can be addressable on the Web.
An IPv6 address is expressed as 8 groups of 4 hexadecimal digits. For example:
2001:0db8:85a3:08d3:1319:8a2e:0370:7334
For information about the support for IPv6 by Oracle Fusion Middleware components, see Oracle Fusion Middleware System Requirements and Specifications .
The following topics provide more information about configuring Oracle Fusion Middleware components for IPv6:
To configure Oracle HTTP Server to communicate using IPv6, you modify configuration files in the following directory:
(UNIX) DOMAIN_HOME/config/fmwconfig/components/OHS/ohs_name (Windows) DOMAIN_HOME\config\fmwconfig\components\OHS\ohs_name
For example, to configure Oracle HTTP Server to communicate with Oracle WebLogic Server on hosts that are running IPv6, you configure mod_wl_ohs. You edit the configuration files in the following directory:
DOMAIN_HOME/config/fmwconfig/components/OHS/instances/ohs1
In the files, specify either the resolvable host name or the IPv6 address in one of the following parameters:
WebLogicHost hostname | [IPaddress] WebCluster [IPaddress_1]:portnum1, [IPaddress_2]:portnum2, [IPaddress_3]:portnum3, .
You must enclose the IPv6 address in brackets.
Any errors are logged in the Oracle HTTP Server logs. To generate more information, set the mod_weblogic directives Debug All and WLLogFile path. Oracle HTTP Server logs module-specific messages.
In previous versions, Oracle HTTP Server contained restrictions about using dynamic clusters with IPv6 nodes. For example, the Oracle HTTP Server plug-in for Oracle WebLogic Server had limited IPv6 support in that the DSL (dynamic server list) feature of the plug-in was not supported; only the static configuration of server lists was supported (DynamicServerList=OFF). Those restrictions have been lifted.
Oracle SOA Suite supports a dual-stack configuration. However, when you use Fusion Middleware Control with Oracle SOA Suite, you must specify the protocol in the following file. Otherwise, Fusion Middleware Control may not work correctly.
DSOMAIN_HOME/bin/startWebLogic.sh
In the file, add the following line, specifying the IP protocol after the line $/bin/setDomainEnv.sh:
$DOMAIN_HOME/bin JAVA_OPTIONS="$ -Djava.net.preferIPv4Stack=true"