AlternateServers
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
A list of alternate database servers that is used to failover new or lost connections, depending on the failover method selected. See the FailoverMode property for information about choosing a failover method.
Valid Values
(servername1[:port1][;DatabaseName=value]][,servername2[:port2]
[;DatabaseName=value]]...)
The server name (servername1, servername2, and so on)
is required for each alternate server entry. Port number (port1,
port2, and so on) and connection properties
(property=value) are optional for each alternate server entry. If the
port is unspecified, the port number of the primary server is used. If the port is
unspecified, the port number of the primary server is used.
The driver only allows one optional connection property, DatabaseName.
Example
The following URL contains alternate server entries for server2 and server3. The alternate server entries contain the optional DatabaseName property.
jdbc:datadirect:sybase://server1:4100;DatabaseName=TEST;User=test;
Password=secret;AlternateServers=(server2:4100;DatabaseName=TEST2,
server3:4100;DatabaseName=TEST3)
Default
None
Data Type
String