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

90 lines
5.2 KiB
HTML
Raw 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="CPI4324 - Temporary file built for 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="cpi4324" />
<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>CPI4324 - Temporary file built for file &amp;1</title>
</head>
<body id="cpi4324"><a name="cpi4324"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">CPI4324 - Temporary file built for 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">CPI4324</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 ">Temporary file built for 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 file was built for member &amp;3 of file &amp;1 in library &amp;2
for reason code &amp;4. This process took &amp;5 minutes and &amp;6 seconds.
The temporary file was required in order for the query to be processed. The
reason codes and their meanings follow: <ol><li>The file is a join logical file and its join-type (JDFTVAL) does not match
the join-type specified in the query.</li>
<li>The format specified for the logical file references more than one physical
file.</li>
<li>The file is a complex SQL view requiring a temporary file to contain the
results of the SQL view.</li>
<li>For an update-capable query, a subselect references a field in this file
which matches one of the fields being updated.</li>
<li>For an update-capable query, a subselect references SQL view &amp;1, which
is based on the file being updated.</li>
<li>For a delete-capable query, a subselect references either the file from
which records are to be deleted or an SQL view or logical file based on the
file from which records are to be deleted.</li>
<li>The file is user-defined table function &amp;8 in &amp;2, and all the
records were retrieved from the function. The processing time is not returned
for this reason code.</li>
<li>The file is a partition file requiring a temporary file for processing
the grouping or join.</li>
</ol>
</td>
</tr>
<tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e16 ">Recovery Text:</td>
<td valign="middle" width="73.9795918367347%" headers="d0e16 ">You may want to change the query to refer to a file that does not require
a temporary file to be built.</td>
</tr>
</tbody>
</table>
</div>
<div class="section"><p>Before the query processing could begin, the data in the specified
table had to be copied into a temporary physical table to simplify running
the query. The message help contains the reason why this message was sent.</p>
</div>
<div class="section"><p>If the specified table selects few rows, typically less than 1000
rows, then the row selection part of the query's implementation should not
take a significant amount of resource and time. However if the query is taking
more time and resources than can be allowed, consider changing the query so
that a temporary table is not required.</p>
</div>
<div class="section"><p>One way to do this is by breaking the query into multiple steps.
Consider using an INSERT statement with a subselect to select only the rows
that are required into a table, and then use that table's rows for the rest
of the query.</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>