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

111 lines
6.3 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="CPI4321 - Access path built for &amp;18 &amp;19" />
<meta name="DC.Relation" scheme="URI" content="pimes.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="cpi4321" />
<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>CPI4321 - Access path built for &amp;18 &amp;19</title>
</head>
<body id="cpi4321"><a name="cpi4321"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">CPI4321 - Access path built for &amp;18 &amp;19</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="d0e16">CPI4321</th>
</tr>
</thead>
<tbody><tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e16 ">Message Text:</td>
<td valign="middle" width="73.9795918367347%" headers="d0e16 ">Access path built for &amp;18 &amp;19.</td>
</tr>
<tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e16 ">Cause Text:</td>
<td valign="middle" width="73.9795918367347%" headers="d0e16 ">A temporary access path was built to access records from member &amp;6
of &amp;18 &amp;19 in library &amp;5 for reason code &amp;10. This process
took &amp;11 minutes and &amp;12 seconds. The access path built contains &amp;15
entries. The access path was built using &amp;16 parallel tasks. A zero for
the number of parallel tasks indicates that parallelism was not used. The
reason codes and their meanings follow: <ol><li>Perform specified ordering/grouping criteria.</li>
<li>Perform specified join criteria.</li>
<li>Perform specified record selection to minimize I/O wait time.</li>
</ol>
<p>The access path was built using the following key fields. The key
fields and their corresponding sequence (ASCEND or DESCEND) will be shown:
</p>
&amp;17. <p></p>
A key field of *MAP indicates the key
field is an expression (derived field). <p></p>
The access path was
built using sequence table &amp;13 in library &amp;14. <p></p>
A sequence
table of *N indicates the access path was built without a sequence table.
A sequence table of *I indicates the table was an internally derived table
that is not available to the user. <p></p>
If &amp;18 &amp;19 in library &amp;5
is a logical file then the access path is built over member &amp;9 of physical
file &amp;7 in library &amp;8. <p></p>
A file name starting with *QUERY
or *N indicates the access path was built over a temporary file.</td>
</tr>
<tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e16 ">Recovery Text:</td>
<td valign="middle" width="73.9795918367347%" headers="d0e16 ">If this query is run frequently, you may want to create an access path
(index) similar to this definition for performance reasons. Create the access
path using sequence table &amp;13 in library &amp;14, unless the sequence
table is *N. If an access path is created, it is possible the query optimizer
may still choose to create a temporary access path to process the query.
<p></p>
If *MAP is returned for one of the key fields or *I is returned
for the sequence table, then a permanent access path cannot be created. A
permanent access path cannot be built with these specifications.</td>
</tr>
</tbody>
</table>
</div>
<div class="section"><p>This message indicates that a temporary index was created to process
the query. The new index is created by reading all of the rows in the specified
table.</p>
</div>
<div class="section"><p>The time required to create an index on each run of a query can
be significant. Consider creating a logical file (<span class="cmdname">CRTLF</span>)
or an SQL index (CREATE INDEX SQL statement): </p>
<ul><li>Over the table named in the message help.</li>
<li>With key columns named in the message help.</li>
<li>With the ascending or descending sequencing specified in the message help.</li>
<li>With the sort sequence table specified in the message help.</li>
</ul>
</div>
<div class="section"><p>Consider creating the logical file with select or omit criteria
that either match or partially match the query's predicates involving constants.
The database manager will consider using select or omit logical files even
though they are not explicitly specified on the query.</p>
</div>
<div class="section"><p>For certain queries, the optimizer may decide to create an index
even when an existing one can be used. This might occur when a query has an
ordering column as a key column for an index, and the only row selection specified
uses a different column. If the row selection results in roughly 20% of the
rows or more to be returned, then the optimizer may create a new index to
get faster performance when accessing the data. The new index minimizes the
amount of data that needs to be read.</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>
</body>
</html>