今天测试TAF发 JDBC-THIN 不支持TAF
查询发现在Doc ID 297490.1有明确说明
JDBC - Version
10.2.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 30-July-2013***
Is Transparent Application Failover (TAF) supported on the latest JDBC Thin Driver?
The Oracle JDBC thin driver does not support TAF. TAF is only supported by the JDBC OCI driver.
Refer to the documentation listed below.
Transparent Application Failover (TAF) is a feature of the Java Database Connectivity (JDBC) Oracle Call Interface (OCI) driver. It enables the application to automatically reconnect to a database, if the database instance to which the connection is made fails. In this case, the active transactions roll back.
instance to which a connection is established fails or is shutdown, the connection
on the client side becomes stale and would throw exceptions to the caller
trying to use it. TAF enables the application to transparently reconnect to a
preconfigured secondary instance creating a fresh connection, but identical to
the connection that was established on the first original instance. That is,
the connection properties are the same as that of the earlier connection. This
is true regardless of how the connection was lost.
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/15747463/viewspace-1095501/，如需转载，请注明出处，否则将追究法律责任。