Appendix B. JDBC Data Source Configuration Examples

Table of Contents

B.1. Overview
B.2. Oracle Thin (Type4) Configuration Example
B.2.1. Oracle Thin Connection Pool Data Source
B.2.2. Oracle Thin XA Data Source
B.2.3. Configuring java.util.Properties File with Oracle ASO
B.3. Oracle OCI (Type2) Configuration Example
B.3.1. Oracle OCI Connection Pool Data Source
B.4. DB2 Configuration Example
B.4.1. DB2 Type4 (JCC) Connection Pool Data Source
B.4.2. DB2 Type4 (JCC) XA Data Source
B.4.3. DB2 Type2 (JCC) XA Data Source
B.5. Sybase Configuration Example
B.5.1. Sybase jConnect 5.x Connection Pool Data Source
B.5.2. Sybase jConnect 6.x XA Data Source
B.6. MSSQL Configuration Example
B.6.1. MSSQL 2005 Connection Pool Data Source
B.7. Informix Configuration Example
B.7.1. Informix Connection Pool Data Source
B.8. Tibero Configuration Example
B.8.1. Tibero Connection Pool Data Source
B.9. MySQL 5.x Configuration Example
B.9.1. MySQL Connector/J Connection Pool Data Source

This appendix provides examples of configuring data sources of major database vendors.

B.1. Overview

Configurations of the following JDBC data sources are shown in the examples of this appendix.

  • Oracle Thin

  • Oracle OCI

  • DB2 Type4 (JCC)

  • DB2 Type2 (JCC)

  • Sybase jConnect 5.x, 6.x

  • MSSQL 2005 Type4

  • Informix Type4

  • Tibero Type4

  • MySQL 5.x Type4

This appendix can be used to configure data sources in WebAdmin. Refer to "6.4. Data Source Configuration" for information about how to configure a data source in WebAdmin.

B.2. Oracle Thin (Type4) Configuration Example

B.2.1. Oracle Thin Connection Pool Data Source

The following screenshots show how to configure an Oracle Thin connection pool data source in WebAdmin.

[Figure B.1] Configuring an Oracle Thin Connection Pool Data Source (1)

Configuring an Oracle Thin Connection Pool Data Source (1)


[Figure B.2] Configuring an Oracle Thin Connection Pool Data Source (2)

Configuring an Oracle Thin Connection Pool Data Source (2)


B.2.2. Oracle Thin XA Data Source

The following screenshots show how to configure an Oracle Thin XA data source in WebAdmin.

[Figure B.3] Configuring an Oracle Thin XA Data Source (1)

Configuring an Oracle Thin XA Data Source (1)


[Figure B.4] Configuring an Oracle Thin XA Data Source (2)

Configuring an Oracle Thin XA Data Source (2)


B.2.3. Configuring java.util.Properties File with Oracle ASO

This section describes how to configure java.util.Properties with Oracle ASO.

Using the <property> element, set <type> to java.util.Properties and <value> as follows:

 [property name 1]=[value 1], [property name 2]=[value 2]

[Example B.1] <<domain.xml>>

<domain>
    . . .
    <resources>
        <data-source>
            <database>
                <data-source-id>oracle_CPDS1</data-source-id>
                <export-name>oracle_CPDS1</export-name>
                <data-source-class-name>
                    oracle.jdbc.pool.OracleConnectionPoolDataSource
                </data-source-class-name>
                <data-source-type>
                    ConnectionPoolDataSource
                </data-source-type>
                <vendor>oracle</vendor>
                <server-name>192.168.1.2</server-name>
                <port-number>1521</port-number>
                <database-name>ora9</database-name>
                <user>scott</user>
                <password>tiger</password>
                <property>
                    <name>driverType</name>
                    <type>java.lang.String</type>
                    <value>thin</value>
                </property>
                <property>
                    <name>ConnectionProperties</name>
                    <type>java.util.Properties</type>
                    <value>
                        oracle.net.encryption_client=xxxx,
                        oracle.net.encryption_types_client=(3DES168,3DES112),
                        oracle.net.crypto_checksum_client=xxxx,
                        oracle.net.crypto_checksum_types_client=(MD5)
                    </value>
                </property>
                <connection-pool>
                    . . .
                </connection-pool>
            </database>
        . . .
        </data-source>
    . . .
    </resources>
</domain>


B.3. Oracle OCI (Type2) Configuration Example

B.3.1. Oracle OCI Connection Pool Data Source

To use the Oracle OCI driver, configure the driver's native library path by using the '-Djava.library.path' option when starting JEUS.

[Figure B.5] Configuring an Oracle OCI Connection Pool Data Source (1)

Configuring an Oracle OCI Connection Pool Data Source (1)


[Figure B.6] Configuring an Oracle OCI Connection Pool Data Source (2)

Configuring an Oracle OCI Connection Pool Data Source (2)


B.4. DB2 Configuration Example

B.4.1. DB2 Type4 (JCC) Connection Pool Data Source

The following screenshots show how to configure a DB2 Type4 connection pool data source in WebAdmin.

[Figure B.7] Configuring a DB2 Type4 Connection Pool Data Source (1)

Configuring a DB2 Type4 Connection Pool Data Source (1)


[Figure B.8] Configuring a DB2 Type4 Connection Pool Data Source (2)

Configuring a DB2 Type4 Connection Pool Data Source (2)


B.4.2. DB2 Type4 (JCC) XA Data Source

The following screenshots show how to configure a DB2 Type4 XA data source.

[Figure B.9] Configuring a DB2 Type4 XA Data Source (1)

Configuring a DB2 Type4 XA Data Source (1)


[Figure B.10] Configuring a DB2 Type4 XA Data Source (2)

Configuring a DB2 Type4 XA Data Source (2)


B.4.3. DB2 Type2 (JCC) XA Data Source

To use a DB2 Type 2 driver, configure the native library path of the DB2 client in the system library path, or use the '-Djava.library.path' option when starting JEUS after installing the DB2 client and configuring the DB Alias. The following example shows that the database name is the DB Alias, and the server address and port number of DB2 are not needed.

[Figure B.11] Configuring a DB2 Type2 XA Data Source (1)

Configuring a DB2 Type2 XA Data Source (1)


[Figure B.12] Configuring a DB2 Type2 XA Data Source (2)

Configuring a DB2 Type2 XA Data Source (2)


B.5. Sybase Configuration Example

B.5.1. Sybase jConnect 5.x Connection Pool Data Source

The following screenshots show how to configure a Sybase jConnect 5.x connection pool data source in WebAdmin.

[Figure B.13] Configuring a Sybase jConnect 5.x Connection Pool Data Source (1)

Configuring a Sybase jConnect 5.x Connection Pool Data Source (1)


[Figure B.14] Configuring a Sybase jConnect 5.x Connection Pool Data Source (2)

Configuring a Sybase jConnect 5.x Connection Pool Data Source (2)


B.5.2. Sybase jConnect 6.x XA Data Source

The following screenshots show how to configure a Sybase jConnect 6.x XA data source in WebAdmin.

[Figure B.15] Configuring a Sybase jConnect 6.x XA Data Source (1)

Configuring a Sybase jConnect 6.x XA Data Source (1)


[Figure B.16] Configuring a Sybase jConnect 6.x XA Data Source (2)

Configuring a Sybase jConnect 6.x XA Data Source (2)


B.6. MSSQL Configuration Example

B.6.1. MSSQL 2005 Connection Pool Data Source

The following screenshots show how to configure an MSSQL 2005 connection pool in WebAdmin.

[Figure B.17] Configuring an MSSQL 2005 Connection Pool Data Source (1)

Configuring an MSSQL 2005 Connection Pool Data Source (1)


[Figure B.18] Configuring an MSSQL 2005 Connection Pool Data Source (2)

Configuring an MSSQL 2005 Connection Pool Data Source (2)


Note

ODBC must be configured before configuring JDBC.

B.7. Informix Configuration Example

B.7.1. Informix Connection Pool Data Source

The following screenshots show how to configure an Informix connection pool data source in WebAdmin.

[Figure B.19] Configuring an Informix Connection Pool Data Source (1)

Configuring an Informix Connection Pool Data Source (1)


[Figure B.20] Configuring an Informix Connection Pool Data Source (2)

Configuring an Informix Connection Pool Data Source (2)


B.8. Tibero Configuration Example

B.8.1. Tibero Connection Pool Data Source

The following screenshots show how to configure a Tibero connection pool data source in WebAdmin.

[Figure B.21] Configuring a Tibero Connection Pool Data Source (1)

Configuring a Tibero Connection Pool Data Source (1)


[Figure B.22] Configuring a Tibero Connection Pool Data Source (2)

Configuring a Tibero Connection Pool Data Source (2)


B.9. MySQL 5.x Configuration Example

B.9.1. MySQL Connector/J Connection Pool Data Source

The following screenshots show how to configure a MySQL Connector/J connection pool data source in WebAdmin.

[Figure B.23] Configuring a MySQL Connector/J Connection Pool Data Source (1)

Configuring a MySQL Connector/J Connection Pool Data Source (1)


[Figure B.24] Configuring a MySQL Connector/J Connection Pool Data Source (2)

Configuring a MySQL Connector/J Connection Pool Data Source (2)