风哥教程

培训 . 交流 . 分享
Make progress together!

oracle 11gR2 rac scan ip 配置(DNS模式)

[复制链接]
内容发布:paulyi| 发布时间:2014-2-18 17:57:10
oracle 11gR2 rac 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]#


上一篇:oracle 11gR2 rac 创建数据库database报ORA-00200错误
下一篇:AIX 5.1平台Oracle下遭遇TNS-12531错误
回复

使用道具 举报

1框架
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热门文章教程

  • 实战PHP与MySQL权威指南PDF电子书下载
  • 大数据技术与应用入门培训教程(电子版下载
  • Oracle 12cR2 九大新功能全面曝光_详解云数
  • Oracle OCP认证考试IZ0-053题库共712题数据
  • MySQL5权威指南(第3版)PDF电子版下载
  • 风哥Oracle数据库巡检工具V1.0(附2.6网页
快速回复 返回顶部 返回列表