oracle 11gR2 scan ip (DNS模式)

    今天在公司搭建了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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7199859/viewspace-667512/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值