ipv6,/etc/hosts配置文件解析問題


起因:

客戶反饋,11.2.0.4,Linux7  GI集群軟件,Oracle軟件均已正常安裝完畢。

本篇文檔講述描述兩個信息

1.DBCA建庫,出現,處理

VIP do not all share the same subnetwork,or the vip subnetwok does not match that of any public network interface in the cluster

2.11g R2是否支持ipv6的疑問,查詢官方文檔。

是否支持結果,直接關注文檔最后,存在總結。

一 、觀察問題

查詢集群資源狀態

Cluster Resources
--------------------------------------------------------------------------------
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                                         
ora.rac2.vip
      1        ONLINE  ONLINE       rac2                                         
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac1                                         
ora.cvu
      1        ONLINE  ONLINE       rac1                                         
ora.oc4j
      1        ONLINE  ONLINE       rac1 
ora.scan1.vip
      1        ONLINE  ONLINE       rac1
[grid@rac1 ~]$
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.6.8)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
The command completed successfully

[grid@rac1 ~]$ srvctl config vip -n rac2
VIP 存在: /rac2-vip/10.10.6.9/10.10.6.0/255.255.255.0/, 托管節點 rac2
[grid@rac1 ~]$ srvctl config vip -n rac1
VIP 存在: /rac1-vip/10.10.6.8/10.10.6.0/255.255.255.0/, 托管節點 rac1


$cat /etc/hosts
127.0.0.1 localhost
::1        rac1 
10.10.6.6  rac1 
10.10.6.7  rac2
10.10.6.8  rac1-vip 
10.10.6.9  rac2-vip 
10.10.6.10  rac-scan

從上述可以發現,Grid 監聽無法正常注冊Public ip信息資源
ping rac1 可以得到的IP地址是127.XXX
建議,注釋掉::1 后續的信息
建議百度::1 得到的解釋是使用Ipv6地址進行解析。
重啟crs OK

二、 疑問

11.2.0.4 是否支持RAC 使用ipv6???

 

2.1 查詢12.1 官方文檔

查詢12.1 官方文檔
Clusterware Administration and Deployment Guide
Network Address Configuration in a Cluster
You can configure a network interface for either IPv4, IPv6, or both types of addresses on a given network. 
If you configure redundant network interfaces using a third-party technology, then Oracle does not support configuring one
interface to support IPv4 addresses and the other to support IPv6 addresses. You must configure network interfaces
of a redundant interface pair with the same IP address type. If you use the Oracle Clusterware Redundant Interconnect feature,
then you must use IPv4 addresses for the interfaces. All the nodes in the cluster must use the same IP protocol configuration. Either all the nodes use only IPv4,
or all the nodes use only IPv6, or all the nodes use both IPv4 and IPv6. You cannot have some nodes in the cluster configured
to support only IPv6 addresses, and other nodes in the cluster configured to support only IPv4 addresses. The local listener listens on endpoints based on the address types of the subnets configured for the network resource.
Possible types are IPV4, IPV6, or both. 集群public 網卡,可以是ipv4,也可以是ipv6,但是不允許一個ipv4,另一個ipv6

查詢12.1增強功能!!!說明11.2.0.4以前並不支持!

2.7.5 Oracle RAC Enhancements

The following sections describe new features for Oracle RAC.

2.7.5.1 Support for IPv6 Based IP Addresses for Oracle RAC Client Connectivity

Cluster nodes can be configured to use either IPv4 or IPv6 based IP addresses for the Virtual IPs (VIP) on the public network, while more than one public network can be defined for the cluster. Database clients and applications can connect to either IPv4 or IPv6 VIP addresses. The Single Client Access Name (SCAN) listener automatically redirects client connects to the appropriate database listener within a given subnet considering the IP protocol requested by the client. SCAN listeners can be defined for each subnet in the cluster.

IPv6 based IP addresses have become the latest standard for the information technology infrastructure in today's data centers. With this release, Oracle RAC and Oracle Grid Infrastructure support this standard for client connectivity.

 
         

支持基於IPv6的IP地址以實現Oracle RAC客戶端連接

可以將群集節點配置為對公用網絡上的虛擬IP(VIP)使用基於IPv4或IPv6的IP地址,而可以為群集定義多個公用網絡。
數據庫客戶端和應用程序可以連接到IPv4或IPv6 VIP地址。單一客戶端訪問名稱(SCAN)偵聽器會根據客戶端請求的IP協議,
自動將客戶端連接重定向到給定子網內的相應數據庫偵聽器。
可以為群集中的每個子網定義SCAN偵聽器。
注意:這里沒用說私網,支持IPV6!!!

還是12.1 進一步說明 私網只允許IPV4!!!

https://docs.oracle.com/database/121/CWLIN/networks.htm#CIHCEIJH
5.4 IPv4 and IPv6 Protocol Requirements
Oracle Grid Infrastructure and Oracle RAC support the standard IPv6 address notations specified by RFC 2732 and global and site-local IPv6 addresses as defined by RFC 4193.

Cluster member node interfaces can be configured to use IPv4, IPv6, or both types of Internet protocol addresses. However, be aware of the following:

Configuring public VIPs: During installation, you can configure VIPs for a given public network as IPv4 or IPv6 types of addresses. You can configure an IPv6 cluster by selecting VIP and SCAN names that resolve to addresses in an IPv6 subnet for the cluster, and selecting that subnet as public during installation. After installation, you can also configure cluster member nodes with a mixture of IPv4 and IPv6 addresses.

If you install using static virtual IP (VIP) addresses in an IPv4 cluster, then the VIP names you supply during installation should resolve only to IPv4 addresses. If you install using static IPv6 addresses, then the VIP names you supply during installation should resolve only to IPv6 addresses.

During installation, you cannot configure the cluster with VIP and SCAN names that resolve to both IPv4 and IPv6 addresses. For example, you cannot configure VIPs and SCANS on some cluster member nodes to resolve to IPv4 addresses, and VIPs and SCANs on other cluster member nodes to resolve to IPv6 addresses. Oracle does not support this configuration.

Configuring private IP interfaces (interconnects): you must configure the private network as an IPv4 network. IPv6 addresses are not supported for the interconnect.

Redundant network interfaces: If you configure redundant network interfaces for a public or VIP node name, then configure both interfaces of a redundant pair to the same address protocol. Also ensure that private IP interfaces use the same IP protocol. Oracle does not support names using redundant interface configurations with mixed IP protocols. You must configure both network interfaces of a redundant pair with the same IP protocol.

GNS or Multi-cluster addresses: Oracle Grid Infrastructure supports IPv4 DHCP addresses, and IPv6 addresses configured with the Stateless Address Autoconfiguration protocol, as described in RFC 2462.

 

2.2 12.2官方文檔

疑問? 12.1 RAC不支持私網是IPV6?

12.2 開始支持RAC私網 IPV6。
IPv4 and IPv6 Protocol Requirements Oracle Grid Infrastructure and Oracle RAC support the standard IPv6 address notations specified by RFC 2732 and global and
site-local IPv6 addresses as defined by RFC 4193. Configuring Public VIPs Cluster member node interfaces can be configured to use IPv4, IPv6, or both types of Internet protocol addresses. During installation,
you can configure VIPs for a given public network as IPv4 or IPv6 types of addresses. You can configure an IPv6 cluster by selecting
VIP and SCAN names that resolve to addresses in an IPv6 subnet for the cluster, and selecting that subnet as public during installation.
After installation, you can also configure cluster member nodes with a mixture of IPv4 and IPv6 addresses. If you install using static virtual IP (VIP) addresses in an IPv4 cluster, then the VIP names you supply during installation
should resolve only to IPv4 addresses. If you install using static IPv6 addresses, then the VIP names you supply during installation
should resolve only to IPv6 addresses. During installation, you cannot configure the cluster with VIP and SCAN names that resolve to both IPv4 and IPv6 addresses.
You cannot configure VIPs and SCANS on some cluster member nodes to resolve to IPv4 addresses, and VIPs and SCANs on other cluster
member nodes to resolve to IPv6 addresses. Oracle does not support this configuration. Configuring Private IP Interfaces (Interconnects) You can configure the private network either as an IPv4 network or IPv6 network. Redundant Network Interfaces If you configure redundant network interfaces for a public or VIP node name, then configure both interfaces of a redundant pair
to the same address protocol. Also ensure that private IP interfaces use the same IP protocol. Oracle does not support names using
redundant interface configurations with mixed IP protocols. You must configure both network interfaces of a redundant pair with
the same IP protocol. GNS or Multi-Cluster Addresses Oracle Grid Infrastructure supports IPv4 DHCP addresses, and IPv6 addresses configured with the Stateless Address Autoconfiguration
protocol, as described in RFC 2462. Note:Link-local and site-local IPv6 addresses as defined in RFC 1884 are not supported. Parent topic: Configuring Networks for Oracle Grid Infrastructure and Oracle RAC

2.3 MOS 11.2.0.4 完全不支持IPV6???

疑問?   為什么說11g不支持ipv6,但是Oracle Grid可以正常安裝呢? 猜測IP地址是一個網段的,因此vip可以正常創建成功。 但是監聽資源看起來也是正常的,但是對於DBCA的時候,需要往集群RAC中注冊實例,需要使用vip進行注冊,由於網卡使用的是ipv6,因此某些配置解析層面不兼容導致Oracle Public 網卡不支持。

  觀察MOS 單實例可以進行修改滿足條件,RAC並未找到相關說明。

注意,如下MOS只是進一步說明Oracle 默認11g 監聽規則是Ipv4
以及Oracle 11g release 2 支持ipv6 進行客戶端登陸解析,12.1才真正支持RAC層面的連接。 Weblogic Server Fails to Start when Specifying IPV6 Address
in JDBC URL for RAC Datasource (Doc ID 2402429.1) SYMPTOMS WLS Server failing to start with invalid IP address when configuring the IPV6 address for the database in ONS section
of datasource. Issue not seen with IPV4 address. CAUSE Oracle Database 11g Release
2 supports IPv6 addressing for all features and components in single-instance mode,
and Oracle Database 12c Release 1 extends that to allow client connectivity over public networks to Oracle Real Application
Clusters (Oracle RAC). You are trying to use an 11g driver
/ons jar file with RAC and the statement makes it clear that it isn’t supported until 12.1. The 11.x ons jar file isn’t parsing the ONS string to handle IPV6 addresses (looking for the last colon to separate out
the port from the address string). Refer: http://www.oracle.com/technetwork/database/enterprise-edition/oracledatabaseipv6sod-4007245.pdf

如下是11.2.0.4 單實例DB創建成功后,可以參考如下,改造使用IPV6的方法! 但非RAC,改造並非本篇文檔重點,不詳細描述。
Enabling IPv6 on Oracle Database Enterprise Edition (Doc ID 783570.1)
Oracle Database - Standard Edition - Version 11.2.0.1 to 11.2.0.2.0 [Release 11.2]

PURPOSE
Introduction
IPv6 is designed with migration in mind. It is possible to run an Operating System with both IPv4 and IPv6 running at the same time. It is possible to configure the Oracle Database and Listener to use both IPv4 and IPv6, but this note covers how to setup the Oracle 11g Release 2 (11.2.0.0) software to use only IPv6 on a Linux system that has both IPv4 and IPv6 configured. The 11.2 release is the only one that supports the IPv6 protocol.

 

總結:
11.2 11gR2單實例支持ipv6,但是RAC是否支持未明確得到信息,但是如何使用IPV6暫時未查詢到信息;
12.1 RAC 公網public 支持ipv6,私網不支持
12.2 RAC 私網進一步加強,支持IPV6


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM