ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahh_5.4.0.1/jdbcenhancev5r4.htm

100 lines
6.8 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Enhancements to IBM Toolbox for Java JDBC support for V5R4" />
<meta name="abstract" content="Several JDBC functions were enhanced for i5/OS Version 5 Release 4." />
<meta name="description" content="Several JDBC functions were enhanced for i5/OS Version 5 Release 4." />
<meta name="DC.Relation" scheme="URI" content="jdbc2.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="jdbcenhancev5r4" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Enhancements to IBM Toolbox for Java JDBC support for V5R4</title>
</head>
<body id="jdbcenhancev5r4"><a name="jdbcenhancev5r4"><!-- --></a>
<img src="./delta.gif" alt="Start of change" /><!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Enhancements to IBM Toolbox for Java JDBC support for V5R4</h1>
<div><p>Several JDBC functions were enhanced for i5/OS™ Version 5 Release 4.</p>
<div class="section">Enhanced JDBC functions for i5/OS Version 5 Release 4 include:<ul><li><a href="#jdbcenhancev5r4__statementsize">2 MB statement size</a></li>
<li><a href="#jdbcenhancev5r4__longcolumnname">128 byte column name support</a></li>
<li><a href="#jdbcenhancev5r4__hosttrace">Database host server trace support</a></li>
<li><a href="#jdbcenhancev5r4__ewlmcorrelator">eWLM Correlator support</a></li>
</ul>
<p>For information about enhanced JDBC functions for previous releases,
see <a href="jdbcenhance.htm#jdbcenhance">Enhancements to JDBC support for Version 5 Release 3</a> and <a href="rzahhjdbcenhancev5r2.htm#rzahhjdbcenhancev5r2">Enhanced JDBC functions for i5/OS Version 5 Release 2</a>.</p>
</div>
<div class="section" id="jdbcenhancev5r4__statementsize"><a name="jdbcenhancev5r4__statementsize"><!-- --></a><h4 class="sectiontitle">2 MB statement size</h4><p>Prior to
V5R4, the limit on SQL statement size was 65 535 bytes. This corresponds
to 65 535 characters when the statement text is represented using a single-byte
CCSID, and 32 767 characters when the statement text is represented using
a double-byte CCSID. Some customers, particularly those using applications
that automatically generate SQL statements, were affected by this limit.</p>
<p>In
V5R4, the iSeries™ statement
size limit has been increased to two megabytes, or 2 097 152 bytes.
The IBM<sup>®</sup> Toolbox
for Java™ JDBC
driver always sends statement text in two byte Unicode. Therefore, the maximum
statement length in characters will be one megabyte or 1 048 576
characters.</p>
</div>
<div class="section" id="jdbcenhancev5r4__longcolumnname"><a name="jdbcenhancev5r4__longcolumnname"><!-- --></a><h4 class="sectiontitle">128 byte column name support</h4><p>Starting
with V5R4, the database will support column names up to 128 bytes for SQL
tables. Prior to V5R4, column names up to 30 bytes were supported. The IBM Toolbox
for Java JDBC
driver will provide these possibly longer names to its users.</p>
<p>There
is one exception where 128 byte column names will not be returned. When local
package caching is used and column names exceed 30 characters, the server
will return the column names as the system column name.</p>
</div>
<div class="section" id="jdbcenhancev5r4__hosttrace"><a name="jdbcenhancev5r4__hosttrace"><!-- --></a><h4 class="sectiontitle">Database host server trace support</h4><p>A
new option was added to the Toolbox for Java JDBC driver to turn on database host
server tracing. To support this feature, option "64" was added to the "server
trace" connection property. For more details, see <a href="jdbcproperties.htm#jdbcproperties">IBM Toolbox for Java JDBC properties</a>.</p>
</div>
<div class="section" id="jdbcenhancev5r4__ewlmcorrelator"><a name="jdbcenhancev5r4__ewlmcorrelator"><!-- --></a><h4 class="sectiontitle">eWLM Correlator support</h4><p>The IBM Toolbox
for Java will
accept an IBM Enterprise
Workload Manager (eWLM) correlator and pass it on to the host as a connection
attribute correlator for use with the Application Response Measurement (ARM)
APIs. This correlator can be sent to the host at any time after a connection
is made using the following method in the AS400JDBCConnection class:</p>
<div class="p"><strong>setDB2eWLMCorrelator</strong><pre>public void setDB2eWLMCorrelator(byte[] bytes)
throws SQLException</pre>
</div>
<p>Sets the eWLM
Correlator. It is assumed a valid correlator value is used. If the value is
null, all ARM/eWLM implementation will be turned off. eWLM correlators require i5/OS V5R3
or later servers. This request is ignored when running to OS/400<sup>®</sup> V5R2
or earlier servers. </p>
<div class="p"><strong>Parameters</strong>:<ul><li><samp class="codeph">bytes</samp>: The eWLM correlator value</li>
<li><samp class="codeph">SQLException</samp>: See the <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/sql/SQLException.html" target="_blank">Class SQLException</a><img src="www.gif" alt="Link&#xA;outside Information Center" /> information at the Sun Microsystems,
Inc. Web site.</li>
</ul>
</div>
<p>For information about enhanced JDBC functions for previous releases,
see <a href="jdbcenhance.htm#jdbcenhance">Enhancements to JDBC support for Version 5 Release 3</a> and <a href="rzahhjdbcenhancev5r2.htm#rzahhjdbcenhancev5r2">Enhanced JDBC functions for i5/OS Version 5 Release 2</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="jdbc2.htm" title="JDBC is an application programming interface (API) included in the Java platform that enables Java programs to connect to a wide range of databases.">JDBC</a></div>
</div>
</div>
<img src="./deltaend.gif" alt="End of change" /></body>
</html>