ITPub博客

首页 > 数据库 > Oracle > TAF 与JDBC

TAF 与JDBC

原创 Oracle 作者:renjixinchina 时间:2014-02-27 17:50:35 0 删除 编辑


今天测试TAF JDBC-THIN 支持TAF

 查询发现在Doc ID 297490.1有明确说明

APPLIES TO:

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?

说明: http://blog.itpub.net/kindeditor/themes/common/anchor.gifSOLUTION

The Oracle JDBC thin driver does not support TAF. TAF is only supported by the JDBC OCI driver. 

Refer to the documentation listed below.

Oracle Database JDBC Developer's Guide and Reference 10g Release 2 (10.2)

Oracle Database JDBC Developer's Guide and Reference, 11g Release 1 (11.1)

Oracle? Database JDBC Developer's Guide 11g Release 2 (11.2)

 

Transparent Application Failover

Overview

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.

When an 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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-01-30

  • 博文量
    373
  • 访问量
    2061327