This is in continuation of my last post on Database Connectivity (JDBC) in WebLogic Server here , In today’s post I am going to cover step by step JDBC configuration using Administration Console.
1. Login to WebLogic Server Administration console (default port 7001)
http://hostname:port/console
2. Select Data Sources under JDBC in Services section
.

.
3. Click on New button on right side as shown above
4. Enter JDBC Name, JNDI Name, Database & Driver type as shown below
.
.
5. In next screen, enter database connection pool details i.e.
– Database Name
– Host Name (on which database is running)
– PortNumber (on which database listener is listening)
– Database User Name
&
– Password (for database user)
.
6. In next screen you test connection by clicking on “Test Configuration” as shown below
.
.
7.Finally you select target servers (Administration and Managed Server in that domain) for that Datasource.
.
8. On clicking Finish button, you should see datasource as listed below
.
To create Multi Datasource
Steps mentioned above are to create single Datasource. To create Multi Datasource first create two or more Datasource as mentioned above (I created JDBC1 & JDBC2) then select Multi Datasources from console as shown below
.
.
2. Click on New button above, In next screen select Name of Multi Datasource and JNDI
.
.
3. Select Algorithm Typefor Multi Datasource i.e. Failover or Load Balancing
4. Select Datasource which you want to make part of Multi Datasource as shown below
.
.
5. Finally click on Finish to see Multi Data Sources
JDBC tuning in WebLogic and lot more coming soon…
Related Posts for Learn WebLogic with Us
- Oracle WebLogic Installation Steps
- Domain , Administration & Managed Server, Cluster in Oracle WebLogic
- Create Domain in Oracle WebLogic
- Oracle WebLogic Server - Startup/Shutdown
- Oracle WebLogic Server 10g R3 10.3 is out now
- Deploy Application on Oracle WebLogic Server
- Cluster Architecture : Oracle WebLogic Server
- Start WebLogic Server on Linux on port 80, 443 <= 1024
- JDBC (Java DataBase Connectivity ) in Oracle WebLogic - Overview
- WebLogic Server JDBC for Database connection : Step by Step
- Security in Oracle WebLogic : Realm, Security Provider, Authentication, Authorization, Users
- Deploy ADF application to Oracle WebLogic Server
- Node Manager in Oracle WebLogic Server
- Configure Oracle HTTP Server infront of Oracle WebLogic Server mod_wl_ohs
- How to install weblogic server on 64 bit O.S. (Linux /Solaris) ?
- Oracle WebLogic Login Issue : Password is not correct (Password Lock Policy)
- Oracle WebLogic Server : Node Manager in nutshell
- Certification : 1Z0-108 Oracle WebLogic Server 10g System Administrator Certified Expert
- How to integrate WebLogic with Oracle Internet Directory for Login : Authentication
- opatch, adpatch and now “smart update” (BSU) to apply weblogic patches
- Disater Recovery documentation for Oracle WebLogic Server 11g (Fusion Middleware)
- Authentication Providers in #WebLogic - Oracle Access Manager Identity Assertion for Single Sign-On and OAM Authenticator
- Error while starting WebLogic Server : java.lang.NumberFormatException: null
- #WebLogic startup prompting from username password : boot.properties
Popularity: 11% [?]














Good hands-on exercises (installation, patching, cloning), very experienced trainer worth every penny
8 users commented in " WebLogic Server JDBC for Database connection : Step by Step "
Follow-up comment rss or Leave a TrackbackThank you for this good summary.
I believe there is one critical limitation you did not mention. While you can deploy an application with an ID using the deployer role, surprisingly it requires an admin role to create the associated JDBC conenction pools (and Datasources). Have you found a way around it?
Hi Atul,
A nice intro on data source configuration. thank you, by the way we are facing one problem from OC4J time, i.e. changing password of data source user mandates server restart, is it possible to get ride of this.
I tried Datasource -> Control
Shutdown/ Start but still no hope.
Thanks
Arunachalam.C
Lead Consultant BPEL
Emaar Business Park, Building 3, Level 4
IT Department,
PO Box 9440,
Dubai, United Arab Emirates
Direct tel: + 971 4 3673878
Mobile: + 971 507882908
Hi Atul,
This is good doc. Thanks for taking efforts to put this together.
I have a question:
I am trying to to connect from OmniPortlet to SQL Server database. I think, I have to register the database driver in provider.xml .
But when I search for this file, I see many provider.xml files in middleware home. The doc says modify the file from “OmniPortlet_WAR_DIRECTORY/WEB-INF/providers/omniPortlet” directory. Do you know exactly which provider.xml to modify. I am looking for exact file location on windows server.
Thanks for your time.
Hi Atul,
I installed Weblogic, but i don’t see Teradata in the drop down list of databases. Is there any workaround to connect teradata database.
Thanks
Aj
@ Aj,
You would need teradat related jar files in classpath. Check steps here
http://www.teradata.com/DownloadCenter/Topic9448-98-1.aspx#beawl10.3
Hi Atul,
My final goal of connecting teradata from weblogic was to install OBIEE11g. What are the next steps to follow for successfull installation of 11g. When i run the RCU utility i have only three options for databases(Oracle/Sql Server/DB2). Is there any work around to get Teradata as the drop down option in RCU utility tool.
@ Ajit,
I don’t think Teradata is certified with RCU check this page for RCU certification http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-requirements-100147.html#CHDJGECA
Contact Oracle Support if you need Tearadata as repository
Atul,
Thanks for your response. I know that RCU doesn’t support Teradata. I thought there might be some workaround to connect to Teradata.
May be i need to wait for next release when Oracle will be gracious enough to support all databases rather just 3.
Once again thanks for yours response.
Ajit
Leave A Reply