HCL OneDB support for IPv6 addresses
On all platforms, HCL OneDB™ recognizes Internet Protocol Version 6 (IPv6) addresses, which are 128 bits long, and Internet Protocol Version 4 (IPv4) addresses, which are 32 bits long.
Beginning with HCL OneDB 10.00.xC4 and Client SDK 2.90.xC4, the database server checks, on startup, whether IPv6 is supported in the underlying operating system. If IPv6 is supported it is used. If the underlying operating system does not support IPv6, the IPv4 address is used. HCL OneDB and Client SDK retrieve the IP address from the name service.
- Create aliases (using the DBSERVERALIASES configuration parameter) and assign an IPv6 address to one of them and an IPv4 address to the other.
- Instruct the HCL
OneDB to
listen on all the IP addresses configured on the host by using a wild-carded
hostname in the sqlhosts file.For example:
Starting with HCL OneDB Version 10.0, the host name entry in the SQLHOSTS file maps to an IPv6 address if the host has a configured IPv6 address. If the host does not have a configured IPv6 address, the hostname entry maps to an IPv4 address.#dbservername nettype hostname servicename options olserver1 onsoctcp *myhost onservice1
Disabling IPv6 Support
HCL OneDB also provides a way to disable IPv6 support when working in IPv4 environments.
- Create an empty file $ONEDB_HOME/etc/IFX_DISABLE_IPV6.
To disable IPv6 support for a single database instance or for a single client application:
- On the database server instance, or on the workstation on which
applications are run, create an environment variable named IFX_DISABLE_IPV6 and
set its value to yes, as in:
IFX_DISABLE_IPV6=yes