676 lines
30 KiB
HTML
676 lines
30 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="in SQL, limits, SQL (Structured Query Language),
|
|
identifier, identifiers, numeric, string, datetime, DataLink, database manager,
|
|
database manager limits" />
|
|
<title>SQL limits</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="limtabs"></a>
|
|
<h1 id="limtabs"><a href="rbafzmst02.htm#ToC_1485">Appendix A. SQL limits</a></h1><a id="idx3376" name="idx3376"></a><a id="idx3377" name="idx3377"></a><a id="idx3378" name="idx3378"></a><a id="idx3379" name="idx3379"></a>
|
|
<p>The following tables describe certain SQL and database limits imposed by
|
|
the DB2 UDB for iSeries database manager.</p>
|
|
<a name="wq1906"></a>
|
|
<div class="notetitle" id="wq1906">Note:</div>
|
|
<div class="notebody">
|
|
<ul>
|
|
<li>System storage limits may preclude the limits specified here. For example,
|
|
see <a href="rbafzmsthctabl.htm#maxrcd">Maximum row sizes</a>.</li>
|
|
<li>A limit of <var class="pv">storage</var> means that the limit is dependent on the amount
|
|
of storage available.</li>
|
|
<li>A limit of <var class="pv">statement</var> means that the limit is dependent on the
|
|
limit for the maximum length of a statement.</li></ul></div>
|
|
<a name="btable"></a>
|
|
<table id="btable" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 76. Identifier Length Limits</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1907" width="64%" align="left" valign="bottom">Identifier Limits</th>
|
|
<th id="wq1908" width="35%" align="left" valign="bottom">DB2 UDB for iSeries Limit</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest authorization name</td>
|
|
<td align="left" valign="top" headers="wq1908">10<sup class="fn"><a href="rbafzmstlimtabs.htm#authidln2">83</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest correlation name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest cursor name</td>
|
|
<td align="left" valign="top" headers="wq1908">18</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest descriptor name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest external program name (string form)</td>
|
|
<td align="left" valign="top" headers="wq1908">279<sup class="fn"><a href="rbafzmstlimtabs.htm#rexxl">84</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest external program name (unqualified
|
|
form)</td>
|
|
<td align="left" valign="top" headers="wq1908">10</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest host identifier<sup class="fn"><a href="rbafzmstlimtabs.htm#chid">85</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1908">64</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest package version-id</td>
|
|
<td align="left" valign="top" headers="wq1908">64</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest partition name</td>
|
|
<td align="left" valign="top" headers="wq1908">10</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest savepoint name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest schema name</td>
|
|
<td align="left" valign="top" headers="wq1908">10</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest server name</td>
|
|
<td align="left" valign="top" headers="wq1908">18</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest statement name</td>
|
|
<td align="left" valign="top" headers="wq1908">18</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest SQL condition name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest SQL label</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified alias name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified column name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified constraint name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified distinct type name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified function name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified index name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified nodegroup name</td>
|
|
<td align="left" valign="top" headers="wq1908">10</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified package name</td>
|
|
<td align="left" valign="top" headers="wq1908">10</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified procedure name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified sequence name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified specific name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified SQL parameter name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified SQL variable name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified system column name</td>
|
|
<td align="left" valign="top" headers="wq1908">10</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified system table, view, and
|
|
index name</td>
|
|
<td align="left" valign="top" headers="wq1908">10</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified table and view name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1907">Longest unqualified trigger name</td>
|
|
<td align="left" valign="top" headers="wq1908">128</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p> </p><a id="idx3380" name="idx3380"></a><a id="idx3381" name="idx3381"></a>
|
|
<a name="btable1"></a>
|
|
<table id="btable1" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 77. Numeric Limits</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1909" width="65%" align="left" valign="bottom">Numeric Limits</th>
|
|
<th id="wq1910" width="34%" align="left" valign="bottom">DB2 UDB for iSeries Limit</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Smallest SMALLINT value</td>
|
|
<td align="left" valign="top" headers="wq1910">-32 768</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Largest SMALLINT value</td>
|
|
<td align="left" valign="top" headers="wq1910">+32 767</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Smallest INTEGER value</td>
|
|
<td align="left" valign="top" headers="wq1910">-2 147 483 648</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Largest INTEGER value</td>
|
|
<td align="left" valign="top" headers="wq1910">+2 147 483 647</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Smallest BIGINT value</td>
|
|
<td align="left" valign="top" headers="wq1910">-9 223 372 036 854 775 808</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Largest BIGINT value</td>
|
|
<td align="left" valign="top" headers="wq1910">+9 223 372 036 854 775 807</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Largest decimal precision</td>
|
|
<td align="left" valign="top" headers="wq1910">63</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Smallest DOUBLE value<sup class="fn"><a href="rbafzmstlimtabs.htm#vapprox">86</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1910"> -1.79x10<sup>308</sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Largest DOUBLE value<sup class="fn"><a href="rbafzmstlimtabs.htm#vapprox">86</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1910"> +1.79x10<sup>308</sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Smallest positive DOUBLE value<sup class="fn"><a href="rbafzmstlimtabs.htm#vapprox">86</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1910"> +2.23x10<sup>-308</sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Largest negative DOUBLE value<sup class="fn"><a href="rbafzmstlimtabs.htm#vapprox">86</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1910">-2.23x10<sup>-308</sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Smallest REAL value<sup class="fn"><a href="rbafzmstlimtabs.htm#vapprox">86</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1910"> -3.4x10<sup>38</sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Largest REAL value<sup class="fn"><a href="rbafzmstlimtabs.htm#vapprox">86</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1910"> +3.4x10<sup>38</sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Smallest positive REAL value<sup class="fn"><a href="rbafzmstlimtabs.htm#vapprox">86</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1910"> +1.18x10<sup>-38</sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1909">Largest negative REAL value<sup class="fn"><a href="rbafzmstlimtabs.htm#vapprox">86</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1910"> -1.18x10<sup>-38</sup></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p> </p><a id="idx3382" name="idx3382"></a><a id="idx3383" name="idx3383"></a>
|
|
<a name="btable2"></a>
|
|
<table id="btable2" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 78. String Limits</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1911" width="65%" align="left" valign="bottom">String Limits</th>
|
|
<th id="wq1912" width="34%" align="left" valign="bottom">DB2 UDB for iSeries Limit</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of CHAR (in bytes)</td>
|
|
<td align="left" valign="top" headers="wq1912">32765<sup class="fn"><a href="rbafzmstlimtabs.htm#onemorenull">87</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of VARCHAR (in bytes)</td>
|
|
<td align="left" valign="top" headers="wq1912">32739<sup class="fn"><a href="rbafzmstlimtabs.htm#onemorenull">87</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of CLOB (in bytes)</td>
|
|
<td align="left" valign="top" headers="wq1912">2 147 483 647</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of GRAPHIC (in double-byte
|
|
characters)</td>
|
|
<td align="left" valign="top" headers="wq1912">16382<sup class="fn"><a href="rbafzmstlimtabs.htm#onemorenull">87</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of VARGRAPHIC (in double-byte
|
|
characters)</td>
|
|
<td align="left" valign="top" headers="wq1912">16369<sup class="fn"><a href="rbafzmstlimtabs.htm#onemorenull">87</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of DBCLOB (in double-byte
|
|
characters)</td>
|
|
<td align="left" valign="top" headers="wq1912">1 073 741 823</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of BINARY (in bytes)</td>
|
|
<td align="left" valign="top" headers="wq1912">32765<sup class="fn"><a href="rbafzmstlimtabs.htm#onemorenull">87</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of VARBINARY (in bytes)</td>
|
|
<td align="left" valign="top" headers="wq1912">32739<sup class="fn"><a href="rbafzmstlimtabs.htm#onemorenull">87</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of BLOB (in bytes)</td>
|
|
<td align="left" valign="top" headers="wq1912">2 147 483 647</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of character constant</td>
|
|
<td align="left" valign="top" headers="wq1912">32740</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of a graphic constant</td>
|
|
<td align="left" valign="top" headers="wq1912">16370</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of binary constant</td>
|
|
<td align="left" valign="top" headers="wq1912">32740</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of concatenated character
|
|
string</td>
|
|
<td align="left" valign="top" headers="wq1912">2 147 483 647</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of concatenated graphic string</td>
|
|
<td align="left" valign="top" headers="wq1912">1 073 741 823</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of concatenated binary string</td>
|
|
<td align="left" valign="top" headers="wq1912">2 147 483 647</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum number of hexadecimal constant digits</td>
|
|
<td align="left" valign="top" headers="wq1912">32 762</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of catalog comments</td>
|
|
<td align="left" valign="top" headers="wq1912">2000<sup class="fn"><a href="rbafzmstlimtabs.htm#seqless">88</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of column label</td>
|
|
<td align="left" valign="top" headers="wq1912">60</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Longest SQL routine label</td>
|
|
<td align="left" valign="top" headers="wq1912">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Longest table, package, or alias label</td>
|
|
<td align="left" valign="top" headers="wq1912">50</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of C NUL-terminated</td>
|
|
<td align="left" valign="top" headers="wq1912">32739<sup class="fn"><a href="rbafzmstlimtabs.htm#onemorenull">87</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1911">Maximum length of C NUL-terminated graphic</td>
|
|
<td align="left" valign="top" headers="wq1912">16369<sup class="fn"><a href="rbafzmstlimtabs.htm#onemorenull">87</a></sup></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p> </p><a id="idx3384" name="idx3384"></a><a id="idx3385" name="idx3385"></a>
|
|
<a name="btable3"></a>
|
|
<table id="btable3" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 79. Datetime Limits</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1913" width="65%" align="left" valign="bottom">Datetime Limits</th>
|
|
<th id="wq1914" width="34%" align="left" valign="bottom">DB2 UDB for iSeries Limit</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1913">Smallest DATE value</td>
|
|
<td align="left" valign="top" headers="wq1914">0001-01-01</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1913">Largest DATE value</td>
|
|
<td align="left" valign="top" headers="wq1914">9999-12-31</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1913">Smallest TIME value</td>
|
|
<td align="left" valign="top" headers="wq1914">00:00:00</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1913">Largest TIME value</td>
|
|
<td align="left" valign="top" headers="wq1914">24:00:00</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1913">Smallest TIMESTAMP value</td>
|
|
<td align="left" valign="top" headers="wq1914">0001-01-01-00.00.00.000000</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1913">Largest TIMESTAMP value</td>
|
|
<td align="left" valign="top" headers="wq1914">9999-12-31-24.00.00.000000</td>
|
|
</tr>
|
|
</tbody>
|
|
</table><a id="idx3386" name="idx3386"></a><a id="idx3387" name="idx3387"></a>
|
|
<a name="btable3b"></a>
|
|
<table id="btable3b" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 80. DataLink Limits</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1915" width="65%" align="left" valign="bottom">Datalink Limits</th>
|
|
<th id="wq1916" width="34%" align="left" valign="bottom">DB2 UDB for iSeries Limit</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1915">Maximum length of DATALINK</td>
|
|
<td align="left" valign="top" headers="wq1916">32718</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1915">Maximum length of DATALINK comment</td>
|
|
<td align="left" valign="top" headers="wq1916">254</td>
|
|
</tr>
|
|
</tbody>
|
|
</table><a id="idx3388" name="idx3388"></a><a id="idx3389" name="idx3389"></a>
|
|
<a name="dbmlimi"></a>
|
|
<table id="dbmlimi" width="100%" summary="" border="1" frame="hsides" rules="rows">
|
|
<caption>Table 81. Database Manager Limits</caption>
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq1917" width="64%" align="left" valign="bottom">Database Manager Limits</th>
|
|
<th id="wq1918" width="35%" align="left" valign="bottom">DB2 UDB for iSeries Limit</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most columns in a table</td>
|
|
<td align="left" valign="top" headers="wq1918">8000</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most columns in a view</td>
|
|
<td align="left" valign="top" headers="wq1918">8000</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum length of a row without LOBs including
|
|
all overhead</td>
|
|
<td align="left" valign="top" headers="wq1918">32766</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum length of a row with LOBs including
|
|
all overhead</td>
|
|
<td align="left" valign="top" headers="wq1918">3 758 096 383</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of parameters in a function</td>
|
|
<td align="left" valign="top" headers="wq1918">90</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of parameters in a procedure</td>
|
|
<td align="left" valign="top" headers="wq1918">1024<sup class="fn"><a href="rbafzmstlimtabs.htm#olyparam">89</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum size of a non-partitioned table</td>
|
|
<td align="left" valign="top" headers="wq1918">1.7 terabytes</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum size of an index</td>
|
|
<td align="left" valign="top" headers="wq1918">1 terabyte</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most rows in a non-partitioned table</td>
|
|
<td align="left" valign="top" headers="wq1918">4 294 967 288</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Longest index key</td>
|
|
<td align="left" valign="top" headers="wq1918">32768</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most columns in an index key</td>
|
|
<td align="left" valign="top" headers="wq1918">120</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most indexes on a table</td>
|
|
<td align="left" valign="top" headers="wq1918">approximately 4000</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most tables referenced in an SQL statement</td>
|
|
<td align="left" valign="top" headers="wq1918">1000<sup class="fn"><a href="rbafzmstlimtabs.htm#mbrs256">90</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most tables referenced in a view</td>
|
|
<td align="left" valign="top" headers="wq1918">256<sup class="fn"><a href="rbafzmstlimtabs.htm#mbrs256">90</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most host variable declarations in a precompiled
|
|
program</td>
|
|
<td align="left" valign="top" headers="wq1918">storage<sup class="fn"><a href="rbafzmstlimtabs.htm#olylim">91</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most host variables and constants in an SQL
|
|
statement</td>
|
|
<td align="left" valign="top" headers="wq1918">4096<sup class="fn"><a href="rbafzmstlimtabs.htm#olypar2">92</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Longest host variable used for insert or
|
|
update (in bytes)</td>
|
|
<td align="left" valign="top" headers="wq1918">2 147 483 647</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Longest SQL statement (in bytes)</td>
|
|
<td align="left" valign="top" headers="wq1918">2 097 152</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Longest CHECK constraint (in bytes)</td>
|
|
<td align="left" valign="top" headers="wq1918">statement</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most elements in a select list<sup class="fn"><a href="rbafzmstlimtabs.htm#olypar">93</a></sup></td>
|
|
<td align="left" valign="top" headers="wq1918">approximately 8000</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most predicates in a WHERE or HAVING clause</td>
|
|
<td align="left" valign="top" headers="wq1918">statement</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of columns in a GROUP BY clause</td>
|
|
<td align="left" valign="top" headers="wq1918">120</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum total length of columns in a GROUP
|
|
BY clause</td>
|
|
<td align="left" valign="top" headers="wq1918">32766</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of columns in an ORDER BY
|
|
clause</td>
|
|
<td align="left" valign="top" headers="wq1918">32766</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum total length of columns in an ORDER
|
|
BY clause</td>
|
|
<td align="left" valign="top" headers="wq1918">32766</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum size of an SQLDA</td>
|
|
<td align="left" valign="top" headers="wq1918">16 777 215</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of prepared statements</td>
|
|
<td align="left" valign="top" headers="wq1918">storage</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most declared cursors in a program</td>
|
|
<td align="left" valign="top" headers="wq1918">storage</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of cursors opened at one time</td>
|
|
<td align="left" valign="top" headers="wq1918">storage <sup class="fn"><a href="rbafzmstlimtabs.htm#openinjob">94</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Most tables in a relational database</td>
|
|
<td align="left" valign="top" headers="wq1918">storage</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of triggers on a table</td>
|
|
<td align="left" valign="top" headers="wq1918">300</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of nested trigger invocations</td>
|
|
<td align="left" valign="top" headers="wq1918">200</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum length of a password</td>
|
|
<td align="left" valign="top" headers="wq1918">128</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of constraints on a table</td>
|
|
<td align="left" valign="top" headers="wq1918">300</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum length of a path</td>
|
|
<td align="left" valign="top" headers="wq1918">3483<sup class="fn"><a href="rbafzmstlimtabs.htm#pathdrda">95</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of schemas in a path</td>
|
|
<td align="left" valign="top" headers="wq1918">268</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum length of a hint</td>
|
|
<td align="left" valign="top" headers="wq1918">32</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of objects in a schema</td>
|
|
<td align="left" valign="top" headers="wq1918">approximately 360 000</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum levels allowed for a subselect</td>
|
|
<td align="left" valign="top" headers="wq1918">256</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of rows changed in a unit
|
|
of work</td>
|
|
<td align="left" valign="top" headers="wq1918">500 000 000</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of locators in a transaction</td>
|
|
<td align="left" valign="top" headers="wq1918">16 000 000 <sup class="fn"><a href="rbafzmstlimtabs.htm#sqlsvrloc">96</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of savepoints active at one
|
|
time</td>
|
|
<td headers="wq1918">storage</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of simultaneously allocated
|
|
CLI handles in a process</td>
|
|
<td align="left" valign="top" headers="wq1918">160 000 <sup class="fn"><a href="rbafzmstlimtabs.htm#drdahandle">97</a></sup></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of nodes in a nodegroup</td>
|
|
<td align="left" valign="top" headers="wq1918">32</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum number of partitions in a partitioned
|
|
table</td>
|
|
<td align="left" valign="top" headers="wq1918">256</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" valign="top" headers="wq1917">Maximum size of a package</td>
|
|
<td align="left" valign="top" headers="wq1918">500 megabytes</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p> </p>
|
|
<p> </p>
|
|
<hr /><div class="fnnum"><a id="authidln2" name="authidln2">83</a>.</div>
|
|
<div class="fntext">As an application requester, DB2 UDB for iSeries can send an
|
|
authorization name of up to 255 bytes.</div><div class="fnnum"><a id="rexxl" name="rexxl">84</a>.</div>
|
|
<div class="fntext">For REXX procedures,
|
|
the limit is 33.</div><div class="fnnum"><a id="chid" name="chid">85</a>.</div>
|
|
<div class="fntext">For a C program, the limit is 128.</div><div class="fnnum"><a id="vapprox" name="vapprox">86</a>.</div>
|
|
<div class="fntext">The values shown are approximate.</div><div class="fnnum"><a id="onemorenull" name="onemorenull">87</a>.</div>
|
|
<div class="fntext">If the column is NOT NULL, the maximum is one
|
|
more.</div><div class="fnnum"><a id="seqless" name="seqless">88</a>.</div>
|
|
<div class="fntext">For sequences the limit is 500.</div><div class="fnnum"><a id="olyparam" name="olyparam">89</a>.</div>
|
|
<div class="fntext">SQL procedures are limited to 1024 parameters.
|
|
The number of parameters for external procedures depends on the PARAMETER
|
|
STYLE:
|
|
<ul>
|
|
<li>PARAMETER STYLE GENERAL has a maximum of 1024.</li>
|
|
<li>PARAMETER STYLE GENERAL WITH NULLS has a maximum of 1023.</li>
|
|
<li>PARAMETER STYLE SQL or PARAMETER STYLE DB2SQL has a maximum of 508.</li>
|
|
<li>PARAMETER STYLE JAVA or PARAMETER STYLE DB2GENERAL has a maximum of 90.</li></ul>The maximum number of parameters for external procedures is also limited
|
|
by the maximum number of parameters allowed by the licensed program used to
|
|
compile the external program.</div><div class="fnnum"><a id="mbrs256" name="mbrs256">90</a>.</div>
|
|
<div class="fntext">The maximum number of members
|
|
(and partitions) referenced is also 256.</div><div class="fnnum"><a id="olylim" name="olylim">91</a>.</div>
|
|
<div class="fntext">In RPG/400® and PL/I
|
|
programs when the old parameter passing technique is used, the limit is approximately
|
|
4000. The limit is based on the number of pointers allowed in the program.
|
|
In all other cases, the limit is based on operating system constraints.</div><div class="fnnum"><a id="olypar2" name="olypar2">92</a>.</div>
|
|
<div class="fntext">If the statement is not read-only, the limit is 2048. The limit
|
|
is approximate and may be less if very large string constants or string variables
|
|
are used.</div><div class="fnnum"><a id="olypar" name="olypar">93</a>.</div>
|
|
<div class="fntext">The limit is based on the size of internal structures
|
|
generated for the parsed SQL statement.</div><div class="fnnum"><a id="openinjob" name="openinjob">94</a>.</div>
|
|
<div class="fntext">The maximum number of cursors open at one time in a single job is approximately
|
|
21 754.</div><div class="fnnum"><a id="pathdrda" name="pathdrda">95</a>.</div>
|
|
<div class="fntext">The maximum length of a path in DRDA® is 255.</div><div class="fnnum"><a id="sqlsvrloc" name="sqlsvrloc">96</a>.</div>
|
|
<div class="fntext">The maximum number of locators in a transaction in SQL Server
|
|
mode is 209 000.</div><div class="fnnum"><a id="drdahandle" name="drdahandle">97</a>.</div>
|
|
<div class="fntext">The maximum number of allocated handles
|
|
per DRDA connection is 500.</div>
|
|
<br />
|
|
<hr /><br />
|
|
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstwhilestmt.htm">Previous Page</a> | <a href="rbafzmstdiftab.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>
|