Can the JDBC Thin Driver Do Failover by Specifying FAILOVER_MODE?

Can the JDBC Thin Driver Do Failover by Specifying FAILOVER_MODE?
 文档 ID: 465423.1类型: HOWTO
 上次修订日期: 27-APR-2009状态: PUBLISHED

In this Document
  Goal
  Solution
  References


Applies to:

JDBC - Version: 10.2 to 11.1
Information in this document applies to any platform.

Goal

You have a 2-node RAC database. You ask if the JDBC Thin driver can do failover when using the following connect information.

jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = rac1vip)(PORT = 1525)) (ADDRESS = (PROTOCOL = TCP)(HOST = rac2vip)(PORT = 1525)) (LOAD_BALANCE = on)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ractest) (FAILOVER_MODE = (TYPE = SELECT) (METHOD = BASIC) (RETRIES = 2) (DELAY = 1))))

Solution

No. JDBC Thin cannot use FAILOVER_MODE. The failover defined by FAILOVER_MODE is Transparent Application Failover (TAF). JDBC Thin does not support TAF.
However JDBC Thin does support Fast Connection Failover (FCF).

Some references are:

[1]
The "Is failover supported?" question in the JDBC Frequently Asked Questions (FAQ)
at http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq_0.htm

[2]
Oracle Database JDBC Developer's Guide and Reference, 10g Release 2 (10.2)
at http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm
Chapter 27 Fast Connection Failover
Chapter 28 Transparent Application Failover

[3]
Note 433827.1 How To Verify And Test Fast Connection Failover Setup From a JDBC Thin Client

[4]
The "Oracle Real Application Clusters Sample Code" page
at http://www.oracle.com/technology/sample_code/products/rac/index.html
link: **UPDATED** Step by Step Guide and Test Program for JDBC FCF [Nov 2006]
A step-by-step guide to help you set up Fast Connection Failover with JDBC. It also includes a
simple JDBC program that can be used to test your configuration and a sample java program to
subscribe to FAN events for troubleshooting your configuration.

References

Note 433827.1 - How To Verify And Test Fast Connection Failover (FCF) Setup From a JDBC Thin Client
http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm

Keywords

RAC; FAILOVER_MODE; JDBC~THIN;

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9252210/viewspace-691541/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/9252210/viewspace-691541/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值