關於HAIP

jichengjie發表於2015-05-12

在Oracle 11.2.0.2版本之前,如果使用了OS級別的心跳網路卡繫結,那麼Oracle仍然以OS繫結的為準。從11.2.0.2開始,如果沒有在OS層面進行心跳冗餘的配置,那麼Oracle自己的HAIP就啟用了。所以你雖然設定的172.168.1.198,然而實際上Oracle使用是169.254這個網段

SQL>  select name,ip_address from v$cluster_interconnects;

NAME            IP_ADDRESS
--------------- ----------------
eth1:1          169.254.177.221

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@hp580-4 ~]$ cat  /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

10.98.32.84   hp580-4   hp580-4.oracle.com
10.98.32.231   hp580-4v 

10.98.32.85   hp580-5   hp580-5.oracle.com
10.98.32.232   hp580-5v


10.98.32.230   hp580-cluster hp580-cluster-scan
10.98.32.233   hp580-cluster hp580-cluster-scan
10.98.32.234   hp580-cluster hp580-cluster-scan

172.168.1.198   hp580-4p
172.168.1.199   hp580-5p
[oracle@hp580-4 ~]$ ifconfig  -a
eth0      Link encap:Ethernet  HWaddr 78:E3:B5:0C:64:68 
          inet addr:10.98.32.84  Bcast:10.98.32.255  Mask:255.255.255.0
          inet6 addr: fe80::7ae3:b5ff:fe0c:6468/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:87071251 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11316802 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8334345579 (7.7 GiB)  TX bytes:2485877014 (2.3 GiB)
          Interrupt:59

eth0:1    Link encap:Ethernet  HWaddr 78:E3:B5:0C:64:68 
          inet addr:10.98.32.231  Bcast:10.98.32.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:59

eth0:3    Link encap:Ethernet  HWaddr 78:E3:B5:0C:64:68 
          inet addr:10.98.32.234  Bcast:10.98.32.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:59

eth0:4    Link encap:Ethernet  HWaddr 78:E3:B5:0C:64:68 
          inet addr:10.98.32.233  Bcast:10.98.32.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:59

eth1      Link encap:Ethernet  HWaddr 78:E3:B5:0C:64:69 
          inet addr:172.168.1.198  Bcast:172.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::7ae3:b5ff:fe0c:6469/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:966844155 errors:0 dropped:0 overruns:0 frame:0
          TX packets:704616475 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:719808699459 (670.3 GiB)  TX bytes:472583462024 (440.1 GiB)
          Interrupt:63

eth1:1    Link encap:Ethernet  HWaddr 78:E3:B5:0C:64:69 
          inet addr:169.254.177.221  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:63

eth2      Link encap:Ethernet  HWaddr 78:E3:B5:0C:64:6A 
          inet addr:192.168.1.201  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::7ae3:b5ff:fe0c:646a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2546669659 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3620799812 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12964894596148 (11.7 TiB)  TX bytes:3544222403355 (3.2 TiB)
          Interrupt:67

eth3      Link encap:Ethernet  HWaddr 78:E3:B5:0C:64:6B 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:71

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:166656752 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166656752 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:119794044906 (111.5 GiB)  TX bytes:119794044906 (111.5 GiB)

[oracle@hp580-4 ~]$

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