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

264 lines
16 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="Database monitor view 3020 - Index advised (SQE)" />
<meta name="DC.Relation" scheme="URI" content="lofdds.htm" />
<meta name="DC.Relation" scheme="URI" content="idxadvisor.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="t3018" />
<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>Database monitor view 3020 - Index advised (SQE)</title>
</head>
<body id="t3018"><a name="t3018"><!-- --></a>
<img src="./delta.gif" alt="Start of change" /><!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Database monitor view 3020 - Index advised (SQE)</h1>
<div><div class="example"> <pre><strong>Create View</strong> QQQ3020 as
(<strong>SELECT</strong> QQRID as Row_ID,
QQTIME as Time_Created,
QQJFLD as Join_Column,
QQRDBN as Relational_Database_Name,
QQSYS as System_Name,
QQJOB as Job_Name,
QQUSER as Job_User,
QQJNUM as Job_Number,
QQI9 as Thread_ID,
QQUCNT as Unique_Count,
QQUDEF as User_Defined,
QQQDTN as Unique_SubSelect_Number,
QQQDTL as SubSelect_Nested_Level,
QQMATN as Materialized_View_Subselect_Number,
QQMATL as Materialized_View_Nested_Level,
QVP15E as Materialized_View_Union_Level,
QVP15A as Decomposed_Subselect_Number,
QVP15B as Total_Number_Decomposed_SubSelects,
QVP15C as Decomposed_SubSelect_Reason_Code,
QVP15D as Starting_Decomposed_SubSelect,
QQTLN as System_Table_Schema,
QQTFN as System_Table_Name,
QQTMN as Member_Name,
QQPTLN as System_Base_Table_Schema,
QQPTFN as System_Base_Table_Name,
QQPTMN as Base_Member_Name,
QVPLIB as Base_Table_Schema,
QVPTBL as Base_Table_Name,
QQTOTR as Table_Total_Rows,
QQEPT as Estimated_Processing_Time,
QQIDXA as Index_is_Advised,
QQIDXD as Index_Advised_Columns_Short_List,
QQ1000L as Index_Advised_Columns_Long_List,
QQI1 as Number_of_Advised_Columns,
QQI2 as Number_of_Advised_Primary_Columns,
QQRCOD as Reason_Code,
QVRCNT as Unique_Refresh_Counter,
QVC1F as Type_of_Index_Advised,
QQNTNM as NLSS_Table,
QQNLNM as NLSS_Library
<strong>FROM</strong> UserLib/DBMONTable
<strong>WHERE</strong> QQRID=3020) </pre>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="hsides" border="1" rules="rows"><caption>Table 1. QQQ3020 - Index advised (SQE)</caption><thead align="left"><tr><th align="left" valign="bottom" width="35.18164435946463%" id="d0e38">View Column Name</th>
<th align="left" valign="bottom" width="13.957934990439771%" id="d0e40">Table Column Name</th>
<th align="left" valign="bottom" width="50.860420650095605%" id="d0e42">Description</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Row_ID</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQRID</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Row identification </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Time_Created</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQTIME</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Time row was created</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Join_Column</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQJFLD</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Join column (unique per job)</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Relational_Database_Name</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQRDBN</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Relational database name</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">System_Name</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQSYS</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">System name</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Job_Name</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQJOB</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Job name</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Job_User</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQUSER</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Job user </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Job_Number</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQJNUM</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Job number</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Thread_ID</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQI9</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Thread identifier </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Unique_Count</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQUCNT</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Unique count (unique per query)</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">User_Defined</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQUDEF</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">User defined column </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Unique_SubSelect_Number</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQQDTN</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Unique subselect number</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">SubSelect_Nested_Level</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQQDTL</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Subselect nested level</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Materialized_View_Subselect_Number</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQMATN</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Materialized view subselect number</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Materialized_View_Nested_Level</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQMATL</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Materialized view nested level</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Materialized_View_Union_Level</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QVP15E</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Materialized view union level</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Decomposed_Subselect_Number</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QVP15A</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Decomposed query subselect number, unique across all
decomposed subselects</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Total_Number_Decomposed_SubSelects</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QVP15B</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Total number of decomposed subselects</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Decomposed_SubSelect_Reason_Code</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QVP15C</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Decomposed query subselect reason code</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Starting_Decomposed_SubSelect</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QVP15D</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Decomposed query subselect number for the first decomposed
subselect</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">System_Table_Schema</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQTLN</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Schema of table queried </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">System_Table_Name</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQTFN</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Name of table queried </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Member_Name</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQTMN</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Member name of table queried </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">System_Base_Table_Schema</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQPTLN</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Schema name of base table </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">System_Base_Table_Name</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQPTFN</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Name of base table for table queried </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Base_Member_Name</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQPTMN</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Member of base table</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Base_Table_Schema</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QVPLIB</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Schema of base table, long name</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Base_Table_Name</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QVPTBL</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Base table, long name</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Table_Total_Rows</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQTOTR</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Number of rows in the table</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Estimated_Processing_Time</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQEPT</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Estimated processing time, in seconds</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Index_is_Advised</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQIDXA</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Index advised (Y/N)</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Index_Advised_Columns_Short_List</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQIDXD</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Columns for the index advised, first 1000 bytes</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Index_Advised_Columns_Long_List</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQ1000L</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Column for the index advised </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Number_of_Advised_Columns</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQI1</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Number of indexes advised</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Number_of_Advised_Primary_Columns</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQI2</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Number of advised columns that use index scan-key positioning</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Reason_Code</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQRCOD</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Reason code <ul><li>I1 - Row selection</li>
<li>I2 - Ordering/Grouping</li>
<li>I3 - Row selection and Ordering/Grouping</li>
<li>I4 - Nested loop join</li>
<li>I5 - Row selection using bitmap processing</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Unique_Refresh_Counter</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QVRCNT</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Unique refresh counter </td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">Type_of_Index_Advised</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QVC1F</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Type of index advised. Possible values are:<ul><li>B - Radix index</li>
<li>E - Encoded vector index</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">NLSS_Table</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQNTNM</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Sort Sequence Table</td>
</tr>
<tr><td valign="top" width="35.18164435946463%" headers="d0e38 ">NLSS_Library</td>
<td valign="top" width="13.957934990439771%" headers="d0e40 ">QQNLNM</td>
<td valign="top" width="50.860420650095605%" headers="d0e42 ">Sort Sequence Library</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lofdds.htm" title="The following examples show the different optional SQL view format that you can create with the SQL shown. The column descriptions are explained in the tables following each example. These views are not shipped with the server, and you must create them, if you choose to do so. These views are optional and are not required for analyzing monitor data.">Optional database monitor SQL view format</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="idxadvisor.htm" title="The query optimizer analyzes the row selection in the query and determines, based on default values, if creation of a permanent index improves performance. If the optimizer determines that a permanent index might be beneficial, it returns the key columns necessary to create the suggested index.">Query optimizer index advisor</a></div>
</div>
</div>
<img src="./deltaend.gif" alt="End of change" /></body>
</html>