Oracle® Application Server 10g Administrator's Guide
10g (9.0.4) Part No. B10376-02 |
|
![]() |
![]() |
This chapter provides procedures for changing the network configuration of an Oracle Application Server host.
It contains the following topics:
Oracle Application Server supports a variety of options for configuring and changing networking features. Depending on your operating system platform, you can install Oracle Application Server on:
A host with a static IP address and hostname (all platforms support this option)
A host that uses DHCP
A host that is off the network
See Also: Oracle Application Server 10g Installation Guide for your platform for more information |
After installation, you may want to change the networking configuration. This chapter provides procedures for changing the networking configuration of an Oracle Application Server host.
See Also: Oracle Application Server 10g Release Notes to determine which networking features are supported for your operating system platform |
Changing the Hostname and IP Address (Middle Tier)
Follow this procedure if your host uses a static IP address and hostname, and you would like to change to a different static IP address, hostname, or both. This procedure is for hosts that contain one or more middle-tier instances.
Some examples of when to use this procedure are:
Your organization moved to a new geographic location and you must move to a new subnet
You must change the hostname on your system
Changing the IP Address (Infrastructure)
Follow this procedure if your host uses a static IP address and hostname, an you would like to change to a different static IP address. The hostname must remain the same. This procedure is for hosts that contain an Infrastructure. You can use this procedure if your host moves to a new subnet.
Moving Between Off-network and On-network
This section provides procedures for moving an Oracle Application Server host on and off the network. You may use DHCP or a static IP address when on the network. You can use these procedures, for example, if you installed Oracle Application Server on your laptop and would like to plug in to different networks to use it.
Changing Between a Static IP Address and DHCP
This section provides procedures for changing from a static IP address to DHCP, and from DHCP to a static IP address. You might use these if you install on a static IP address but then decide you would like to use DHCP so you can be more mobile, or if you are using DHCP and must plug in to a network using a static IP address.
This section describes how to change the hostname and IP address of a host that contains one or more Oracle Application Server middle-tier installations. You can use this procedure to change:
The hostname only
The IP address only
Both the hostname and IP address
You can use this procedure on J2EE and Web Cache, Portal and Wireless, and Business Intelligence and Forms installations. You can also use it on a Forms:Reports standalone installation. This procedure is not supported for OracleAS Developer Kits 10g installations.
Note: If any installations contain Oracle Content Management SDK, you must perform additional steps. Refer to Oracle Content Management SDK Administrator's Guide before starting this procedure. |
The procedure includes:
Changing the hostname and IP address on your operating system
The details on how to do this are not provided, since this varies according to your operating system type and configuration. Consult your operating system documentation to determine how to do this before beginning the procedure.
Updating Oracle Application Server for the new hostname and IP address
The details on how to do this are provided in the procedure. For tips on recovering from errors, see Section 9.7, "Recovering from Errors when Using chgiphost.sh".
Step 1: Prepare Your Host
In this step, you prepare your host for the change by removing instances from clusters and stopping all processes.
If the host contains a middle-tier instance that is part of an OracleAS Cluster, remove the instance from the cluster. You can add the instance back into the cluster at the end of the procedure.
See Also: Oracle Application Server 10g High Availability Guide for instructions on removing instances from a cluster |
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.
See Also: Oracle Application Server Web Cache Administrator's Guide for instructions on removing caches from a cluster |
Shut down each middle-tier instance on the host by running the following commands in each Oracle home:
emctl stop iasconsole opmnctl stopall
Verify that all Oracle Application Server processes have stopped.
Make sure Oracle Application Server processes will not start automatically after a reboot by disabling any automated startup scripts you may have set up, such as /etc/init.d
scripts.
Make sure the Oracle Internet Directory that the middle-tier is using is running.
Step 2: Change the Hostname and IP Address on Your Operating System
In this step, you update your operating system with the new hostname, 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 on how to do this.
Make the updates to your operating system to properly change the hostname, IP address, or both.
Reboot the host.
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.
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 hostname 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.
Log in to the host as the user that installed the middle-tier instance.
Make sure your ORACLE_HOME
environment variable is set to the middle-tier Oracle home.
Run the following commands in the middle-tier Oracle home:
(UNIX) cd ORACLE_HOME/chgip/scripts ./chgiphost.sh -mid (Windows) cd ORACLE_HOME\chgip\scripts chgiphost.bat -mid
The chgiphost.sh
command prompts for information, as shown in Table 9-1. You may not receive all of the prompts, depending on your middle-tier installation type.
Note that the prompts may provide values in parenthesis. These are not default values—they are just reminders. You must enter a value for each prompt.
Table 9-1 Prompts and Actions for chgiphost.sh
Prompt | Action |
---|---|
Enter the fully qualified host name (hostname.domainname) of the new system |
If you are changing the hostname of the system, enter the new fully-qualified hostname
Otherwise, enter the current fully-qualified hostname |
Enter the IP Address of the new system |
If you are changing the IP address of the system, enter the new IP address
Otherwise, enter the current IP address |
Enter the fully qualified host name (hostname.domainname) of the old system |
If you are changing the hostname of the system, enter the old fully-qualified hostname
Otherwise, enter the current fully-qualified hostname |
Enter the IP Address of the old system |
If you are changing the IP address of the system, enter the old IP address
Otherwise, enter the current IP address |
Enter the password for the Mid Tier IAS instance (ias_admin) |
Enter the ias_admin password for the middle-tier instance
|
Confirm the password for the Mid Tier IAS instance (ias_admin) |
Enter the ias_admin password again
|
Note: Depending on your configuration, you may not receive the rest of the prompts in this table. |
|
Enter the password for the OID Administrator |
Enter the cn=orcladmin password for the Oracle Internet Directory in which this instance is registered
|
Confirm the password for the OID Administrator |
Enter the cn=orcladmin password again
|
Enter the password for the SYS user, of the infra database |
Enter the SYS schema password for the Metadata Repository used by this middle-tier instance.
Note: You can determine which Metadata Repository is used by an instance by looking in the following file: ORACLE_HOME/config/ias.properties The Metadata Repository is the value of the |
Confirm the password for the SYS user, of the infra database |
Enter the SYS schema password that you entered in the previous step again.
|
Enter the password for the dsGateway user, of the infra database |
If you are using OracleAS Syndication Services, enter the DSGATEWAY schema password for the Metadata Repository used by this middle-tier instance. Refer to Section 9.3.1, "Obtaining the DSGATEWAY Schema Password" for instructions on obtaining this password.
If you are not using OracleAS Syndication Services, you can enter any dummy password such as "welcome". |
Confirm the password for the dsGateway user, of the infra database |
Enter the DSGATEWAY schema password that you entered in the previous step again.
|
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.
Start each middle-tier instance on your host by running the following commands in each Oracle home:
opmnctl startall emctl start iasconsole
If you removed any instances from an OracleAS Cluster at the beginning of this procedure, add them back to the cluster.
See Also: Oracle Application Server 10g High Availability Guide for instructions on adding instances to a cluster |
If you removed any instances from an OracleAS Web Cache cluster at the beginning of this procedure, add them back to the cache cluster.
See Also: Oracle Application Server Web Cache Administrator's Guide for instructions on adding caches to a cluster |
If you disabled any processes for automatically starting Oracle Application Server at the beginning of this procedure, enable them.
Step 5: Update OracleAS Portal and OracleAS Wireless
This is a special step required for updating OracleAS Portal and OracleAS Wireless when you change the hostname.
When you change the hostname, the OracleAS Wireless server URL changes to use the new hostname. You must update OracleAS Portal with the new OracleAS Wireless service URL.
Refer to the section on "Updating the OracleAS Wireless Portal Service URL Reference" in Oracle Application Server Portal Configuration Guide for instructions.
Step 6: Manually Update the Hostname in Files
If you edited a file and entered the hostname as part of a user-defined parameter such as the Oracle Home path, the hostname is not automatically updated by running the chgiphost.sh
script. To update the hostname in such cases, you need to edit the files manually. For example, the plsql.conf file may contain an NFS path including the hostname, such as: /net/dsun1/private/...
.
The chgiphost.sh
script also does not edit the hostname references in the documentation files. You will need to manually edit these files to update the hostname. Examples of such files are the following files in the ORACLE_HOME
/Apache/Apache/htdocs
directory.
index.html.de
index.html.es_ES
index.html.fr
index.html.it
index.html.ja
index.html.ko
index.html.pt_BR
index.html.zh_CN
index.html.zh_TW
The password for the DSGATEWAY
schema in the Metadata Repository is stored in Oracle Internet Directory. It is usually a randomly-generated password. If you do not know the DSGATEWAY
password, you can obtain it using the ldapsearch
command.
Note: You only need to know theDSGATEWAY schema password if you are using OracleAS Syndication Services. If you are not using OracleAS Syndication Services, you can enter any dummy password, such as "welcome", when chgiphost.sh prompts for the DSGATEWAY password
|
Run the following command in the middle-tier Oracle home:
ldapsearch -h oid_host -p oid_port -D cn=orcladmin -w orcladmin_password -b "orclresourcename=dsgateway, orclreferencename=metadata_repository, cn=ias infrastructure databases, cn=ias, cn=products, cn=oraclecontext" -s base "objectclass=*" orclpasswordattribute
Where:
oid_host
is the Oracle Internet Directory host name
If you are not sure of this value, it is listed as OIDhost
in the following file in the middle-tier Oracle home:
(UNIX) ORACLE_HOME/config/ias.properties (Windows) ORACLE_HOME\config\ias.properties
oid_port
is the Oracle Internet Directory non-SSL port number
If you are not sure of this value, it is listed as OIDport
in the following file in the middle-tier Oracle home:
(UNIX) ORACLE_HOME/config/ias.properties (Windows) ORACLE_HOME\config\ias.properties
orcladmin_password
is the cn=orcladmin
user password in Oracle Internet Directory
metadata_repository
is the name of the Metadata Repository
If you are not sure of this value, it is listed as InfrastructureDBCommonName
in the following file in the middle-tier Oracle home:
(UNIX) ORACLE_HOME/config/ias.properties (Windows) ORACLE_HOME\config\ias.properties
For example:
ldapsearch -h myhost -p 3060 -D cn=orcladmin -w welcome1 -b "orclresourcename=dsgateway, orclreferencename=asdb.myhost.mydomain.com cn=ias infrastructure databases, cn=ias, cn=products, cn=oraclecontext" -s base "objectclass=*" orclpasswordattribute
The ldapsearch
command prints several lines of output. The DSGATEWAY
password is listed as the orclpasswordattribute
, for example:
orclpasswordattribute=B7149q3s
This section describes how to change the IP address of a host that contains an Oracle Application Server Infrastructure.
The procedure includes:
Changing the IP address on your operating system
The details on how to do this are not provided since this varies according to your operating system type and configuration. Consult your operating system documentation to determine how to do this before beginning the procedure.
Updating Oracle Application Server for the new IP address
The details on how to do this are provided in the procedure. For tips on recovering from errors, see Section 9.7, "Recovering from Errors when Using chgiphost.sh".
Step 1: Prepare Your Host
In this step, you prepare your host for the change by stopping all processes.
Shut down all middle-tier instances that use the Infrastructure, even if they are on other hosts.
Set the ORACLE_HOME
and ORACLE_SID
environment variables.
Shut down the Infrastructure:
emctl stop iasconsole opmnctl stopall lsnrctl stop sqlplus /nolog SQL> connect SYS as SYSDBA SQL> shutdown SQL> quit
Verify that all Oracle Application Server processes have stopped.
Make sure Oracle Application Server processes will not start automatically after a reboot by disabling any automated startup scripts you may have set up, such as /etc/init.d
scripts.
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 on how to do this.
Make the updates to your operating system to properly change the IP address.
Reboot the host.
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.
Step 3: Update the Infrastructure
In this step, you update the Infrastructure on your host with the new IP address.
Log in to the host as the user that installed the Infrastructure.
Set the ORACLE_HOME
and ORACLE_SID
environment variables.
Start the database:
sqlplus /nolog SQL> connect / as SYSDBA SQL> startup SQL> quit
Start OPMN:
opmnctl start
Start Oracle Internet Directory:
opmnctl startproc ias-component=OID process-type=OID
Run the following commands in the Infrastructure Oracle home:
(UNIX) cd ORACLE_HOME/chgip/scripts ./chgiphost.sh -infra (Windows) cd ORACLE_HOME\chgip\scripts chgiphost.bat -mid
The chgiphost.sh
command prompts for the old and new IP address.
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 the Infrastructure
In this step, you restart the Infrastructure and any middle-tier instances that use it.
Set the ORACLE_HOME
and ORACLE_SID
environment variables.
Start the Infrastructure:
sqlplus /nolog SQL> connect SYS as SYSDBA SQL> startup SQL> quit lsnrctl start opmnctl startall emctl start iasconsole
If a middle-tier instance is on the same host as the infrastructure, then you need to run the chgiphost.sh
script on the middle-tier instance before restarting the middle-tier processes.
If you disabled any processes for automatically starting Oracle Application Server at the beginning of this procedure, enable them.
This section describes how to move an Oracle Application Server host on and off the network. The following assumptions and restrictions apply:
The host must contain an Infrastructure and middle-tier instance, or a J2EE and Web Cache instance that does not use an Infrastructure, that is, the entire Oracle Application Server environment must be on the host.
DHCP must be used in loopback mode. Refer to Oracle Application Server 10g Installation Guide for more information.
Only IP address change is supported; the hostname must remain unchanged.
Hosts in DHCP mode should not use the default hostname (localhost.localdomain
). The hosts should be configured to use a standard hostname and the loopback IP should resolve to that hostname.
A loopback adapter is required for all off-network installations (DHCP or static IP). Refer to Oracle Application Server 10g Installation Guide for more information.
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 plug the host into the network. If you would like to change the static IP address at that time, follow the appropriate procedure:
This procedure assumes you have installed 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.
Connect the host to the network using DHCP and configure the hostname to the loopback IP address only.
If the original installation was performed using a static IP address and the new IP address is the DHCP loopback IP address, follow the appropriate procedure to change to the loopback IP address:
If the original installation was performed using the loopback IP, you do not need to change the 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.
Configure the /etc/hosts
file so the IP address and hostname can be resolved locally.
Take the host off the network.
There is no need to perform any steps to change the hostname or IP address.
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.
Configure the /etc/hosts file so the IP address and hostname can be resolved locally.
Take the host off the network.
There is no need to perform any steps to change the hostname or IP address.
This section describes how to change between a static IP address and DHCP. The following assumptions and restrictions apply:
The host must contain an Infrastructure and middle-tier instance, or a J2EE and Web Cache instance that does not use an Infrastructure, that is, the entire Oracle Application Server environment must be on the host.
DHCP must be used in loopback mode. Refer to Oracle Application Server 10g Installation Guide for more information.
Only IP address change is supported; the hostname must remain unchanged.
Hosts in DHCP mode should not use the default hostname (localhost.localdomain
). The hosts should be configured to use a standard hostname and the loopback IP should resolve to that hostname.
To change a host from a static IP address to DHCP:
Configure the host to have a hostname associated with the loopback IP address before you convert the host to DHCP.
Convert the host to DHCP and follow the appropriate procedure to change to the loopback IP address:
This section describes how to recover from typical errors you might encounter when using the chgiphost.sh
script. It contains the following scenarios:
Scenario 1: You Specified the Wrong Destination Name
Suppose you ran the chgiphost.sh
script but specified the wrong destination name. In this case, you can remedy the error by running chgiphost.sh
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.sh
with source = loire985 and destination = mqa985.
To recover from this error:
Run chgiphost.sh
with source = mqa985 and destination = sqb985.
Run chgiphost.sh
again with source = loire985 and destination = sqb985.
Scenario 2: You Encountered an Error when Running chgiphost.sh
If you encounter an error when running chgiphost.sh
, you should fix the error and run chgiphost.sh
again.
For example, you will get an error message if you enter the wrong password for Oracle Internet Directory or OracleAS Syndication Services. In this case, you should run chgiphost.sh
again, with the same source and destination hostnames as before, and make sure to supply the correct password when prompted.
When you upgrade from Windows 2000 to Windows 2003, lower-case letters in your hostname may be changed to upper-case 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 lower-case hostname to the hosts file:
OS_path
\system32\drivers\etc\hosts
For example, if your fully-qualified hostname was myhost.mydoman
before the upgrade, and your IP address is 1.2.3.4, add the following line:
1.2.3.4 myhost.mydomain myhost