My Oracle Support Banner

How to Configure a WebLogic JDBC DataSource and Use It in a Standalone JDBC Program Using JNDI (Doc ID 1600347.1)

Last updated on DECEMBER 14, 2018

Applies to:

JDBC - Version 11.2.0.1 and later
Oracle WebLogic Server - Version 10.3.6 and later
Oracle WebCenter Portal - Version 11.1.1.8.0 to 11.1.1.8.0 [Release 11g]
Information in this document applies to any platform.

Goal

 The purpose of this article is to provide a detailed step by step demonstration for the WebLogic novice on how to configure a JDBC connection as a data source and write a standalone Java program that will use the WebLogic JNDI service to look up the data source and obtain a JDBC connection.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 1.  Start your WebLogic instance 
 2. Open the Admin Console
 3. Create the Data Source
 4. Deploy the Data Source
 5.  Writing the Java Code
 6. Compiling the code ( Windows)
 7. Running the code ( Windows)
 8.  Which JDBC driver is being used when the JDBC connection is provided by the data source ?

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.