E Using Fast Connection Failover with Oracle RAC

This chapter provides information on how to use WebLogic server with Oracle Fast Connection Failover.

WebLogic Server supports Fast Connection Failover, an Oracle feature which provides an application-independent method to implement Oracle RAC event notifications, such as detection and cleanup of invalid connections, load balancing of available connections, and work redistribution on active Oracle RAC instances.

For more information, see "Fast Connection Failover" at http://download-east.oracle.com/docs/cd/B19306_01/java.102/b14355/fstconfo.htm#CIHJBFFC in the Oracle® Database JDBC Developer's Guide and Reference.

JDBC Driver Configuration for use with Oracle Fast Connection Failover

To enable Fast Connection Failover on a data source, set the following connection pool properties:

  • In Driver Class Name—set the class name to oracle.jdbc.pool.OracleDataSource.

  • In Properties—set the ONS configuration string to remotely subscribe the Oracle RAC nodes to Oracle FAN/ONS events. For example: ONSConfiguration=nodes=hostname1:port1,hostname2:port2


    Oracle's OracleDataSource class is not XA-capable, so the resulting data source does not implement a XA connection pool.

Because the Oracle driver uses ONS to implement Fast Connection Failover, you must add ons.jar to the WebLogic classpath. To do so, edit the setDomainEnv script in the domain's bin directory, and add ons.jar to the POST_CLASSPATH variable.