19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Batch updates<br />

A batched update is a set of multiple update statements that are submitted to the database <strong>for</strong><br />

processing as a batch. Sending multiple update statements to the database together as a unit<br />

can, in some situations, be much more efficient than sending each update statement<br />

separately. It reduces the number of times the application has to cross over to the JDBC<br />

Driver. This ability to send updates as a unit, referred to as the batched update facility, is one<br />

of the features of the JDBC 2.0 API, and is now supported with the <strong>DB2</strong> Universal Driver.<br />

7.4 ODBC enhancements<br />

ODBC enhancements are mentioned <strong>for</strong> completeness.<br />

7.4.1 ODBC Unicode support<br />

ODBC now supports Unicode <strong>for</strong>mats UTF-8 and UCS-2. In addition, a new ODBC<br />

initialization keyword, CURRENTAPPENSCH, lets you specify the encoding scheme that you<br />

want the ODBC Driver to use <strong>for</strong> input and output of host variable data, SQL statements, and<br />

all character string arguments of the ODBC application programming interfaces. You can<br />

specify Unicode, EBCDIC, or ASCII encoding scheme.<br />

7.4.2 ODBC long name support<br />

ODBC <strong>for</strong> z/<strong>OS</strong> has been enhanced to be able to support the long names in V8 new-function<br />

mode. This means changes to the following ODBC functions.<br />

Support <strong>for</strong> longer names in the INI file variables<br />

The keyword strings <strong>for</strong> the following initialization keywords will be extended to support longer<br />

names:<br />

► CLISCHEMA<br />

► COLLECTIONID<br />

► CURRENTFUNCTIONPATH<br />

► CURRENTSQLID<br />

► SCHEMALIST<br />

► SYSSCHEMA<br />

ODBC catalog functions<br />

As a result of the name changes in the catalog, the ODBC catalog API needs to change the<br />

lengths of the host variables and data types in the SQLDA when fetching result sets from<br />

catalog tables. However, most of these changes are transparent to the external API. Only the<br />

data type of the REMARKS column returned by SQLColumns() and SQLTables() is changed<br />

to VARCHAR(762).<br />

7.4.3 ODBC connection authentication<br />

With V7, the <strong>DB2</strong> ODBC Driver validates the user ID and password, but their argument values<br />

are not used <strong>for</strong> end user authentication. <strong>DB2</strong> V8 implements the RACF verification support<br />

<strong>for</strong> USER/USING SQL CONNECT statement, and the ODBC Driver makes use of the user ID<br />

and password values provided on the APIs to per<strong>for</strong>m authentication.<br />

306 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!