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 AUGUST 09, 2023

Applies to:

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


 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.


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
 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.