jueves, 7 de abril de 2011

Oracle Clusterware R2 Scan DNS

So how does it work:

First, my (named, linux) DNS is running on
This DNS does the naming for cluster01.nl.oracle.com and pts.local.
For cluster01.nl.oracle.com a "delegation" is made, so that every request to a machine in the domain .cluster01.nl.oracle.com is delegated to the GNS. (with the GNS VIP).


cluster01.nl.oracle.com NS gns.cluster01.nl.oracle.com
So, once the cluster installation is done, the GNS in the cluster will be stared and a request to scan.cluster01.nl.oracle.com will be forwarded to the GNS. The GNS will then take care of the request and answer which three nodes in the cluster will serve as scan listeners:

[root@gridnode01pts05 ~]# nslookup scan.cluster01.nl.oracle.com
Non-authoritative answer:
Name: scan.cluster01.nl.oracle.com
Name: scan.cluster01.nl.oracle.com
Name: scan.cluster01.nl.oracle.com
Also, with dig, you can see all information coming from GNS:

[root@dns-dhcp ~]# dig scan.cluster01.nl.oracle.com
; <<>> DiG 9.3.4-P1 <<>> scan.cluster01.nl.oracle.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46016
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 10, ADDITIONAL: 10
;scan.cluster01.nl.oracle.com. IN A
scan.cluster01.nl.oracle.com. 6 IN A
scan.cluster01.nl.oracle.com. 6 IN A
scan.cluster01.nl.oracle.com. 6 IN A
oracle.com. 10732 IN NS dns2.us.oracle.com.
oracle.com. 10732 IN NS dns3.us.oracle.com.
oracle.com. 10732 IN NS dns4.us.oracle.com.
oracle.com. 10732 IN NS dns1-us.us.oracle.com.
oracle.com. 10732 IN NS dnsmaster1.oracle.com.
oracle.com. 10732 IN NS dnsmaster2.oracle.com.
oracle.com. 10732 IN NS dnsmaster3.oracle.com.
oracle.com. 10732 IN NS dnsmaster4.oracle.com.
oracle.com. 10732 IN NS dnsmaster5.oracle.com.
oracle.com. 10732 IN NS dnsmaster6.oracle.com.
dns2.us.oracle.com. 3984 IN A
dns3.us.oracle.com. 3984 IN A
dns4.us.oracle.com. 3984 IN A
dns1-us.us.oracle.com. 3984 IN A
dnsmaster1.oracle.com. 1060 IN A
dnsmaster2.oracle.com. 1060 IN A
dnsmaster3.oracle.com. 1060 IN A
dnsmaster4.oracle.com. 1060 IN A
dnsmaster5.oracle.com. 1060 IN A
dnsmaster6.oracle.com. 1060 IN A
;; Query time: 0 msec
;; WHEN: Sat Sep 19 17:15:47 2009
;; MSG SIZE rcvd: 486

Later, when the database is installed, you can use the SCAN with SQLNet EZ connect to connect to the database. Can't wait, I just have to demo it now:

[oracle@gridnode01pts05 ~]$ sqlplus system/oracle@scan.cluster01.nl.oracle.com:1521/dbpts05.pts.local
SQL*Plus: Release Production on Sat Sep 19 17:11:32 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release - Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

No hay comentarios: