oracle 11gR2 scan ip (DNS模式)

paulyibinyi發表於2010-07-07

    今天在公司搭建了oracle 11gR2 grid的叢集,scan ip 採用的是DNS模式,安裝完成後

狀態如下:

[grid@rac1 bin]$ ./crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora.DATA.dg    ora....up.type ONLINE    ONLINE    rac1       
ora....ER.lsnr ora....er.type ONLINE    ONLINE    rac1       
ora....N1.lsnr ora....er.type ONLINE    ONLINE    rac2       
ora....N2.lsnr ora....er.type ONLINE    ONLINE    rac1       
ora....N3.lsnr ora....er.type ONLINE    ONLINE    rac1
       
ora.asm        ora.asm.type   ONLINE    ONLINE    rac1       
ora.eons       ora.eons.type  ONLINE    ONLINE    rac1       
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE              
ora....network ora....rk.type ONLINE    ONLINE    rac1       
ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE              
ora.ons        ora.ons.type   ONLINE    ONLINE    rac1       
ora....SM1.asm application    ONLINE    ONLINE    rac1       
ora....C1.lsnr application    ONLINE    ONLINE    rac1       
ora.rac1.gsd   application    OFFLINE   OFFLINE              
ora.rac1.ons   application    ONLINE    ONLINE    rac1       
ora.rac1.vip   ora....t1.type ONLINE    ONLINE    rac1       
ora....SM2.asm application    ONLINE    ONLINE    rac2       
ora....C2.lsnr application    ONLINE    ONLINE    rac2       
ora.rac2.gsd   application    OFFLINE   OFFLINE              
ora.rac2.ons   application    ONLINE    ONLINE    rac2       
ora.rac2.vip   ora....t1.type ONLINE    ONLINE    rac2       
ora....ry.acfs ora....fs.type ONLINE    ONLINE    rac1       
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    rac2       
ora.scan2.vip  ora....ip.type ONLINE    ONLINE    rac1       
ora.scan3.vip  ora....ip.type ONLINE    ONLINE    rac1
       
[grid@rac1 bin]$

[root@rac2 oraInventory]# ps -ef|grep tns
grid     17073     1  0 18:07 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
grid     17654     1  0 18:10 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit

root     18842  8996  0 18:18 pts/3    00:00:00 grep tns
[root@rac2 oraInventory]#

[root@rac1 logs]# ps -ef|grep tns
grid      9612     1  0 18:02 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN2 -inherit
grid      9624     1  0 18:02 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN3 -inherit
grid     10355     1  0 18:09 ?        00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
root     11822 31363  0 18:23 pts/2    00:00:00 grep tns

[root@rac1 logs]#

可以看到兩個節點當中,一個節點有兩個scan ip,一個節點只有1個scan ip

節點1 ip地址如下:

[root@rac1 logs]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:14:5E:69:75:94 
          inet addr:192.168.3.227  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::214:5eff:fe69:7594/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1752657 errors:0 dropped:0 overruns:0 frame.:0
          TX packets:3041821 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:376820166 (359.3 MiB)  TX bytes:4196605342 (3.9 GiB)
          Interrupt:169

eth0:1    Link encap:Ethernet  HWaddr 00:14:5E:69:75:94 
          inet addr:192.168.3.229  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:169

eth0:3    Link encap:Ethernet  HWaddr 00:14:5E:69:75:94 
          inet addr:192.168.3.233  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:169

eth0:4    Link encap:Ethernet  HWaddr 00:14:5E:69:75:94 
          inet addr:192.168.3.232  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:169

節點2 ip地址如下:

[root@rac2 oraInventory]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:13:21:64:CA:E9 
          inet addr:192.168.3.228  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::213:21ff:fe64:cae9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2593442 errors:0 dropped:0 overruns:0 frame.:0
          TX packets:1319323 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3798507464 (3.5 GiB)  TX bytes:101990445 (97.2 MiB)
          Interrupt:98

eth0:1    Link encap:Ethernet  HWaddr 00:13:21:64:CA:E9 
          inet addr:192.168.3.231  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:98

eth0:2    Link encap:Ethernet  HWaddr 00:13:21:64:CA:E9 
          inet addr:192.168.3.230  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:98

 


[root@rac2 oraInventory]# nslookup racnode-cluster-scan.racnode.com
Server:         192.168.3.32
Address:        192.168.3.32#53

Name:   racnode-cluster-scan.racnode.com
Address: 192.168.3.232
Name:   racnode-cluster-scan.racnode.com
Address: 192.168.3.233
Name:   racnode-cluster-scan.racnode.com
Address: 192.168.3.231

[root@rac2 oraInventory]#

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-667512/,如需轉載,請註明出處,否則將追究法律責任。

相關文章