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

92 lines
5.8 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="Monitoring background statistics collection" />
<meta name="abstract" content="The system value QDBFSTCCOL controls who is allowed to create statistics in the background." />
<meta name="description" content="The system value QDBFSTCCOL controls who is allowed to create statistics in the background." />
<meta name="DC.subject" content="statistics manager, monitoring background statistics collection" />
<meta name="keywords" content="statistics manager, monitoring background statistics collection" />
<meta name="DC.Relation" scheme="URI" content="statsmanager.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzakz/rzakzqdbfstccol.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="monitorstats" />
<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>Monitoring background statistics collection</title>
</head>
<body id="monitorstats"><a name="monitorstats"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Monitoring background statistics collection</h1>
<div><p>The system value QDBFSTCCOL controls who is allowed to create statistics
in the background.</p>
<div class="section"><div class="p">The following list provides the possible values: <dl><dt class="dlterm"><span class="synph"><span class="kwd">*ALL</span></span></dt>
<dd>Allows all statistics to be collected in the background. This is the default
setting.</dd>
<dt class="dlterm"><span class="synph"><span class="kwd">*NONE</span></span></dt>
<dd>Restricts everyone from creating statistics in the background. This does
not prevent immediate user-requested statistics from being collected, however.</dd>
<dt class="dlterm"><span class="synph"><span class="kwd">*USER</span></span></dt>
<dd>Allows only user-requested statistics to be collected in the background.</dd>
<dt class="dlterm"><span class="synph"><span class="kwd">*SYSTEM</span></span></dt>
<dd>Allows only system-requested statistics to be collected in the background.</dd>
</dl>
</div>
</div>
<div class="section"><p>When you switch the system value to something other than *ALL
or *SYSTEM, the Statistics Manager continues to place statistics requests
in the Plan Cache. When the system value is switched back to *ALL, for example,
background processing analyzes the entire Plan Cache and looks for any column
statistics requests that are there. This background task also identifies column
statistics that have been used by an plan in the Plan Cache and determines
if these column statistics have become stale. Requests for the new column
statistics as well as requests for refresh of the stale columns statistics
are then executed.</p>
</div>
<div class="section"><p>All background statistic collections initiated by the system or
submitted to the background by a user are performed by the system job QDBFSTCCOL
(user-initiated immediate requests are run within the user's job). This job
uses multiple threads to create the statistics. The number of threads is determined
by the number of processors that the system has. Each thread is then associated
with a request queue.</p>
</div>
<div class="section"><p>There are four types of request queues based on who submitted
the request and how long the collection is estimated to take. The default
priority assigned to each thread can determine to which queue the thread belongs: </p>
<ul><li>Priority 90 — short user requests</li>
<li>Priority 93 — long user requests</li>
<li>Priority 96 — short system requests</li>
<li>Priority 99 — long system requests</li>
</ul>
</div>
<div class="section"><p>Background statistics collections attempt to use as much parallelism
as possible. This parallelism is independent of the SMP feature installed
on the iSeries™.
However, parallel processing is allowed only for immediate statistics collection
if SMP is installed on the system and the job requesting the column statistics
is set to allow parallelism.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="statsmanager.htm" title="As stated earlier, the collection of statistics is handled by a separate component called the Statistics Manager. Statistical information can be used by the query optimizer to determine the best access plan for a query. Since the query optimizer bases its choice of access plan on the statistical information found in the table, it is important that this information be current.">Collecting statistics with the Statistics Manager</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../rzakz/rzakzqdbfstccol.htm">Allow background database statistics collection (QDBFSTCCOL) system value</a></div>
</div>
</div>
</body>
</html>