Terms Used Supported Third-Party Databases

Oracle JCA Adapter for Database 9-83 Besides, the data types mentioned in the preceding table, alias data types are also supported. Alias data types are created by using the sp_addtype database engine stored procedure or the CREATE TYPE Transact-SQL statement only for SQL Server 2005. Note that the use of the Transact-SQL statement is the preferred method for creating alias data types. The use of sp_addtype is being deprecated.

9.7.2.2.2 DB2 Data Types

Table 9–14 lists the supported data types for DB2 SQL stored procedures: Note that the names of other data types are also supported implicitly. For example, NUMERIC is equivalent to DECIMAL as is DEC and NUM as well. IBM DB2 supports structured data types user-defined. However, there is no support for these types in the JDBC drivers. Consequently, a structured data type may not be used as the data type of a parameter in a stored procedure. IBM DB2 also supports user-defined functions. The adapter, however, does not support these functions. In the Adapter Configuration Wizard, stored procedures are grouped by database user. Note that a schema in IBM DB2 is equivalent to a schema in Oracle. Both represent the name of a database user. FLOAT REAL float INT int SMALLINT short TINYINT unsignedByte Table 9–14 Data Types for DB2 SQL Stored Procedures SQL Data Type XML Schema Type BIGINT long BLOB CHAR FOR BIT DATA VARCHAR FOR BIT DATA base64Binary CHARACTER CLOB VARCHAR string DATE TIME TIMESTAMP dateTime DECIMAL decimal DOUBLE double INTEGER int REAL float SMALLINT short Table 9–13 Cont. Data Types for SQL Server Stored Procedures and Functions SQL Data Type XML Schema Type 9-84 Oracle Fusion Middleware Users Guide for Technology Adapters For IBM DB2, Default Schema refers to the current database user. Click Default Schema to select a different database user. The stored procedures in the Browse page are those that the database user created in the database specified as database in the JDBC Connection URL. The Adapter Configuration Wizard does not support changing to a different database. Select the stored procedure in the Stored Procedures dialog, as shown in Figure 9–43 . The arguments are shown in the Arguments tab. Click Search to find database stored procedures that the user created in the specified database. For example, d or D would both find the DEMO stored procedure. Clicking Show All reveals all of the procedures that the current user created in the specified database. Figure 9–43 The Stored Procedures Dialog You can view the source code of the stored procedure by clicking the Source tab, as shown in Figure 9–44 .