Operating System(s):RHEL5.x, OEL5.x
How to setup cluster nodes using GNS while installing Oracle RAC 11g R2?
To set up an Oracle 11g R2 RAC installation using Oracle Grid Naming Services (GNS) the following requirements need to be met:
- At least two interfaces configured on each node, one for the private IP address and one for the public IP address.
- A Domain Naming Server (DNS) running in the network for the address resolution of the GNS virtual IP address and hostname.
- The DNS entry to configure the GNS sub-domain delegation
- A DHCP server running on the same public network as your Oracle RAC cluster.
Table 1 describes the different interfaces, IP address settings, and the resolutions in a cluster.
|Node Virtual IP
|GNS virtual IP
|SCAN virtual IP
Configuring the DNS Server to support GNS
To configure changes on a DNS server for an Oracle 11g R2 cluster using GNS:
- Configure GNS VIP address on DNS server—In the DNS, create a name resolution entry for the GNS virtual IP address in the forward lookup file.
For example: gns-server IN A 126.96.36.199
where gns-server is the GNS virtual IP address given during Oracle Grid installation. The address that you provide must be routable and should be in public IP address range.
2. Configure the GNS sub-domain delegation—In the DNS, create an entry to establish a DNS lookup that directs the DNS resolution of a GNS subdomain to the cluster.
Add the following to the DNS lookup file:
clusterdomain.example.com. NS gns-server.example.com.,
where clusterdomain.example.com. is the GNS sub domain (provided during the Oracle Grid installation) that you delegate and gns-server.clustername.com. resolves to the GNS virtual IP address.
Configuring a DNS Client
To configure the changes required on the cluster nodes for name resolution:
- You must configure the resolv.conf on the nodes in the cluster to contain name server entries that are resolvable to DNS server.
For example, edit the /etc/resolv.conf
options attempts: 2
options timeout: 1
NOTE: The total time-out period which is a combination of options attempted and options timed out should be less than 30 seconds. In the example above, 188.8.131.52 is the valid DNS server address and 184.108.40.206 is the GNS Virtual IP address in your network, and ns1.example.com is the domain server in your network
- Verify the order configuration. /etc/nsswitch.conf controls the name service order. In some configurations, the NIS can cause issues with Oracle SCAN address resolution. It is recommended that you place the NIS entry at the end of the search list.
For example, hosts: dns files nis
Once the appropriate changes have been made run the following command to restart the service:
/sbin/service nscd restart
Once done with configuring the DNS server client, during the Oracle Grid installation provide the necessary information in the Oracle Universal Interface (OUI) to proceed with the installation.
Grid Naming Services