Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer Data access resources > Administer data access applications > Configure a JDBC provider and data source
Create a data source that uses the Oracle JDBC Driver for OCI
We can use the Oracle JDBC for OCI with v8.0 of the Application Server. To create a data source in the Application Server that takes advantage of the Oracle Call Interface (OCI), you might want to use the Oracle JDBC OCI driver. This JDBC provider can be configured with the Application Server.
Procedure
- From the admin console, create the JDBC provider.
- Click Resources, expand JDBC, and click JDBC Providers.
- Select the scope for the JDBC Provider. The scope can be set to a cell, node, or server level.
- Click New to create the JDBC Provider.
- Configure the settings for the JDBC provider.
- Select Oracle for the database type on the Step 1: Create new JDBC provider panel.
- Select Oracle JDBC Driver for the provider type on the Step 1: Create new JDBC provider panel.
- Select Connection pool data source or XA data source for the implementation type on the Step 1: Create new JDBC provider panel.
- Specify a name and, optionally, a description, for the JDBC provider on the Step 1: Create new JDBC provider panel.
- Click Next.
- Specify a directory location for the ojdbc6.jar JAR file on the Step 2: Enter database class path information panel.
Application Server variables can be used in the class path or the native library path. For example, you can use variables like ${ORACLE_JDBC_DRIVER_PATH} and ${ORACLE_HOME} in the paths for the class path and native library path, but define the variables ORACLE_JDBC_DRIVER_PATH and ORACLE_HOME to the Application Server. Define or change the paths for these variables in the administrative console by clicking Environment > Manage WebSphere Variables.
Enter ${ORACLE_HOME}/lib where ORACLE_HOME is configured to the location in which Oracle Network client is installed. bprac
- Click Next.
- Review the configuration on the Summary panel and click Finish. If change the configuration, select the new configuration on the next panel, make your changes, and click Apply.
- Create the data source in Application Server.
- Click Resources, expand JDBC, and click JDBC Providers > provider_name .
- Under Additional Properties, click Data sources > New .
- Specify the name for the data source on the Step 1: Enter basic data source information panel.
- Specify the JNDI name for the data source on the Step 1: Enter basic data source information panel.
- Click Next.
- Specify the URL of the database from which the data source obtains connections. Specify this information about the Step 2: Enter database-specific properties for the data source panel.
For a thin driver:
jdbc:oracle:thin:@//mySystem:1521/sampleFor a thick driver:
jdbc:oracle:oci:@sample
- Select the name of the data store helper class that corresponds to the type of JDBC provider that you configured. Select this information about the Step 2: Enter database-specific properties for the data source panel.
- Click Next.
- Optional: Specify the values for the associated security aliases.
- Click Next.
- Review the configuration on the Summary panel and click Finish. If change the configuration, select the new configuration on the next panel, make your changes, and click Apply.
- Save the configuration.
Related
Data source minimum required settings for Oracle