Book Image

Oracle WebLogic Server 12c Advanced Administration Cookbook

By : Dalton Iwazaki
Book Image

Oracle WebLogic Server 12c Advanced Administration Cookbook

By: Dalton Iwazaki

Overview of this book

Table of Contents (15 chapters)
Oracle WebLogic Server 12c Advanced Administration Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a JDBC data source


Consider that the DBApp application is deployed on the PROD_Cluster cluster and requires a data source to connect to the database. The application looks for a non-XA data source with the Java Naming and Directory Interface (JNDI) as jdbc/ds-nonXA.

The database is an Oracle database that is running in the dbhost hostname and listening to the port 1521. The listener is accepting requests to the service name dbservice.

In this recipe, a new JDBC data source to connect to the Oracle database will be created and configured for the application DBApp.

Getting ready

The data source will be named ds-nonXA using the required JNDI jdbc/ds-nonXA. The target will be the cluster PROD_Cluster, the same target as that of the DBApp application. The database username is dbuser and the password is dbpwd.

How to do it...

Carry out the following steps to create a JDBC data source:

  1. Access the Administration Console with your web browser at http://adminhost.domain.local:7001/console.

  2. Click...