Overview of Clustered JDBC Resources Understanding JDBC Data Sources Types of WebLogic Server JDBC Data Sources

2-10 Oracle Fusion Middleware Configuring and Managing JDBC Data Sources for Oracle WebLogic Server

2.5 Overview of Clustered JDBC Resources

You can target or deploy JDBC resources to a cluster to improve the availability of cluster-hosted applications. For information about JDBC objects in a clustered environment, see JDBC Connections in Using Clusters for Oracle WebLogic Server. Multi data sources are supported for use in clusters. However, note that multi data sources can only use data sources in the same JVM. Multi data sources cannot use data sources from other cluster members. 3 Configuring JDBC Data Sources 3-1 3 Configuring JDBC Data Sources This section includes the following information: ■ Section 3.1, Understanding JDBC Data Sources ■ Section 3.2, Types of WebLogic Server JDBC Data Sources ■ Section 3.3, Creating a JDBC Data Source ■ Section 3.4, Configuring Connection Pool Features ■ Section 3.5, Configuring Oracle Parameters ■ Section 3.6, Configuring an ONS Client ■ Section 3.7, Tuning Generic Data Source Connection Pools ■ Section 3.8, Setting Database Security Credentials ■ Section 3.9, JDBC Data Source Factories Deprecated

3.1 Understanding JDBC Data Sources

In WebLogic Server, you configure database connectivity by adding data sources to your WebLogic domain. WebLogic JDBC data sources provide database access and database connection management. Each data source contains a pool of database connections that are created when the data source is created and at server startup. Applications reserve a database connection from the data source by looking up the data source on the JNDI tree or in the local application context and then calling getConnection . When finished with the connection, the application should call connection.close as early as possible, which returns the database connection to the pool for other applications to use.

3.2 Types of WebLogic Server JDBC Data Sources

WebLogic Server provides three types of data sources: ■ Generic Data Sources—Generic data sources and their connection pools provide connection management processes that help keep your system running efficiently.You can set options in the data source to suit your applications and your environment. ■ GridLink Data Sources—An event-based data source that adaptively responds to state changes in an Oracle RAC instance. See Section 4, Using GridLink Data Sources. 3-2 Oracle Fusion Middleware Configuring and Managing JDBC Data Sources for Oracle WebLogic Server ■ Multi data sources—A multi data source is an abstraction around a group of generic data sources that provides load balancing or failover processing. See Section 5, Configuring JDBC Multi Data Sources.

3.3 Creating a JDBC Data Source