ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzajq_5.4.0.1/cpi4323.htm

129 lines
7.6 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 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="CPI4323 - The query access plan has been rebuilt" />
<meta name="DC.Relation" scheme="URI" content="pimes.htm" />
<meta name="DC.Relation" scheme="URI" content="cpi4351.htm" />
<meta name="DC.Relation" scheme="URI" content="cpi434c.htm" />
<meta name="DC.Relation" scheme="URI" content="cpi4351.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="cpi4323" />
<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>CPI4323 - The query access plan has been rebuilt</title>
</head>
<body id="cpi4323"><a name="cpi4323"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">CPI4323 - The query access plan has been rebuilt</h1>
<div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th colspan="2" align="center" valign="middle" id="d0e25">CPI4323</th>
</tr>
</thead>
<tbody><tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e25 ">Message Text:</td>
<td valign="middle" width="73.9795918367347%" headers="d0e25 ">The query access plan has been rebuilt.</td>
</tr>
<tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e25 ">Cause Text:</td>
<td valign="middle" width="73.9795918367347%" headers="d0e25 ">The access plan was rebuilt for reason code &amp;13. The reason codes
and their meanings follow: <ol><li>A file or member is not the same object as the one referred to in the
access plan. Some reasons include the object being re-created, restored, or
overridden to a new object.</li>
<li>Access plan was using a reusable Open Data Path (ODP), and the optimizer
chose to use a non-reusable ODP.</li>
<li>Access plan was using a non-reusable Open Data Path (ODP) and the optimizer
chose to use a reusable ODP</li>
<li>The number of records in member &amp;3 of file &amp;1 in library &amp;2
has changed by more than 10%.</li>
<li>A new access path exists over member &amp;6 of file &amp;4 in library &amp;5.</li>
<li>An access path over member &amp;9 of file &amp;7 in library &amp;8 that
was used for this access plan no longer exists or is no longer valid.</li>
<li> The query access plan had to be rebuilt because of system programming
changes. </li>
<li>The CCSID (Coded Character Set Identifier) of the current job is different
than the CCSID used in the access plan</li>
<li>The value of one of the following is different in the current job: date
format, date separator, time format, or time separator.</li>
<li>The sort sequence table specified has changed.</li>
<li>The number of active processors or the size or paging option of the storage
pool has changed.</li>
<li>The system feature DB2<sup>®</sup> UDB Symmetric Multiprocessing has either been installed
or removed.</li>
<li>The value of the degree query attribute has changed either by the <span class="cmdname">CHGSYSVAL</span> or <span class="cmdname">CHGQRYA</span> CL
commands or with the query options file &amp;15 in library &amp;16.</li>
<li>A view is either being opened by a high level language open, or is being
materialized.</li>
<li>A sequence object or user-defined type or function is not the same object
as the one referred to in the access plan; or, the SQL path used to generate
the access plan is different than the current SQL path.</li>
<li>Query attributes have been specified from the query options file &amp;15
in library &amp;16.</li>
<li>The access plan was generated with a commitment control level that is
different in the current job.</li>
<li>The access plan was generated with a different static cursor answer set
size.</li>
<li>This is the first run of the query since a prepare or compile.</li>
<li>or greater. View the second level message text of the next message issued
(CPI4351) for an explanation of these reason codes. </li>
</ol>
If the reason code is 4, 5, 6, 20, or 21 and the file specified in the
reason code explanation is a logical file, then member &amp;12 of physical
file &amp;10 in library &amp;11 is the file with the specified change.</td>
</tr>
<tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e25 ">Recovery Text:</td>
<td valign="middle" width="73.9795918367347%" headers="d0e25 ">Excessive rebuilds should be avoided and may indicate an application
design problem.</td>
</tr>
</tbody>
</table>
</div>
<div class="section"><p>This message can be sent for a variety of reasons. The specific
reason is provided in the message help.</p>
</div>
<div class="section"><p>Most of the time, this message is sent when the queried table
environment has changed, making the current access plan obsolete. An example
of the table environment changing is when an index required by the query no
longer exists on the server.</p>
</div>
<div class="section"><p>An access plan contains the instructions for how a query is to
be run and lists the indexes for running the query. If a needed index is no
longer available, the query is again optimized, and a new access plan is created,
replacing the old one.</p>
</div>
<div class="section"><p>The process of again optimizing the query and building a new access
plan at runtime is a function of <span class="keyword">DB2 UDB for iSeries™</span>.
It allows a query to be run as efficiently as possible, using the most current
state of the database without user intervention.</p>
</div>
<div class="section"><p>The infrequent appearance of this message is not a cause for action.
For example, this message will be sent when an SQL package is run the first
time after a restore, or anytime the optimizer detects that a change has occurred
(such as a new index was created), that warrants an implicit rebuild. However,
excessive rebuilds should be avoided because extra query processing will occur.
Excessive rebuilds may indicate a possible application design problem or inefficient
database management practices.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="pimes.htm" title="You can evaluate the structure and performance of the given SQL statements in a program using informational messages put in the job log by the database manager.">Query optimization performance information messages</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="cpi4351.htm">CPI4351 - Additional reason codes for query access plan has been rebuilt.</a></div>
<div><a href="cpi434c.htm">CPI434C - The query access plan was not rebuilt</a></div>
</div>
</div>
</body>
</html>