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

89 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="CPI4330 - &amp;6 tasks used for parallel &amp;10 scan of 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="cpi4330" />
<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>CPI4330 - &amp;6 tasks used for parallel &amp;10 scan of file &amp;1</title>
</head>
<body id="cpi4330"><a name="cpi4330"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">CPI4330 - &amp;6 tasks used for parallel &amp;10 scan of 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">CPI4330</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 ">&amp;6 tasks used for parallel &amp;10 scan of 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 ">&amp;6 is the average numbers of tasks used for a &amp;10 scan of member &amp;3
of file &amp;1 in library &amp;2. <p></p>
If file &amp;1 in library &amp;2
is a logical file, then member &amp;9 of physical file &amp;7 in library &amp;8
is the actual file from which records are being selected. <p></p>
A
file name starting with *QUERY or *N for the file indicates a temporary result
file is being used. <p></p>
The query optimizer has calculated that
the optimal number of tasks is &amp;5 which was limited for reason code &amp;4.
The reason code definitions are: <ol><li>The *NBRTASKS parameter value was specified for the DEGREE parameter of
the <span class="cmdname">CHGQRYA</span> CL command.</li>
<li>The optimizer calculated the number of tasks which would use all of the
central processing units (CPU).</li>
<li>The optimizer calculated the number of tasks which can efficiently run
in this job's share of the memory pool.</li>
<li>The optimizer calculated the number of tasks which can efficiently run
using the entire memory pool</li>
<li>The optimizer limited the number of tasks to equal the number of disk
units which contain the file's data.</li>
</ol>
The database manager may further limit the number of tasks used if the
allocation of the file's data is not evenly distributed across disk units.</td>
</tr>
<tr valign="middle"><td valign="middle" width="26.02040816326531%" headers="d0e16 ">Recovery Text:</td>
<td valign="middle" width="73.9795918367347%" headers="d0e16 ">To disallow usage of parallel &amp;10 scan, specify *NONE on the query
attribute degree. <p></p>
A larger number of tasks might further
improve performance. The following actions based on the optimizer reason code
might allow the optimizer to calculate a larger number: <ol><li>Specify a larger number of tasks value for the DEGREE parameter of the <span class="cmdname">CHGQRYA</span> CL
command. Start with a value for number of tasks which is a slightly larger
than &amp;5</li>
<li>Simplify the query by reducing the number of fields being mapped to the
result buffer or by removing expressions. Also, try specifying a number of
tasks as described by reason code 1.</li>
<li>Specify *MAX for the query attribute DEGREE.</li>
<li>Increase the size of the memory pool.</li>
<li>Use the <span class="cmdname">CHGPF</span> CL command or the SQL ALTER statement
to redistribute the file's data across more disk units.</li>
</ol>
</td>
</tr>
</tbody>
</table>
</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>