DB2 Version 10.1 for Linux, UNIX, and Windows

Application programming requirements for high availability for connections to DB2 for Linux, UNIX, and Windows servers

Failover for automatic client reroute can be seamless or non-seamless. If failover for connections to DB2® for Linux, UNIX, and Windows is not seamless, you need to add code to account for the errors that are returned when failover occurs.

If failover is non-seamless, and a connection is reestablished with the server, SQLCODE -4498 (for Java™ clients) or SQL30108N (for non-Java clients) is returned to the application. All work that occurred within the current transaction is rolled back. In the application, you need to:

The following conditions must be satisfied for failover for connections to DB2 for Linux, UNIX, and Windows to be seamless: