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

252 lines
15 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="Database monitor view 3006 - Access Plan Rebuilt" />
<meta name="DC.subject" content="summary row, access plan rebuilt" />
<meta name="keywords" content="summary row, access plan rebuilt" />
<meta name="DC.Relation" scheme="URI" content="lofdds.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="t3006" />
<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 3006 - Access Plan Rebuilt</title>
</head>
<body id="t3006"><a name="t3006"><!-- --></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 3006 - Access Plan Rebuilt</h1>
<div><div class="example"> <pre><strong>Create View</strong> QQQ3006 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,
QQRCOD as Reason_Code,
QQC21 as SubCode,
QVRCNT as Unique_Refresh_Counter,
QQTIM1 as Last_Access_Plan_Rebuild_Timestamp,
QQC11 as Reoptimization_Done,
QVC22 as Previous_Reason_Code,
QVC23 as Previous_SubCode,
<strong>FROM</strong> UserLib/DBMONTable
<strong>WHERE</strong> QQRID=3006) </pre>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="hsides" border="1" rules="rows"><caption>Table 1. QQQ3006 - Access Plan Rebuilt</caption><thead align="left"><tr><th align="left" valign="bottom" width="35.42857142857142%" id="d0e43">View Column Name</th>
<th align="left" valign="bottom" width="13.904761904761905%" id="d0e45">Table Column Name</th>
<th align="left" valign="bottom" width="50.66666666666667%" id="d0e47">Description</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Row_ID</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQRID</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Row identification</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Time_Created</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQTIME</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Time row was created </td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Join_Column</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQJFLD</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Join column (unique per job)</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Relational_Database_Name</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQRDBN</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Relational database name</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">System_Name</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQSYS</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">System name </td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Job_Name</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQJOB</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Job name</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Job_User</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQUSER</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Job user</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Job_Number</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQJNUM</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Job number</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Thread_ID</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQI9 </td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Thread identifier</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Unique_Count</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQUCNT</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Unique count (unique per query)</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">User_Defined</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQUDEF</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">User defined column</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Unique_SubSelect_Number</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQQDTN </td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Unique subselect number</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">SubSelect_Nested_Level</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQQDTL</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Subselect nested level</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Materialized_View_Subselect_Number</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQMATN</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Materialized view subselect number</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Materialized_View_Nested_Level</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQMATL</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Materialized view nested level</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Materialized_View_Union_Level</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QVP15E</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Materialized view union level</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Decomposed_Subselect_Number</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QVP15A</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Decomposed query subselect number, unique across all
decomposed subselects</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Total_Number_Decomposed_SubSelects</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QVP15B</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Total number of decomposed subselects</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Decomposed_SubSelect_Reason_Code</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QVP15C</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Decomposed query subselect reason code</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Starting_Decomposed_SubSelect</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QVP15D</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Decomposed query subselect number for the first decomposed
subselect</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Reason_Code</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQRCOD</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Reason code why access plan was rebuilt <ul><li>A1 - A table or member is not the same object as the one referenced when
the access plan was last built. Some reasons they might be different are: <ul><li>Object was deleted and recreated.</li>
<li>Object was saved and restored.</li>
<li>Library list was changed.</li>
<li>Object was renamed.</li>
<li>Object was moved.</li>
<li>Object was overridden to a different object.</li>
<li>This is the first run of this query after the object containing the query
has been restored.</li>
</ul>
</li>
<li>A2 - Access plan was built to use a reusable Open Data Path (ODP) and
the optimizer chose to use a non-reusable ODP for this call.</li>
<li>A3 - Access plan was built to use a non-reusable Open Data Path (ODP)
and the optimizer chose to use a reusable ODP for this call.</li>
<li>A4 - The number of rows in the table has changed by more than 10% since
the access plan was last built.</li>
<li>A5 - A new index exists over one of the tables in the query</li>
<li>A6 - An index that was used for this access plan no longer exists or is
no longer valid.</li>
<li>A7 - <span class="keyword">i5/OS™</span> Query requires
the access plan to be rebuilt because of system programming changes.</li>
<li>A8 - The CCSID of the current job is different than the CCSID of the job
that last created the access plan.</li>
<li>A9 - The value of one or more of the following is different for the current
job than it was for the job that last created this access plan: <ul><li>date format</li>
<li>date separator</li>
<li>time format</li>
<li>time separator.</li>
</ul>
</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Reason_Code (continued)</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQRCOD</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 "><ul><li>AA - The sort sequence table specified is different than the sort sequence
table that was used when this access plan was created.</li>
<li>AB - Storage pool changed or DEGREE parameter of CHGQRYA command changed.</li>
<li>AC - The system feature DB2<sup>®</sup> multisystem has been installed or removed.</li>
<li>AD - The value of the degree query attribute has changed.</li>
<li>AE - A view is either being opened by a high level language or a view
is being materialized.</li>
<li>AF - A sequence object or user-defined type or function is not the same
object as the one referred to in the access plan; or, the SQL path used to
generate the access plan is different than the current SQL path.</li>
<li>B0 - The options specified have changed as a result of the query options
file.</li>
<li>B1 - The access plan was generated with a commitment control level that
is different in the current job.</li>
<li>B2 - The access plan was generated with a static cursor answer set size
that is different than the previous access plan.</li>
<li>B3 - The query was reoptimized because this is the first run of the query
after a prepare. That is, it is the first run with real actual parameter marker
values.</li>
<li>B4 - The query was reoptimized because referential or check constraints
have changed.</li>
<li>B5 - The query was reoptimized because MQTs have changed.</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">SubCode</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQC21</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">If the access plan rebuild reason code was A7 this two-byte hex value
identifies which specific reason for A7 forced a rebuild.</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Unique_Refresh_Counter</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QVRCNT</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Unique refresh counter </td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Last_Access_Plan_Rebuild_Timestamp</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQTIM1</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Timestamp of last access plan rebuild</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Reoptimization_Done</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QQC11</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Required optimization for this plan. <ul><li>Y - Yes, plan was really optimized.</li>
<li>N - No, the plan was not reoptimized because of the QAQQINI option for
the REOPTIMIZE_ACCESS_PLAN parameter value</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Previous_Reason_Code</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QVC22</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Previous reason code</td>
</tr>
<tr><td valign="top" width="35.42857142857142%" headers="d0e43 ">Previous_SubCode</td>
<td valign="top" width="13.904761904761905%" headers="d0e45 ">QVC23</td>
<td valign="top" width="50.66666666666667%" headers="d0e47 ">Previous reason subcode</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>
<img src="./deltaend.gif" alt="End of change" /></body>
</html>