AlternateServers
- Last Updated: March 1, 2022
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Informix 6.0
- Documentation
Purpose
Specifies 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][;property=value[;...]][,servername2[:port2]
[;property=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
number of the primary server is unspecified, the default port number of
2003 is used.
Optional connection properties are DatabaseName and InformixServer.
Example
The following URL contains alternate server entries for server2 and server3. The alternate server entries contain the optional InformixServer property.
jdbc:datadirect:informix://myserver1:2003;InformixServer=myinformixserver1;
DatabaseName=payroll;AlternateServers=(myserver2:2003;
InformixServer=myinformixserver2,myserver3:2003;InformixServer=myinformixserver3)
Data Source Methods
public String getAlternateServers()
public void
setAlternateServers(String)
Default
No default value
Data type
String