Oracle RAC Failover with WebLogic Server JDBC Clients

4-8 Oracle Fusion Middleware High Availability Guide

4. Select the Set XA Transaction Timeout checkbox. You must select this checkbox for

the new XA transaction timeout value to take effect.

5. Click Save.

Repeat this configuration for all individual data sources of an XA multi data source.

4.1.4 Oracle RAC Failover with WebLogic Server

Although Oracle RAC offers JDBC connect-time failover features, for most configurations, Oracle recommends using WebLogic JDBC multi data sources to manage failover. Connect-time failover does not provide the ability to pre-create connections to alternate Oracle RAC nodes, however, multi data sources have multiple connections available at all times to manage failover. For more information see Using Multi Data Sources with Oracle RAC .

4.1.5 JDBC Clients

Java J2SE-based Oracle Fusion Middleware components are optimized to work with the high availability features of Oracle RAC. The components can be deployed to use both the Oracle thin JDBC driver, or the OCI based JDBC drivers. The JDBC Thin client is a pure Java, Type IV driver. It is lightweight and easy to install. It provides high performance, comparable to the performance provided by the JDBC Oracle Call Interface OCI driver. The JDBC Thin driver communicates with the server using TTC, a protocol developed by Oracle to access data from Oracle database. The driver allows a direct connection to the database by providing an implementation of TCPIP that implements Oracle Net and TTC on top of Java sockets. The JDBC OCI client is a Type II driver and provides connections to JDBC clients over the Oracle Net. It uses the client side installation of Oracle Net and a deployment can customize behavior using Oracle Net configuration on the middle tier. Oracle Virtual Directory When used with database adapters, Oracle Virtual Directory connects to a database, and the connections are not pooled. For details about configuring database adapters for Oracle RAC, see Creating Database Adapters in the Oracle Fusion Middleware Administrators Guide for Oracle Virtual Directory. Database URL To configure an Oracle Virtual Directory database adapter for an Oracle RAC database using the Oracle Directory Services Manager:

1. In the Connection screen, select Use Custom URL from the URL Type list.

2. In the Database URL field, enter the URL to connect to the Oracle RAC database;,

for example: JDBC Thin jdbc:oracle:thin:DESCRIPTION=ADDRESS_LIST=LOAD_ BALANCE=ONADDRESS=PROTOCOL=TCPHOST=host-name-1PORT=1521ADDRESS= PROTOCOL=TCPHOST=host-name-2PORT=1521CONNECT_ DATA=SERVER=DEDICATEDSERVICE_NAME=database-service-name Note: These JDBC clients are used as part of standalone Java J2SE programs. Considerations for High Availability Oracle Database Access 4-9 JDBC OCI jdbc:oracle:oci:DESCRIPTION=ADDRESS_LIST=LOAD_ BALANCE=ONADDRESS=PROTOCOL=TCPHOST=host-name-1PORT=1521ADDRESS= PROTOCOL=TCPHOST=host-name-2PORT=1521CONNECT_ DATA=SERVER=DEDICATEDSERVICE_NAME=database-service-name Connection Timeout Configuration To configure the connection timeout for an Oracle RAC database using the Oracle Directory Services Manager:

1. In the Connection screen, for JDBC Thin, specify the database adapter parameter

oracleNetConnectTimeout for the timeout parameter in seconds. 2. For JDBC OCI, specify TCP.CONNECT_TIMEOUT=n in the sqlnet.ora in ORACLE_INSTANCEconfig directory.

4.1.6 System Clients