112 lines
7.2 KiB
HTML
112 lines
7.2 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="Starting a summary monitor" />
|
|
<meta name="abstract" content="You can start a summary monitor from the iSeries Navigator interface." />
|
|
<meta name="description" content="You can start a summary monitor from the iSeries Navigator interface." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzajqnavsummon.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="indexstats.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="rzajqstartsummon" />
|
|
<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>Starting a summary monitor</title>
|
|
</head>
|
|
<body id="rzajqstartsummon"><a name="rzajqstartsummon"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Starting a summary monitor</h1>
|
|
<div><p>You can start a summary monitor from the iSeries™ Navigator interface.</p>
|
|
<div class="section"></div>
|
|
<div class="section"><p>You can start this monitor by right-clicking SQL Performance Monitors
|
|
under the Database portion of the iSeries Navigator tree and selecting <span class="menucascade"><span class="uicontrol">New</span> > <span class="uicontrol">SQL Performance Monitor</span></span>.
|
|
In the monitor wizard, select <strong>Summary</strong>.</p>
|
|
<p>When you create a summary
|
|
monitor, certain kinds of information are always collected. This information
|
|
includes summary information, SQL statement information, and host variable
|
|
information. You can also choose to collect the following types of information:</p>
|
|
</div>
|
|
<div class="section"><dl><dt class="dlterm">Table scans and arrival sequences</dt>
|
|
<dd>Select to include information about table scan data for the monitored
|
|
jobs. Table scans of large tables can be time-consuming. If the SQL statement
|
|
is long running, it may indicate that an index might be necessary to improve
|
|
performance.</dd>
|
|
<dt class="dlterm">Indexes used</dt>
|
|
<dd>Select to include information about how indexes are used by monitored
|
|
jobs. This information can be used to quickly tell if any of the permanent
|
|
indexes were used to improve the performance of a query. Permanent indexes
|
|
are typically necessary to achieve optimal query performance. This information
|
|
can be used to determine how often a permanent index was used by in the statements
|
|
that were monitored. Indexes that are never (or very rarely) used should probably
|
|
be dropped to improve the performance of inserts updates and deletes to a
|
|
table. Before dropping the index, you may want to determine if the index is
|
|
being used by the query optimizer as a source of statistics.</dd>
|
|
<dt class="dlterm">Index creation</dt>
|
|
<dd>Select to include information about the creation of indexes by monitored
|
|
jobs. Temporary indexes may need to be created for several reasons such as
|
|
to perform a join, to support scrollable cursors, to implement ORDER BY or
|
|
GROUP BY, and so on. The created indexes may only contain keys for rows that
|
|
satisfy the query (such indexes are known as sparse indexes). In many cases,
|
|
the index create may be perfectly normal and the most efficient way to perform
|
|
the query. However, if the number of rows is large, or if the same index is
|
|
repeatedly created, you may be able to create a permanent index to improve
|
|
performance of this query. This may be true whether an index was advised.</dd>
|
|
<dt class="dlterm">Data sorts</dt>
|
|
<dd>Select to include information about data sorts that monitored jobs perform.
|
|
Sorts of large result sets in an SQL statement may be a time consuming operation.
|
|
In some cases, an index can be created that will eliminate the need for a
|
|
sort.</dd>
|
|
<dt class="dlterm">Temporary file use</dt>
|
|
<dd>Select to include information about temporary files that monitored jobs
|
|
created. Temporary results are sometimes necessary based on the SQL statement.
|
|
If the result set inserted into a temporary result is large, you may want
|
|
to investigate why the temporary result is necessary. In some cases, the SQL
|
|
statement can be modified to eliminate the need for the temporary result.
|
|
For example, if a cursor has an attribute of INSENSITIVE, a temporary result
|
|
will be created. Eliminating the keyword INSENSITIVE will typically remove
|
|
the need for the temporary result, but your application will then see changes
|
|
as they are occur in the database tables.</dd>
|
|
<dt class="dlterm">Indexes considered</dt>
|
|
<dd>Select to include information about which indexes were considered for
|
|
the monitored jobs. This information can help to determine if an index is
|
|
used in the query. If an index was considered, but not used, you might need
|
|
to rewrite the index or drop it. Before dropping the index, you may want to
|
|
determine if the index is being used by the query optimizer as a source of
|
|
statistics.</dd>
|
|
<dt class="dlterm">Subselect processing</dt>
|
|
<dd>Select to include information about subselect processing. This information
|
|
can indicate which subquery in a complex SQL statement is the most expensive.</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="section"><p>You can choose which jobs you want to monitor or choose to monitor
|
|
all jobs. You can have multiple instances of monitors running on you system
|
|
at one time. For summary monitors, only one monitor instance can be monitoring
|
|
all jobs. Additionally, you cannot have two monitors monitoring the same job.
|
|
When collecting information for all jobs, the monitor will collect on previously
|
|
started jobs or new jobs started after the monitor is created. You can edit
|
|
this list by selecting and removing jobs from the <strong>Selected jobs</strong> list.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzajqnavsummon.htm" title="You can work with summary monitors from the iSeries Navigator interface. A summary monitor creates a Memory-Resident Database monitor (DBMon), found on the native interface.">Using iSeries Navigator with summary monitors</a></div>
|
|
</div>
|
|
<div class="relref"><strong>Related reference</strong><br />
|
|
<div><a href="indexstats.htm" title="You can easily determine which indexes are being used for query optimization.">Determining unnecessary indexes</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |