Try OpenEdge Now
skip to main content
SQL Development
JDBC Client : Introduction to the JDBC client : Internet Protocol Support
 

Internet Protocol Support

The JDBC driver accepts network addresses in both IPv6 and IPv4 formats. The International Engineering Task Force defines the format of IPv6 addresses at http://tools.ietf.org/html/rfc4291#section-2.2.
The driver accepts an IPv6 address in both the server name portion of the connection URL and as a value for the server name data source property. The driver also accepts a host name which resolves to an IPv6 address and connects to the resolved IPv6 address. When specifying an IPv6 address in the connection URL, the address must be enclosed in square brackets. This notation, specified in RFC 3986 "Format for Literal IPv6 Addresses in URLs", allows the driver to distinguish between the IPv6 address and the port number to connect to at that address. For example the following connection URL specifies that the driver is to connect port 1433 at the IPv6 address 2001:0db8:85a3:08d3:1319:8a2e:0370:7344:
jdbc:datadirect:openedge:// [2001:0db8:85a3:08d3:1319:8a2e:0370:7344]:1433
Additionally, the OpenEdge JDBC driver supports mixed mode operation. A driver running on an IPv6 client can connect to a server with an IPv4 address and a driver running on an IPv4 client can connect to a server with an IPv6 address provided the addresses are suitable for mixed mode operations.
IPv6 addresses will be supported when connecting to Release 10.1C databases or later. To support Ipv6 addresses, the OpenEdge 10.1C JDBC driver must be running in J2SE 1.4 or later for Solaris and Linux platforms and must be running in J2SE 5.0 or later for Windows platforms.
The SQLDump, SQLLoad, and SQLSchema utilities and ESQLC clients should enclose IPv6 addresses in brackets when they are specified on a connection URL. For example, when specifying the IPv6 address of localhost:
progress:T:[::]:2800:mydb