Databases Supported by the Oracle JDBC Driver

13-6 Oracle Complex Event Processing Administrators Guide wlConnection = ods.getConnection; connection = OracleConnection WLConnection wlConnection .getVendorConnection;

13.3 Configuring Access to a Database Using the Oracle JDBC Driver

The Oracle JDBC driver is automatically installed with Oracle CEP and ready to use. For more information, see Section 13.1.1, Oracle JDBC Driver . To configure access to a database using the Oracle JDBC driver: 1. Configure the data source in the servers config.xml file: a. To update the Oracle CEP server config.xml file using the Configuration Wizard, see Creating and Updating Oracle CEP Standalone-Server Domains in the Oracle Complex Event Processing Administrators Guide. b. To update the Oracle CEP server config.xml file manually, see Section 13.2.2, Custom Data Source Configuration. 2. If Oracle CEP is running, restart it so it reads the new data source information. For more information, see Section 1.5.4, Starting and Stopping Oracle CEP Servers .

13.4 Configuring Access to a Database Using the Type 4 JDBC Drivers from Data Direct

The type 4 JDBC drivers from DataDirect for SQL Server are automatically installed with Oracle CEP and ready to use. For more information, see Section 13.1.2, Type 4 JDBC Driver for SQL Server from DataDirect . To configure access to a database using the Type 4 JDBC drivers from Data Direct: 1. Configure the data source in the servers config.xml file: a. To update the Oracle CEP server config.xml file using the Configuration Wizard, see Creating and Updating Oracle CEP Standalone-Server Domains in the Oracle Complex Event Processing Administrators Guide. b. To update the Oracle CEP server config.xml file manually, see Section 13.2.2, Custom Data Source Configuration. Note: Be sure to close pooled connections when you are finished with them, and do not use a native connection object after the pooled connection has been closed. Note: The url element for the Oracle JDBC driver is of the form: urljdbc:oracle:thin:HOST:PORT:SIDurl Configuring JDBC for Oracle CEP 13-7 2. If Oracle CEP is running, restart it so it reads the new data source information. For more information, see Section 1.5.4, Starting and Stopping Oracle CEP Servers .

13.5 Configuring Access to a Different Database Driver or Driver Version

In some cases, you may need to use a different version of the Oracle Database driver or Data Direct drivers than the version bundled with Oracle CEP or you may need to use a database driver other than the Oracle Database driver or Data Direct drivers. This section describes the following: ■ Section 13.5.1, How to Access a Database Driver Using an Application Library Built With bundler.sh : this is the preferred method; you must create an OSGi bundle for your database driver. ■ Section 13.5.2, How to Access a Database Driver Using an Application Library Built With Oracle CEP IDE for Eclipse : this is the preferred method; you must create an OSGi bundle for your database driver. Use this option if you wish to manually configure the activator implementation. ■ Section 13.5.3, How to Access a Database Driver Using bootclasspath : this is an optional method; you do not need to create an OSGi bundle for your database driver.

13.5.1 How to Access a Database Driver Using an Application Library Built With bundler.sh

This procedure describes how to create an OSGi bundle for your driver using the bundler utility and deploy it on the Oracle CEP server. This is the preferred method. If wish to manually configure the activator implementation, see Section 13.5.2, How to Access a Database Driver Using an Application Library Built With Oracle CEP IDE for Eclipse . For more information, see Creating Application Libraries in the Oracle Complex Event Processing Developers Guide for Eclipse. To access a database driver using an application library built with bundler.sh: 1. Set up your environment as described in Setting Your Development Environment in the Oracle Complex Event Processing Getting Started. 2. Execute the bundler.sh script to create an OSGi bundle containing your driver. The bundler.sh script is located in the ORACLE_CEP_HOMEocep_11.1bin directory, where ORACLE_CEP_HOME is the directory in which you installed the Oracle CEP server. Example 13–2 lists the bundler.sh command line options and Table 13–1 describes them. Note: The url element for the type 4 JDBC drivers from DataDirect is of the form: urljdbc:weblogic:sqlserver:HOST:PORTurl