Escolar Documentos
Profissional Documentos
Cultura Documentos
Table 8-1 summarizes the installation types that support hostname, domain
name, and IP address changes, and provides pointers to the appropriate
procedures.
Changing the
Hostname or Domain Changing the IP
Installation Type Name Address
Middle-tier Supported Supported
• Oracle Internet
Directory, OracleAS
Single Sign-On, Oracle
Delegated
Administration
Services, and
(optionally) Oracle
Directory Integration
and Provisioning
OracleAS Certificate Authority Supported Supported
This section describes how to change the hostname, domain name, or both,
of a host that contains any of the following middle-tier installation types:
Note:
See Also:
Prepare your host for the change by removing instances from OracleAS
Clusters and stopping all processes.
1. If the host contains a middle-tier instance that is part of an OracleAS
Cluster, remove the instance from the OracleAS Cluster. You can add
the instance back into the cluster at the end of the procedure.
See Also:
On UNIX systems:
ORACLE_HOME/dcm/bin/dcmctl leavefarm
On Windows systems:
ORACLE_HOME\dcm\bin\dcmctl leavefarm
2. If the host contains a J2EE and Web Cache instance that is part of an
OracleAS File-based Farm (that uses a repository on another host) or
an OracleAS Database-based Farm, remove the instance from the
farm:
On UNIX systems:
ORACLE_HOME/dcm/bin/dcmctl leavefarm
On Windows systems:
ORACLE_HOME\dcm\bin\dcmctl leavefarm
You can add the instance back to the farm at the end of the procedure.
On Windows systems:
ORACLE_HOME\bin\emctl stop iasconsole
ORACLE_HOME\opmn\bin\opmnctl stopall
On UNIX systems:
ORACLE_HOME/opmn/bin/opmnctl status
On Windows systems:
ORACLE_HOME\opmn\bin\opmnctl status
On UNIX systems:
ORACLE_HOME/opmn/bin/opmnctl startproc ias
component=dcmdaemon
On Windows systems:
ORACLE_HOME\opmn\bin\opmnctl startproc ias
component=dcmdaemon
Update your operating system with the new hostname, domain name, or both.
Consult your operating system documentation for more information on how to
perform the following steps. You can also change the IP address, if desired.
Follow these steps for each middle-tier instance on your host. Be sure to
complete the steps entirely for one middle-tier instance before you move on to
the next.
1. Log in to the host as the user that installed the middle-tier instance.
2. Make sure your ORACLE_HOME environment variable is set to the
middle-tier Oracle home.
3. On UNIX systems, set the LD_LIBRARY_PATH,
LD_LIBRARY_PATH_64, or SHLIB_PATH environment variables to the
proper values, as shown in Table 1-1. The actual environment variables
and values that you have to set depend on the type of your UNIX
operating system.
4. Run the following commands in the middle-tier Oracle home:
On UNIX systems:
cd ORACLE_HOME/chgip/scripts
./chgiphost.sh mid
On Windows systems:
cd ORACLE_HOME\chgip\scripts
chgiphost.bat mid
Prompt Action
Enter fully qualified hostname Enter the new fully-qualified
(hostname.domainname) of hostname. This may be a new
Prompt Action
destination hostname, domain name, or both.
Enter valid IP Address of If you changed the IP address of the
destination host, enter the new IP address.
2. Verify that the tool ran successfully by checking for errors in the files in
the following directory:
On UNIX systems:
ORACLE_HOME/chgip/log
On Windows systems:
ORACLE_HOME\chgip\log
Restart the middle-tier instances and restore your configuration back to the
way it was before you started the procedure.
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
a. Obtain the new repository ID for the new farm by running the
following command in the Oracle home of that instance:
On UNIX systems:
ORACLE_HOME/dcm/bin/dcmctl getRepositoryID
On Windows systems:
ORACLE_HOME\dcm\bin\dcmctl getRepositoryID
On UNIX systems:
ORACLE_HOME/dcm/bin/dcmctl joinfarm r
repository_ID
On Windows systems:
ORACLE_HOME\dcm\bin\dcmctl joinfarm r
repository_ID
c. Add all instances on other hosts back to the new farm using the
command in the preceding step.
2. If you removed any J2EE and Web Cache instances from an OracleAS
File-based Farm (that uses a repository on another host) at the
beginning of this procedure, add each one back as follows:
On UNIX systems:
ORACLE_HOME/dcm/bin/dcmctl joinfarm r
repository_ID
On Windows systems:
ORACLE_HOME\dcm\bin\dcmctl joinfarm r
repository_ID
On UNIX systems:
ORACLE_HOME/dcm/bin/dcmctl getRepositoryID
On Windows systems:
ORACLE_HOME\dcm\bin\dcmctl getRepositoryID
2. If you removed any J2EE and Web Cache instances from an OracleAS
Database-based Farm at the beginning of this procedure, add each
one back as follows:
On UNIX systems:
ORACLE_HOME/dcm/bin/dcmctl joinfarm
On Windows systems:
ORACLE_HOME\dcm\bin\dcmctl joinfarm
See Also:
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.
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
See Also:
For each middle-tier instance that uses Identity Management, stop the middle-
tier instance as follows:
1. On the Application Server home page of the Application Server Control
Console, click Stop All.
2. Leave the Application Server Control Console running.
It is important that you leave the Application Server Control Console running
in each of the middle-tier instances while you perform this procedure.
Prepare your host for the hostname change by stopping all processes.
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
Update your operating system with the new hostname, domain name, or IP
address. Consult your operating system documentation for more information
on how to perform the following steps.
• On UNIX systems:
• ORACLE_HOME/opmn/bin/opmnctl start
• ORACLE_HOME/opmn/bin/opmnctl startproc ias
component=OID
•
• On Windows systems:
• ORACLE_HOME\opmn\bin\opmnctl start
• ORACLE_HOME\opmn\bin\opmnctl startproc ias
component=OID
On UNIX systems:
cd ORACLE_HOME/chgip/scripts
./chgiphost.sh idm
On Windows systems:
cd ORACLE_HOME\chgip\scripts
chgiphost.bat idm
Prompt Action
Enter fully qualified hostname If you changed the hostname or
(hostname.domainname) of domain name on your system,
destination enter the new fully-qualified
hostname.
2. Verify that the tool ran successfully by checking for errors in the files in
the following directory:
On UNIX systems:
ORACLE_HOME/chgip/log
On Windows systems:
ORACLE_HOME\chgip\log
This task contains the steps to update your environment for the new
hostname, domain name, or IP address. It is divided into three sections.
Follow the steps in the section that matches your Identity Management
configuration. The sections are::
1. Update the ldap.ora file in every instance that uses Oracle Internet
Directory. This includes other Identity Management instances
(OracleAS Single Sign-On, Oracle Delegated Administration Services,
Oracle Directory Integration and Provisioning) and middle-tier
instances (J2EE and Web Cache, Portal and Wireless, and Oracle
Business Intelligence).
On UNIX systems:
ORACLE_HOME/jdk/bin/java jar
ORACLE_HOME/sso/lib/ossoca.jar reassoc midtier
ORACLE_HOME old_hostname new_hostname
On Windows systems:
ORACLE_HOME\jdk\bin\java jar
ORACLE_HOME\sso\lib\ossoca.jar reassoc midtier
ORACLE_HOME old_hostname new_hostname
On Windows systems:
ORACLE_HOME\jdk\bin\java jar
ORACLE_HOME\sso\lib\ossoreg.jar
oracle_home_path middle_tier_oracle_home
site_name
middle_tier_hostname:http_port_number
config_mod_osso TRUE
mod_osso_url mod_osso_url
u user
See Also:
On Windows systems:
ORACLE_HOME\bin\odisrvreg h OID_hostname p
OID_port D "cn=orcladmin" w
orcladmin_password
a. Create a file named mod.ldif with the following contents (you can
create the file in any directory):
b. dn:cn=OperationURLs,cn=DAS,cn=Products,cn=Oracl
eContext
c. changetype:modify
d. replace:orcldasurlbase
e. orcldasurlbase:http://hostname:http_port_number
/
f.
1. Update the ldap.ora file in each middle-tier instance (J2EE and Web
Cache, Portal and Wireless, and Oracle Business Intelligence) that
uses Oracle Internet Directory.
On UNIX systems:
ORACLE_HOME/jdk/bin/java jar
ORACLE_HOME/sso/lib/ossoca.jar reassoc repos
ORACLE_HOME
ORACLE_HOME/jdk/bin/java jar
ORACLE_HOME/sso/lib/ossoca.jar reassoc midtier
ORACLE_HOME old_hostname new_hostname
On Windows systems:
ORACLE_HOME\jdk\bin\java jar
ORACLE_HOME\sso\lib\ossoca.jar reassoc repos
ORACLE_HOME
ORACLE_HOME\jdk\bin\java jar
ORACLE_HOME\sso\lib\ossoca.jar reassoc midtier
ORACLE_HOME old_hostname new_hostname
On Windows systems:
ORACLE_HOME\bin\odisrvreg h OID_hostname p
OID_port D "cn=orcladmin" w
orcladmin_password
a. Create a file named mod.ldif with the following contents (you can
create the file in any directory):
b. dn:cn=OperationURLs,cn=DAS,cn=Products,cn=Oracl
eContext
c. changetype:modify
d. replace:orcldasurlbase
e. orcldasurlbase:http://hostname:http_port_number
/
f.
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
This section describes how to change the IP address of a host that contains
either of the following Infrastructure installation types:
• 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".
Shut down all middle-tier instances that use the Infrastructure installation,
even if they are on other hosts.
Update your operating system with the new IP address, restart the host, and
verify that the host is functioning properly on your network. Consult your
operating system documentation for more information on how to do this.
The chgiphost command prompts for the old and new IP address.
26. Verify that the tool ran successfully by checking for errors in the files in
the following directory:
27. ORACLE_HOME/chgip/log
Finish starting the Infrastructure and start any middle-tier instances that use it.
This section contains the following special topics that apply to changing the
hostname or domain name of an Oracle Application Server host:
By default, the console log level for the chgiphost command is SEVERE.
This causes only critical information to be printed while running chgiphost. If
you would like to view additional progress information, set the console log
level to CONFIG as follows:
By default, the chgiphost script updates key configuration files in the Oracle
home with the new hostname. If either of the following cases apply to your
installation, you may want to consider customizing the behavior of the
chgiphost script:
In order to update these files, add their full path name to the following
file before running chgiphost:
o On UNIX systems:
o ORACLE_HOME/chgip/config/hostname.lst
o
o On Windows systems:
o ORACLE_HOME\chgip\config\hostname.lst
o
• Your old hostname is very short (one or two letters) or is a string that is
likely to appear in a configuration file
In this case, the chgiphost script 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:
o On UNIX systems:
o ORACLE_HOME/chgip/config/hostname_short_sa
mple.lst.xml
o
o On Windows systems:
o ORACLE_HOME\chgip\config\hostname_short_sa
mple.lst.xml
o
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 script:
4.chgiphost option hostnameShortXml
full_path_to_your_xml_file
5.
chgiphost mid hostnameShortXml
/mydir/my_sample.lst.xml
8.2.5.3 Changing your Hostname after Upgrading from Windows 2000 to
Windows 2003
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
1.2.3.4 myhost.mydomain myhost
This section describes how to recover from typical errors you might encounter
when using the chgiphost.sh script. It contains the following scenarios:
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.
If you encounter an error when running chgiphost.sh, you should fix the
error and run chgiphost.sh again.
To move onto the network, you can simply plug the host into the network. No
updates to Oracle Application Server are required.
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.
To move onto the network, connect the host to the network using DHCP and
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.
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.