Role of Public,Private,Virtual, and SCAN IPs

引用那个Burleson的文章部分内容,简单概括下:

Public IP:   The public IP address is for the server.  This is the same as any server IP address, a unique address with exists in /etc/hosts.
    public IP:client通过这个ip访问数据库服务器,也就是数据库服务器所在的服务器.
Private IP:  Oracle RCA requires "private IP" addresses to manage the CRS, the clusterware heartbeat process and the cache fusion layer.
    private IP: 节点间通信专用,包括心跳和Cache fusion等.
Virtual IP:   Oracle uses a Virtual IP (VIP) for database access.  The VIP must be on the same subnet as the public IP address.  The VIP is used for RAC failover (TAF).
     Virtual IP: 和public IP 属于同一个子网,每个节点都有一个VIP.当某个节点出现故障的时候,其所对应的那个VIP将会转移到其他剩下的可用节点上。

     详细的内容请阅读下面的E文。
- Public IP : Configured before installation for each node, and resolvable to that node before installation. 
Role:   Allow communication/configuration of Virtual/SCAN between the nodes of the cluster. Without Public Interface/IP the Clusterware don't start.
The Virtual/SCAN will work as alias IP on Public Interface over Public Network.
- Private or Interconnect
Configured before installation, but on a separate, private network, with its own subnet, that is not resolvable except by other cluster member nodes
Role:  Clusterware uses the interconnect for cluster synchronization (network heartbeat) and daemon communication between the the clustered nodes. 
RAC uses the interconnect for cache fusion (UDP) and inter-process communication (TCP). 
Cache Fusion is the remote memory mapping of Oracle buffers, shared between the caches of participating nodes in the cluster. 
- Virtual IP: Configured before installation for each node, but not currently in use. On the same subnet as all other public IP addresses, VIP addresses, and SCAN addresses.
Role:  The goal is application availability. If add or remove nodes it's necessary make config your client adding/removing VIP (with SCAN it's not necessary)
When a node fails, the VIP associated with it is automatically failed over to some other node. 
Without using VIPs or FAN, clients connected to a node that died will often wait for a TCP timeout period (which can be up to 10 min) before getting an error. 
As a result, you don't really have a good HA solution without using VIPs and FAN. The easiest way to use FAN is to use an integrated client with Fast Connection Failover (FCF) such as JDBC, OCI, or ODP.NET.
-SCAN IP
Three Static IP addresses configured on the domain name server (DNS) before installation so that the three IP addresses are associated with the name provided as the SCAN, and all three addresses are returned in random order by the DNS to the requestor
Configured before installation in the DNS to resolve to addresses that are not currently in use. On the same subnet as all other public IP addresses, VIP addresses, and SCAN addresses
Role:  The goal is application availability before clients establish communication with RAC and make the Cluster-Wide totally transparent.
SCAN IP is a new "layer" network (oracle) with high availability that allows you to change the characteristics of your cluster (i.e add/remove nodes) without the need to make configuration changes in their clients "Grid concept".

2. What is the relationship between SCAN IP and Virtual IPs ?
SCAN IP is used to receive new connection requests and redirects to the VIP IP. 
The Virtual IP establishes and allow failover of the connections after connection being established. 

When the client requests a connection, Oracle Client 11gR2 find for IPs available for this host-scan and create a list of all SCAN IP the first connection attempt on RAC is using one of SCAN IPs avaliable. 
The SCAN Listener will receive this connection and re-direct to one of avaliable nodes using LOCAL_LISTENER from this point the the connection is established using Virtual IP (VIP).

All SCAN/VIP must be resolved by DNS.

The client knows that there is only the SCAN Hostname, which is configured in the connection string.
Once the connection is requested Oracle Clusterware redirects the connection to one of the VIP hostname which must be resolved by DNS.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21754115/viewspace-1225719/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/21754115/viewspace-1225719/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值