562 lines
26 KiB
HTML
562 lines
26 KiB
HTML
<?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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="dc.language" scheme="rfc1766" 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. -->
|
|
<meta name="dc.date" scheme="iso8601" content="2005-09-19" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<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="keywords" content="considerations for using,
|
|
distributed relational database,
|
|
use of extensions to IBM SQL on unlike application servers,
|
|
application requester, application server, differences, type 1 and type 2,
|
|
CONNECT, CONNECT differences, SQL statements, CONNECT statement,
|
|
distributed data" />
|
|
<title>Considerations for using distributed relational database</title>
|
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
|
</head>
|
|
<body>
|
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
|
|
|
|
|
<a name="diftab2"></a>
|
|
<h2 id="diftab2"><a href="rbafzmst02.htm#ToC_1489">Considerations for using distributed relational database</a></h2><a id="idx3398" name="idx3398"></a><a id="idx3399" name="idx3399"></a><a id="idx3400" name="idx3400"></a><a id="idx3401" name="idx3401"></a>
|
|
<p>This section contains information that may be useful in developing applications
|
|
that use application servers which are not the same product as their application requesters.</p>
|
|
<p>All DB2 Universal Database™ products support extensions to IBM® SQL.
|
|
Some of these extensions are product-specific, but many are already shared
|
|
by more than one product or support is planned but not yet generally available.</p>
|
|
<p>For the most part, an application can use the statements and clauses that
|
|
are supported by the database manager of the current server, even though that
|
|
application might be running through the application requester of a database
|
|
manager that does not support some of those statements and clauses. Restrictions
|
|
to this general rule are identified by application requester: </p>
|
|
<ul>
|
|
<li>for DB2 UDB for z/OS Application Server application requester, see <a href="rbafzmstdiftab2.htm#dif1">Table 84</a></li>
|
|
<li>for DB2 UDB for iSeries Application Server application requester, see<a href="rbafzmstdiftab2.htm#dif3">Table 85</a></li>
|
|
<li>for DB2 UDB LUW application requester, see <a href="rbafzmstdiftab2.htm#dif4">Table 86</a>.</li></ul>
|
|
<p>Note that an 'R' in the table indicates that this SQL function
|
|
is not supported in the specified environment. An 'R' in every column
|
|
of the same row means that the function is available only if the current server
|
|
and requester are the same product or that the statement is blocked by the
|
|
application requester from being processed at the application server.</p>
|
|
<a name="dif1"></a>
|
|
<table id="dif1" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 84. DB2 UDB for z/OS Application Requester</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1935" width="40%" align="left" valign="bottom">SQL Statement
|
|
or Function</th>
|
|
<th id="wq1936" width="20%" align="left" valign="bottom">DB2 UDB for z/OS Application Server</th>
|
|
<th id="wq1937" width="20%" align="left" valign="bottom">DB2 UDB for iSeries Application Server</th>
|
|
<th id="wq1938" width="20%" align="left" valign="bottom">DB2 UDB LUW Application Server</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">COMMIT HOLD</td>
|
|
<td align="center" valign="top" headers="wq1936">R</td>
|
|
<td align="center" valign="top" headers="wq1937">R</td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">DECLARE STATEMENT</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"></td>
|
|
<td align="center" valign="top" headers="wq1938"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">DECLARE TABLE</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"></td>
|
|
<td align="center" valign="top" headers="wq1938"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">DECLARE VARIABLE</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"></td>
|
|
<td align="center" valign="top" headers="wq1938"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">DESCRIBE TABLE</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"></td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">DESCRIBE with
|
|
USING clause</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"></td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">DISCONNECT</td>
|
|
<td align="center" valign="top" headers="wq1936">R</td>
|
|
<td align="center" valign="top" headers="wq1937">R</td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">BIGINT Data
|
|
Types</td>
|
|
<td align="center" valign="top" headers="wq1936">R</td>
|
|
<td align="center" valign="top" headers="wq1937"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif102">98</a></sup></td>
|
|
<td align="center" valign="top" headers="wq1938"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif102">98</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">ROWID Data
|
|
Types</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"></td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">DATALINK Data
|
|
Types</td>
|
|
<td align="center" valign="top" headers="wq1936">R</td>
|
|
<td align="center" valign="top" headers="wq1937">R</td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">BINARY and
|
|
VARBINARY Data Types</td>
|
|
<td align="center" valign="top" headers="wq1936">R</td>
|
|
<td align="center" valign="top" headers="wq1937">R</td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">Host declarations
|
|
not documented in language specific appendices</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif101">99</a></sup></td>
|
|
<td align="center" valign="top" headers="wq1938"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif101">99</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">PREPARE with
|
|
USING clause</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"></td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">ROLLBACK HOLD</td>
|
|
<td align="center" valign="top" headers="wq1936">R</td>
|
|
<td align="center" valign="top" headers="wq1937">R</td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">SET CURRENT
|
|
PACKAGESET</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"></td>
|
|
<td align="center" valign="top" headers="wq1938"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">SET variable</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937">R</td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">SET TRANSACTION</td>
|
|
<td align="center" valign="top" headers="wq1936">R</td>
|
|
<td align="center" valign="top" headers="wq1937">R</td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">Scrollable
|
|
Cursor statements</td>
|
|
<td align="center" valign="top" headers="wq1936">R</td>
|
|
<td align="center" valign="top" headers="wq1937">R</td>
|
|
<td align="center" valign="top" headers="wq1938">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1935">UPDATE cursor
|
|
- FOR UPDATE clause not specified</td>
|
|
<td align="center" valign="top" headers="wq1936"></td>
|
|
<td align="center" valign="top" headers="wq1937"></td>
|
|
<td align="center" valign="top" headers="wq1938"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table><a id="idx3402" name="idx3402"></a><a id="idx3403" name="idx3403"></a>
|
|
<a name="dif3"></a>
|
|
<table id="dif3" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 85. DB2 UDB for iSeries Application Requester</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1939" width="40%" align="left" valign="bottom">SQL Statement or Function</th>
|
|
<th id="wq1940" width="20%" align="left" valign="bottom">DB2 UDB for z/OS Application Server</th>
|
|
<th id="wq1941" width="20%" align="left" valign="bottom">DB2 UDB for iSeries Application Server</th>
|
|
<th id="wq1942" width="20%" align="left" valign="bottom">DB2 UDB LUW Application Server</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">COMMIT HOLD</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">DECLARE STATEMENT</td>
|
|
<td align="center" valign="top" headers="wq1940"></td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">DECLARE TABLE</td>
|
|
<td align="center" valign="top" headers="wq1940"></td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">DECLARE VARIABLE</td>
|
|
<td align="center" valign="top" headers="wq1940"></td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">DESCRIBE TABLE</td>
|
|
<td align="center" valign="top" headers="wq1940"></td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">DESCRIBE with USING clause</td>
|
|
<td align="center" valign="top" headers="wq1940"></td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">DISCONNECT</td>
|
|
<td align="center" valign="top" headers="wq1940"></td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">Host Variables - optional colon</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941">R</td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">BIGINT Data
|
|
Types</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">ROWID Data
|
|
Types</td>
|
|
<td align="center" valign="top" headers="wq1940"></td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">DATALINK Data
|
|
Types</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">BINARY and
|
|
VARBINARY Data Types</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">Host declarations not documented
|
|
in language specific appendices</td>
|
|
<td align="center" valign="top" headers="wq1940"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif101">99</a></sup></td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif101">99</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">PREPARE with USING clause</td>
|
|
<td align="center" valign="top" headers="wq1940"></td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">ROLLBACK HOLD</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">SET CURRENT PACKAGESET</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941">R</td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">SET variable</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941">R</td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">SET TRANSACTION</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">Scrollable Cursor statements</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1939">UPDATE cursor - FOR UPDATE clause not specified</td>
|
|
<td align="center" valign="top" headers="wq1940">R</td>
|
|
<td align="center" valign="top" headers="wq1941"></td>
|
|
<td align="center" valign="top" headers="wq1942"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table><a id="idx3404" name="idx3404"></a><a id="idx3405" name="idx3405"></a>
|
|
<a name="dif4"></a>
|
|
<table id="dif4" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 86. DB2 UDB LUW Application Requester</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1943" width="40%" align="left" valign="bottom">SQL Statement or Function</th>
|
|
<th id="wq1944" width="20%" align="left" valign="bottom">DB2 UDB for z/OS Application Server</th>
|
|
<th id="wq1945" width="20%" align="left" valign="bottom">DB2 UDB for iSeries Application Server</th>
|
|
<th id="wq1946" width="20%" align="left" valign="bottom">DB2 UDB LUW Application Server</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">COMMIT HOLD</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">DECLARE STATEMENT</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">DECLARE TABLE</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">DECLARE VARIABLE</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">DESCRIBE TABLE</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">DESCRIBE with USING clause</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">DISCONNECT</td>
|
|
<td align="center" valign="top" headers="wq1944"></td>
|
|
<td align="center" valign="top" headers="wq1945"></td>
|
|
<td align="center" valign="top" headers="wq1946"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">Host Variables - optional colon</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">BIGINT Data
|
|
Types</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945"></td>
|
|
<td align="center" valign="top" headers="wq1946"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">ROWID Data
|
|
Types</td>
|
|
<td align="center" valign="top" headers="wq1944"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif402">100</a></sup></td>
|
|
<td align="center" valign="top" headers="wq1945"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif402">100</a></sup></td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">DATALINK Data
|
|
Types</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">BINARY and
|
|
VARBINARY Data Types</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">Host declarations not documented
|
|
in language specific appendices</td>
|
|
<td align="center" valign="top" headers="wq1944"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif101">99</a></sup></td>
|
|
<td align="center" valign="top" headers="wq1945"><sup class="fn"><a href="rbafzmstdiftab2.htm#dif101">99</a></sup></td>
|
|
<td align="center" valign="top" headers="wq1946"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">PREPARE with USING clause</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">ROLLBACK HOLD</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">SET CURRENT PACKAGESET</td>
|
|
<td align="center" valign="top" headers="wq1944"></td>
|
|
<td align="center" valign="top" headers="wq1945"></td>
|
|
<td align="center" valign="top" headers="wq1946"></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">SET variable</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">SET TRANSACTION</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">Scrollable Cursor statements</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945">R</td>
|
|
<td align="center" valign="top" headers="wq1946">R</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1943">UPDATE cursor - FOR UPDATE clause not specified</td>
|
|
<td align="center" valign="top" headers="wq1944">R</td>
|
|
<td align="center" valign="top" headers="wq1945"></td>
|
|
<td align="center" valign="top" headers="wq1946"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table><a id="idx3406" name="idx3406"></a><a id="idx3407" name="idx3407"></a>
|
|
<a name="rcncdif"></a>
|
|
<h3 id="rcncdif"><a href="rbafzmst02.htm#ToC_1490">CONNECT (Type 1) and CONNECT (Type 2) differences</a></h3><a id="idx3408" name="idx3408"></a><a id="idx3409" name="idx3409"></a><a id="idx3410" name="idx3410"></a>
|
|
<p>There are two types of CONNECT statements. They have the same syntax, but
|
|
they have different semantics: </p>
|
|
<ul>
|
|
<li>CONNECT (Type 1) is used for remote unit of work. See <a href="rbafzmstch2drda.htm#cmrwj">Remote unit of work</a>.</li>
|
|
<li>CONNECT (Type 2) is used for distributed unit of work. See <a href="rbafzmstcon2t.htm#con2t">CONNECT (Type 2)</a>.</li></ul>
|
|
<p>The following table summarizes the differences between CONNECT (Type 1)
|
|
and CONNECT (Type 2) rules:</p>
|
|
<a name="rcnitbl"></a>
|
|
<table id="rcnitbl" width="100%" summary="" border="0" frame="void" rules="rows">
|
|
<caption>Table 87. CONNECT (Type 1) and CONNECT (Type 2) Differences</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1947" width="50%" align="left">Type 1 Rules</th>
|
|
<th id="wq1948" width="50%" align="left">Type 2 Rules</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td headers="wq1947">CONNECT statements can only be executed when the activation group is
|
|
in the connectable state. No more than one CONNECT statement can be executed
|
|
within the same unit of work.</td>
|
|
<td headers="wq1948">There are no rules about the connectable state. More than one CONNECT
|
|
statement can be executed within the same unit of work.</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq1947">If the CONNECT statement fails because the server name is not listed
|
|
in the local directory, the connection state of the activation group is unchanged.
|
|
<p>If a CONNECT statement fails because the activation group is not in the connectable
|
|
state, the SQL connection status of the activation group is unchanged.</p>
|
|
<p>If a CONNECT statement fails for any other reason, the activation group is
|
|
placed in the unconnected state.</p></td>
|
|
<td headers="wq1948">If a CONNECT statement fails, the current SQL connection is unchanged
|
|
and any subsequent SQL statements are executed by the current server.</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq1947">CONNECT ends all existing connections of the activation group. Accordingly,
|
|
CONNECT also closes any open cursors for that activation group.</td>
|
|
<td headers="wq1948">CONNECT does not end connections and does not close cursors.</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq1947">A CONNECT to the current server will succeed if the application group
|
|
is the connectable state.</td>
|
|
<td headers="wq1948">A CONNECT to an existing SQL connection of the activation group is
|
|
an error. Thus, a CONNECT to the current server is an error.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<a name="wq1949"></a>
|
|
<h4 id="wq1949">Determining the CONNECT rules that apply</h4>
|
|
<p>A program preparation option is used to specify the type of CONNECT that
|
|
will be performed by a program. The program preparation option is specified
|
|
using the RDBCNNMTH parameter on the CRTSQLxxx command.</p>
|
|
<a name="wq1950"></a>
|
|
<h4 id="wq1950">Connecting to servers that only support remote unit of work</h4>
|
|
<p>CONNECT (Type 2) connections to application servers that only support remote unit
|
|
of work might result in connections that are read-only.</p>
|
|
<p>If a CONNECT
|
|
(Type 2) is performed to an application server that only supports remote unit of work<sup class="fn"><a href="rbafzmstdiftab2.htm#fn002">101</a></sup>: </p>
|
|
<ul>
|
|
<li>The connection allows read-only operations if, at the time of the connect,
|
|
there are any dormant connections that allow updates. In this case, the connection
|
|
does not allow updates.</li>
|
|
<li>Otherwise, the connection allows updates.</li></ul>
|
|
<p>If a CONNECT (Type 2) is performed to an application server that supports distributed
|
|
unit of work: </p>
|
|
<ul>
|
|
<li>The connection allows read-only operations when there are dormant connections
|
|
that allow updates to application servers that only support remote unit of work.
|
|
In this case, the connection allows updates as soon as the dormant connection
|
|
is ended.</li>
|
|
<li>Otherwise, the connection allows updates.</li></ul>
|
|
<hr /><div class="fnnum"><a id="dif102" name="dif102">98</a>.</div>
|
|
<div class="fntext">The DB2 UDB for z/OS Application Server application requester will
|
|
process a BIGINT data type at the application server using the compatible
|
|
DECIMAL(19,0) data type.</div><div class="fnnum"><a id="dif101" name="dif101">99</a>.</div>
|
|
<div class="fntext">The statement is supported if the application requester understands
|
|
it.</div><div class="fnnum"><a id="dif402" name="dif402">100</a>.</div>
|
|
<div class="fntext">The DB2 UDB LUW application requester will process a ROWID data
|
|
type at the application server using the compatible VARCHAR(40) FOR BIT DATA
|
|
data type.</div><div class="fnnum"><a id="fn002" name="fn002">101</a>.</div>
|
|
<div class="fntext">DB2 UDB for iSeries using the initial DRDA® support for native TCP/IP is an example
|
|
of an application server that supports only remote unit of work.</div>
|
|
<br />
|
|
<hr /><br />
|
|
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstaccind.htm">Previous Page</a> | <a href="rbafzmstsqlcca.htm">Next Page</a> | <a href="rbafzmst02.htm#wq1">Contents</a> |
|
|
<a href="rbafzmstindex.htm#index">Index</a> ]
|
|
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|