Using a Microsoft SQL Server

9-70 Oracle Fusion Middleware Users Guide for Technology Adapters For information about the Informix JDBC driver, refer to the following link: http:www-01.ibm.comsoftwaredatainformixtoolsjdbc .

9.6.3.4 Using an IBM DB2 Database

This section includes the following topics: ■ Section 9.6.3.4.1, IBM DB2 Driver ■ Section 9.6.3.4.2, JT400 Driver AS400 DB2 ■ Section 9.6.3.4.3, IBM Universal Driver

9.6.3.4.1 IBM DB2 Driver URL: jdbc:db2:localhost:NAME

Driver Class: com.ibm.db2.jcc.DB2Driver Driver Jar v8.1: db2jcc.jar, db2jcc_javax.jar, db2jcc_license_cu.jar For information about DataDirect driver, refer to the following link: http:www.datadirect.comtechresjdbcproddocindex.ssp

9.6.3.4.2 JT400 Driver AS400 DB2 URL: jdbc:as400:hostname;translate

binary=true Driver Class: com.ibm.as400.access.AS400JDBCDriver Driver Jar: jt400.jar For correct character set translation, use translate binary=true.

9.6.3.4.3 IBM Universal Driver URL: jdbc:db2:hostname:portschemaname

Driver Class: com.ibm.db2.jcc.DB2Driver Driver Jar: db2jcc.jar, db2jcc4.jar and db2java.zip

9.6.3.5 Using a MySQL Database

Use the following information: URL: jdbc:mysql:hostname:3306dbname Driver Class: com.mysql.jdbc.Driver Driver Jar: mysql-connector-java-3.1.10-bin.jar

9.6.4 Location of JDBC Driver JAR Files and Setting the Class Path

This section describes the location of JDBC JAR files and setting the class path at run time and design time. Run Time For both Windows and Linux, you must perform the following steps: 1. Drop the vendor-specific driver JAR files to the user_ projectsdomainssoainfralib directory. 2. Drop the vendor-specific driver JAR files to the Weblogic_ Homeserverlib. 3. Edit the classpath to include the vendor-specific jar file in Weblogic_ HOMEcommonbincommEnv.sh Oracle JCA Adapter for Database 9-71 Design Time For both Windows and Linux, drop the JDBC JAR to the OracleMiddlewarejdeveloperjdevlibpatches directory.

9.7 Stored Procedure and Function Support

This section describes how the Oracle Database Adapter supports the use of stored procedures and functions. This section includes the following topics: ■ Section 9.7.1, Design Time: Using the Adapter Configuration Wizard ■ Section 9.7.2, Supported Third-Party Databases ■ Section 9.7.3, Design Time: Artifact Generation ■ Section 9.7.4, Run Time: Before Stored Procedure Invocation ■ Section 9.7.5, Run Time: After Stored Procedure Invocation ■ Section 9.7.6, Run Time: Common Third-Party Database Functionality ■ Section 9.7.7, Advanced Topics

9.7.1 Design Time: Using the Adapter Configuration Wizard

The Adapter Configuration Wizard – Stored Procedures is used to generate an adapter service WSDL and the necessary XSD. The adapter service WSDL encapsulates the underlying stored procedure or function as a Web service with a WSIF JCA binding. The XSD file describes the procedure or function, including all the parameters and their types. This XSD provides the definition used to create instance XML that is submitted to the Oracle Database Adapter at run time. This section includes the following topics: ■ Section 9.7.1.1, Using Top-Level Standalone APIs ■ Section 9.7.1.2, Using Packaged APIs and Overloading

9.7.1.1 Using Top-Level Standalone APIs

This section describes how to use the Adapter Configuration Wizard with APIs that are not defined in PLSQL packages. You use the Adapter Configuration Wizard – Stored Procedures to select a procedure or function and generate the XSD file. See Section 9.8, Oracle Database Adapter Use Cases if you are not familiar with how to start the Adapter Configuration Wizard. The following are the steps to select a stored procedure or function by using the Adapter Configuration Wizard:

1. Drag and drop Database Adapter from the Service Adapters list to the Exposed

Services swim lane in the composite.xml page. The Adapter Configuration Wizard is displayed, as shown in Figure 9–29 .