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

97 lines
5.6 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="CPI4322 - Access path built from keyed file &amp;1" />
<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="cpi4322" />
<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>CPI4322 - Access path built from keyed file &amp;1</title>
</head>
<body id="cpi4322"><a name="cpi4322"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">CPI4322 - Access path built from keyed file &amp;1</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">CPI4322</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 from keyed file &amp;1.</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 using the access path from member &amp;3
of keyed file &amp;1 in library &amp;2 to access records from member &amp;6
of file &amp;4 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 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>
The access path was built using the following key fields. The key fields
and their corresponding sequence (ASCEND or DESCEND) will be shown: <p></p>
&amp;17.
<p></p>
A key field of *MAP indicates the key field is an expression
(derived field). <p></p>
The temporary 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 file &amp;4 in library &amp;5 is
a logical file then the temporary access path is built over member &amp;9
of physical file &amp;7 in library &amp;8. Creating an access path from a
keyed file generally results in improved performance.</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. <p></p>
A
temporary access path can only be created using index only access if all of
the fields that were used by this temporary access path are also key fields
for the access path from the keyed file. </td>
</tr>
</tbody>
</table>
</div>
<div class="section"><p>This message indicates that a temporary index was created from
the access path of an existing keyed table or index.</p>
</div>
<div class="section"><p>Generally, this action should not take a significant amount of
time or resource because only a subset of the data in the table needs to be
read. This is normally done to allow the optimizer to use an existing index
for selection while creating one for ordering, grouping, or join criteria.
Sometimes even faster performance can be achieved by creating a logical file
or SQL index that satisfies the index requirement stated in the message help.</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>