Você está na página 1de 38

Contents

a. Creating Connection from JDeveloper to SQL Server using WLS


Bundled Data Driver 1
b. Creating Connection from JDeveloper to Sybase 15 using WLS
Bundled Data Driver 6
c. Creating Connection from JDeveloper to Informix 11.5 using
IBM Informix JDBC Driver.......................................................................................... 12
d. Creating Connection from JDeveloper to DB2 9.7.2 using IBM
DB2 JDBC Driver 18
1. 2. Creating Data-Sources and Adapter Resource JNDIs from
Web Logic Console for Non-Oracle Databases 24
a. Creating Data Source Connection and Adapter Resource JNDI
from Weblogic Console to SQL Server using Type 4 Weblogic Driver ...................... 24
b. Creating Data Source Connection and Adapter Resource JNDI
from Web Logic Console to Sybase 15 using WLS Bundled Data Driver ................... 27
c. Creating Data Source Connection and Adapter Resource JNDI
from Web Logic Console to Informix 11.5 using IBM Informix JDBC Driver .......... 29
d. Creating Data Source Connection and Adapter Resource JNDI
from Web Logic Console to DB2 9.7.2 using DB2 JDBC Driver ............................... 33
2. 3. Database Connection Information 37
SQL Server 2008: ..................................................................................................... 37
Sybase: ...................................................................................................................... 37
Informix: ................................................................................................................... 38

b. Creating Connection from JDeveloper to SQL Server


using WLS Bundled Data Driver

1. Select Database Navigator and Click on the New Connection


2. Select Connection Type as “Generic JDBC”

3. Click on the New Button to Select the New Driver Class

4. Provide the value for Driver Class Driver Class:


weblogic.jdbc.sqlserver.SQLServerDriver
5. Click on the Browse button.

6. Click on New to create a New Library


7. Provide the Name for the Library. For Ex:
WeblogicSQLServerDriver

8. Click on Add entry and give the location of the wlsqlserver.jar


i.e <JDEV_HOME>\wlserver_10.3\server\lib\wlsqlserver.jar.

9. Click on “Ok”
10. Click on “Ok”

11. Provide the Values for Username, Password and the JDBC URL.
JDBC is in the format as given below

jdbc:weblogic:sqlserver://<host_name>:<port>;databaseName=<database_name>

12. Click on the Test Connection to check if the connection has been
Successful.
c. Creating Connection from JDeveloper to Sybase 15
using WLS Bundled Data Driver

1. Select Database Navigator and Click on the New Connection


2. Select Connection Type as “Generic JDBC”

3. Click on the New Button to Select the New Driver Class

4. Provide the value for Driver Class Driver Class:


weblogic.jdbc.sybase.SybaseDriver
5. Click on the Browse button.

6. Click on New to create a New Library


7. Provide the Name for the Library. For Ex: WeblogicSybase1

8. Click on Add entry and give the location of the wlsybase.jar i.e.
<JDEV_HOME>\wlserver_10.3\server\lib\wlsybase.jar.

9. Click on “Ok”
10. Click on “OK”

11. Provide the Values for Username, Password and the JDBC URL.
JDBC is in the format as given below:

jdbc:weblogic:sybase:// <host_name>:<port>;databaseName=<database_name>
12. Click on the Test Connection to check if the connection has been
Successful.
d. Creating Connection from JDeveloper to Informix 11.5
using IBM Informix JDBC Driver

1. Download the Informix JDBC Driver V3.0 from the IBM site:

JDBC 3.00.JC3

Extract the tar file into a directory. Install the driver by running
"java -cp <directory>/setup.jar run" from the command line and
follow the on screen instructions

2. Select Database Navigator and Click on the New Connection


3. Select Connection Type as “Generic JDBC”

4. Click on the New Button to Select the New Driver Class

5. Provide the value for Driver Class Driver Class:


com.informix.jdbc.IfxDriver
6. Click on the Browse button.

7. Click on New to create a New Library


8. Provide the Name for the Library. For Ex: InformixDriver1

9. Click on Add entry and give the location of the ifxjdbc.jar i.e
<JAR_Install_Location>\ifxjdbc.jar

10. Click on “Ok”


11. Click on “Ok”

12. Provide the Values for Username, Password and the JDBC URL.
JDBC is in the format as given below

jdbc:informix-sqli://
<host_name>:<port>/<database_name>:INFORMIXSERVER=<server_name>
13. Click on the Test Connection to check if the connection has been
Successful.
e. Creating Connection from JDeveloper to DB2 9.7.2
using IBM DB2 JDBC Driver

1. Copy the DB2 driver file db2jcc.jar from the DB2 installation to
a file directory accessible by JDeveloper.

2. Select Database Navigator and Click on the New Connection


3. Select Connection Type as “DB2 UDB”

4. Click on the New Button to Select the New Driver Class

5. Provide the value for Driver Class Driver Class:


com.ibm.db2.jcc.DB2Driver
6. Click on the Browse button.

7. Click on New to create a New Library


8. Provide the Name for the Library. For Ex: DB2Driver

9. Click on Add Entry and give the location of the db2jcc.jar i.e.
<JAR_Location>\db2jcc.jar

10. Click on “OK”


11. Click on “OK”

12. Provide the Values for Connection Name, Username, Password,


Server Name, Port, and Database Name:
13. Click on the Test Connection to check if the connection has been
Successful.
2. Creating Data-Sources and Adapter Resource
JNDIs from Web Logic Console for Non-Oracle
Databases

a. Creating Data Source Connection and Adapter


Resource JNDI from Weblogic Console to SQL Server
using Type 4 Weblogic Driver

1. Click on the New Button to Create a New DataSource.


2. Enter the values for
 Name of the Data source
 JNDI Name
 Select the Database Type as MS SQL Server
 Database Driver as Type 4 XA (only if the SQL Server is
configured for XA) else just Type 4.
Click Next

3. Click Next

4. Click Next and enter the Values for

 Database Name:
 Host Name:
 Port:
 Database User Name:
 Password:
5. Click Next. Click on Test Configuration to Test the Connection.

NOTE: In the New JNDI created for Database Adapter to use this XA resource,
please use the value of platformClassName as
oracle.toplink.platform.database.SQLServerPlatform
b. Creating Data Source Connection and Adapter
Resource JNDI from Web Logic Console to Sybase 15
using WLS Bundled Data Driver

1. Click on the New Button to Create a New DataSource.

2. Enter the values for


 Name of the Data source
 JNDI Name
 Select the Database Type as Sybase
 Database Driver as Type 4 or Type 4 XA. (only if the
Sybase Server is configured for XA)
Click Next

3. Click Next. Uncheck “Supports Global Transactions”


4. Click Next and enter the Values for

 Database Name:
 Host Name:
 Port:
 Database User Name:
 Password:

5. Click Next. Click on Test Configuration to Test the Connection.


NOTE: In the New JNDI created for Database Adapter to use this XA resource,
please use the value of platformClassName as
oracle.toplink.platform.database.SybasePlatform

c. Creating Data Source Connection and Adapter


Resource JNDI from Web Logic Console to Informix
11.5 using IBM Informix JDBC Driver

1. Copy the ifxjdbc.jar to

 <MW_Home>/user_projects/domains/<domain_name>/lib/if
xjdbc.jar
 <MW_Home>/wlserver_10.3/server/lib/ifxjdbc.jar
2. Update the WEBLOGIC_CLASSPATH in the
<MW_Home>/wlserver_10.3/common/bin/commEnv.sh as
shown

 ="${JAVA_HOME}/lib/tools.jar${CLASSPATHSEP}
${BEA_HOME}/utils/config/10.3/config-
launch.jar${CLASSPATHSEP}${WL_HOME}/server/
lib/weblogic_sp.jar${CLASSPATHSEP}${WL_HOM
E}/server/lib/weblogic.jar${CLASSPATHSEP}${FEA
TURES_DIR}/weblogic.server.modules_10.3.2.0.jar${
CLASSPATHSEP}${WL_HOME}/server/lib/webservi
ces.jar${CLASSPATHSEP}${ANT_HOME}/lib/ant-
all.jar${CLASSPATHSEP}${ANT_CONTRIB}/lib/ant
-
contrib.jar${CLASSPATHSEP}${WL_HOME}/serve
r/lib/ifxjdbc.jar"

 Re-start the Admin and Managed Servers

3. Click on the New Button to Create a New DataSource.

4. Enter the values for


 Name of the Data source
 JNDI Name
 Select the Database Type as Other
 Database Driver as Other
Click Next

5. Click Next. Uncheck “Supports Global Transactions”


6. Click Next and enter the Values for

 Database Name:
 Host Name:
 Port:
 Database User Name:
 Password:

7. Click Next. Enter


8. Driver Class: com.informix.jdbc.IfxDriver
9. URL: jdbc:informix-sqli://
<host_name>:<port>/<database_name>:INFORMIXSERVER=<
server_name>
 Properties:
o informixServer=
o user=
o portNumber=
o databaseName=
o serverName=
 Test Table Name:
o SQL SELECT COUNT(*) FROM SYSTABLES

10. Click on Test Configuration to Test the Connection.


NOTE: In the New JNDI created for Database Adapter to use this XA resource,
please use the value of platformClassName as
oracle.toplink.platform.database.InformixPlatform

d. Creating Data Source Connection and Adapter


Resource JNDI from Web Logic Console to DB2 9.7.2
using DB2 JDBC Driver

1. Click on the New Button to Create a New DataSource.

2. Enter the values for


 Name of the Data source
 JNDI Name
 Select the Database Type as DB2
Click Next
3. Select the driver *Oracle’s DB2 Driver (Type 4XA)
Versions:7.X and later
Click Next

4. There are no Transaction Options, just click Next


5. Enter the Values for

 Database Name:
 Host Name:
 Port:
 Database User Name:
 Password:

6. Click Next. All of the parameters on this screen should already


be correct:
7. Click on Test Configuration to Test the Connection.

NOTE: In the New JNDI created for Database Adapter to use this XA resource,
please use the value of platformClassName as
oracle.toplink.platform.database.DB2Platform

3. Database Connection Information

SQL Server 2008:

Vendor: Microsoft Corp.


Database: SQL Server
Version: SQL Server 2008
Host: test-2.us.oracle.com
-Connect String -
JDBC driver:
*com.microsoft.jdbc.sqlserver.SQLServerDriver* connection string/url is:
*jdbc:microsoft:sqlserver://stane03-2\SQLSERVER123:3228
*Using account: sa (pwd: welcome1)
Note: use sqljdbc4.jar for ovd db adapter (Specific to OVD Component only)

Sybase:

Vendor: Sybase
Database: Adaptive Server Enterprise version 15.0.2 Developer's Edition
Version : 15.0.2
Host: test-3.us.oracle.com
System Login: "adc\res" with password "trt"
VNC password: trt
DB Home: C:\sybase\home
Port: 5000

Informix:

Vendor: IBM
Database*: Informix Dynamic Server Developer Edition*
Version : 11.50
Host: test-3.us.oracle.com
System Login: "adc\res" with password "trt"
VNC password: trt
DBHome- C:\Program Files\IBM\IBM Informix Dynamic Server\11.50
Database Files- C:\IFMXDATA\ol_svr_orcl1
Server Name- ol_svr_orcl1
Service Name- svc_orcl1
Port- 9088
User- test-3\informix
passwd- welcome1

DB2:

Vendor: IBM
Database: DB2 Express-C 9.7.2 for Windows
Host: 10.141.167.16
Database uid/pw: db2admin/welcome1
Port: 50000
Database Name: SAMPLE
SID: db2c_DB2

Você também pode gostar