Oracle RAC (Real Application Clusters) is a high-availability solution for Oracle databases. But correctly configuring a JDBC datasource on WebLogic for RAC requires an understanding of both technologies.
Multi Data Source¶
WebLogic Multi Data Source wraps multiple Generic Data Sources — one for each RAC node. The load balancing algorithm distributes connections across nodes. Failover is automatic — when a node goes down, connections go to live nodes.
Fast Connection Failover¶
Oracle UCP (Universal Connection Pool) with FCF detects a dead RAC node within seconds (via ONS — Oracle Notification Service) and invalidates connections from the pool. Without FCF, the application only discovers the problem when it tries to use a stale connection — which can take minutes.
Connection Affinity¶
With RAC, you want transactions to run on a single node — cross-node communication is expensive. WebLogic with Oracle JDBC connection affinity routes connections for the same session to the same RAC node.
Sizing¶
The total number of connections across all Data Sources must not exceed the RAC cluster limit. Distribution: 50/50 for two nodes, or 70/30 if you have an active/passive configuration.
Lesson Learned¶
RAC + WebLogic = a powerful combination, but configuration is not trivial. Multi Data Source for HA, FCF for fast failover, connection affinity for performance. Test failover scenarios thoroughly.
Need help with implementation?
Our experts can help with design, implementation, and operations. From architecture to production.
Contact us