Configuring access to JDBC data sources
Before you can use the JDBC connector, you must set up the driver configuration file. The connector uses this file to obtain information about the available JDBC drivers in your system.
Procedure
Example
This example shows how you can set up the driver configuration file.
Assume the following details:
- You want to use the JDBC connector with the following two JDBC drivers: JDBC 4.0 driver, Driver A and JDBC 3.0 driver, Driver B.
- Driver A is implemented as the /opt/productA/driverA.jar file, and Driver B is implemented as the/app/productB/driverBimpl.jar file.
- For Driver A, you determine that the name of the driver Java class is com.example.A.Driver, and for Driver B, you determine that the driver Java class name is com.example.DriverB.
To set up the driver configuration file, complete the
following actions:
- Create the isjdbc.config file and enter the
following two lines:
CLASSPATH=/opt/productA/driverA.jar;/app/productB/driverBimpl.jar CLASS_NAMES=com.example.A.Driver;com.example.DriverB
Note: The com.example.A.Driver value can be omitted from the CLASS_NAMES because the Driver A is a JDBC 4.0 driver, and for this driver the connector can automatically retrieve the driver class name from the driver JAR file. - Save the file on the InfoSphere Information Server engine tier host under the IS_HOME/Server/DSEngine directory , where IS_HOME is the InfoSphere Information Server home directory.