Oracle B32100-01 Benutzerhandbuch

Seite von 258
Setting up the OracleAS Disaster Recovery Environment
Installing in High Availability Environments: OracleAS Disaster Recovery
10-7
127.0.0.1    localhost
213.2.2.330  asmid1.oracle.com   asmid1
213.2.2.331  asmid2.oracle.com   asmid2
213.2.2.110  asinfra.oracle.com  asinfra
c.
Ensure that the "hosts:" line in the /etc/nsswitch.conf file has "files" as 
the first item:
hosts:   files nis dns
The entry specifies the ordering of the name resolution. If another method is 
listed first, then the node will use the other method to resolve the hostname.
Verifying that the Nodes Resolve the Hostnames Correctly
After making the changes and restarting the nodes, check that the nodes resolve the 
hostnames properly by running the following commands:
On the middle-tier nodes on both sites, run the hostname command. This should 
return the internal hostname. For example, the command should return "asmid1" 
if you run it on prodmid1 and standbymid1.
prompt> hostname
asmid1
On each node, ping the other nodes in the environment using the internal 
hostname as well as the external hostname. The command should be successful. 
For example, from the first midtier node, prodmid1, run the following commands:
prompt> ping prodinfra ping the production infrastructure node
PING prodinfra: 56 data byes
64 bytes from prodinfra.oracle.com (138.1.2.111): icmp_seq=0. time=0. ms
^C
prompt> ping iasinfra ping the production infrastructure node
PING iasinfra: 56 data byes
64 bytes from iasinfra.oracle.com (138.1.2.111): icmp_seq=0. time=0. ms
^C
prompt> ping iasmid2 ping the second production midtier node
PING iasmid2: 56 data byes
64 bytes from iasmid2.oracle.com (138.1.2.444): icmp_seq=0. time=0. ms
^C
prompt> ping prodmid2 ping the second production midtier node
PING prodmid2: 56 data byes
64 bytes from prodmid2.oracle.com (138.1.2.444): icmp_seq=0. time=0. ms
^C
prompt> ping standbymid1 ping the first standby midtier node
PING standbymid1: 56 data byes
64 bytes from standbymid1.oracle.com (213.2.2.330): icmp_seq=0. time=0. ms
Note:
In the hosts file, be sure that the line that identifies the 
current node comes immediately after the localhost definition (the 
line with the 127.0.0.1 address).
Note:
Restart the nodes after editing these files.