Administration Console Online Help
[Attributes and Console Screen Reference for JDBC]
In the JDBC area of the Administration Console, you can configure and monitor JDBC components, including connection pools, MultiPools, and data sources. The following sections provide guidelines for configuring and managing database connectivity through the JDBC components for both local and distributed transactions:
Using the Administration Console, you create the JDBC components—connection pools, data sources, and MultiPools—by specifying attributes and database properties and then deploy them to servers and clusters by selecting targets.
Figure 111-1 JDBC Components in WebLogic Server
First you create the connection pools (and optionally, MultiPools) and deploy them to servers and clusters, then you create the data sourceswhich are bound to the JNDI tree, and deploy the data sources to the same servers and clusters. When you create a data source object, you specify a connection pool or MultiPool as one of the data source attributes. This associates that data source with one specific connection pool or MultiPool ("pool").
When you target (deploy) data sources and connection pools, you should target the data source and its related connection pool to the same servers and clusters. Some common scenarios are as follows:
You can target data source/connection pool combinations to more than one server or cluster, but they must be targeted in combination. For example, you cannot target a data source to Managed Server A if its associated connection pool is assigned only to Managed Server B.
WebLogic Server allows you to cluster JDBC objects, including data sources, connection pools, and MultiPools, to improve the availability of cluster-hosted applications. Each JDBC object you configure for your cluster must exist on each managed server in the cluster—when you configure the JDBC objects, target them to the cluster.
For information about JDBC objects in a clustered environment, see "JDBC Connections" in Using WebLogic Server Clusters.
See Application-Scoped JDBC Data Sources and Connection Pools.
To set up JDBC connectivity, you configure connection pools, data sources (always recommended, but optional in some cases), and MultiPools (optional) by defining attributes in the Administration Console or, for dynamic connection pools, in application code or at the command line.
There are three types of transaction scenarios:
You configure data sources, connection pools, and MultiPools according to the way transactions are handled in your system. The following table summarizes how to configure these objects for use in the three transaction scenarios:
Data source object |
Requires data source with Honor Global Transactions selected (Tx Data Source in the |
Requires data source with Honor Global Transactions selected (Tx Data Source in the Select Emulate Two-Phase Commit for non-XA Driver (set |
|
Requires data source object when configuring in the Administration Console. |
Requires data source with Honor Global Transactions selected (Tx Data Source in the |
Requires data source with Honor Global Transactions selected (Tx Data Source in the |
|
Note: For distributed transactions, use an XA-compliant driver, such as the WebLogic jDriver for Oracle/XA, which is the XA compliant version of the WebLogic jDriver for Oracle.
The Administration Console provides an interface to the tools that allow you to configure and manage WebLogic Server features, including JDBC (Java database connectivity). For most JDBC administrative functions, which include creating, managing and monitoring connectivity, systems administrators use the Administration Console or the command-line interface. Application developers may want to use the JDBC API or the WebLogic Management API.
Frequently performed tasks to set and manage connectivity include:
Your primary way to set and manage JDBC connectivity is through the Administration Console. In addition to setting connectivity, the Administration Console allows you to manage and monitor established connectivity.
You can also create connection pools, data sources, and MultiPools with the administration command line or in application code. For details, see Commands for Managing JDBC Connection Pools in the WebLogic Server Command Reference and see Programming WebLogic JDBC.
The JDBC drivers, used in local and distributed transactions, interface with many WebLogic Server components and information appears in several documents. For example, information about JDBC drivers is included in the documentation sets for JDBC, JTA, and WebLogic jDrivers.
The following sections list Related Topics resources for JDBC, JTA, and Administration:
config.xml
), see the WebLogic Server Configuration Reference GuideThe following documentation is written primarily for application developers. Systems Administrators may want to read the introductory material as a supplement to the material in this document.
The following documentation is written primarily for application developers. Systems Administrators may want to read the following as supplements to the material in this section.