213 lines
13 KiB
HTML
213 lines
13 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="topic" />
|
|
<meta name="DC.Title" content="Database monitor view 3030 - Materialized query tables" />
|
|
<meta name="DC.subject" content="summary row, grouping" />
|
|
<meta name="keywords" content="summary row, grouping" />
|
|
<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="t3030" />
|
|
<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 3030 - Materialized query tables</title>
|
|
</head>
|
|
<body id="t3030"><a name="t3030"><!-- --></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 3030 - Materialized query tables</h1>
|
|
<div><pre><strong>Create View</strong> QQQ3030 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,
|
|
QVRCNT as Unique_Refresh_Counter,
|
|
QQ1000 as Materialized_Query_Tables,
|
|
QQC301 as MQT_Reason_Codes
|
|
<strong>FROM</strong> UserLib/DBMONTable
|
|
<strong>WHERE</strong> QQRID=3030) </pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="hsides" border="1" rules="rows"><caption>Table 1. QQQ3030 - Materialized query tables</caption><thead align="left"><tr><th align="left" valign="bottom" width="35.094339622641506%" id="d0e41">View Column Name</th>
|
|
<th align="left" valign="bottom" width="12.641509433962264%" id="d0e43">Table Column Name</th>
|
|
<th align="left" valign="bottom" width="52.264150943396224%" id="d0e45">Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Row_ID </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQRID</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Row identification</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Time_Created </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQTIME</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Time row was created </td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Join_Column</td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQJFLD</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Join column (unique per job)</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Relational_Database_Name </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQRDBN</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Relational database name </td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">System_Name </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQSYS</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">System name</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Job_Name </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQJOB</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Job name</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Job_User </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQUSER</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Job User</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Job_Number </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQJNUM</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Job Number</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Thread_ID </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQI9</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Thread identifier</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Unique_Count </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQUCNT</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Unique count (unique per query)</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">User_Defined </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQUDEF</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">User defined column</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Unique_SubSelect_Number </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQQDTN</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Unique subselect number</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">SubSelect_Nested_Level </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQQDTL</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Subselect nested level</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Materialized_View_Subselect_Number </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQMATN</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Materialized view subselect number</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Materialized_View_Nested_Level </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQMATL</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Materialized view nested level</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Materialized_View_Union_Level </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QVP15E</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Materialized view union level</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Decomposed_Subselect_Number </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QVP15A</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Decomposed query subselect number, unique across all
|
|
decomposed subselects</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Total_Number_Decomposed_SubSelects </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QVP15B</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Total number of decomposed subselects</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Decomposed_SubSelect_Reason_Code </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QVP15C</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Decomposed query subselect reason code</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Starting_Decomposed_SubSelect </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QVP15D</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Decomposed query subselect number for the first decomposed
|
|
subselect</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Unique_Refresh_Counter </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QVRCNT</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Unique refresh counter</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Materialized_Query_Tables</td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQ1000</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Materialized query tables examined and reason why used or not used: <ul><li>0 - The materialized query table was used</li>
|
|
<li>1 - The cost to use the materialized query table, as determined by the
|
|
optimizer, was higher than the cost associated with the chosen implementation.</li>
|
|
<li>2 - The join specified in the materialized query was not compatible with
|
|
the query.</li>
|
|
<li>3 - The materialized query table had predicates that were not matched
|
|
in the query.</li>
|
|
<li>4 - The grouping specified in the materialized query table is not compatible
|
|
with the grouping specified in the query.</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">Materialized_Query_Tables (continued)</td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 "> </td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 "><ul><li>5 - The query specified columns that were not in the select-list of the
|
|
materialized query table.</li>
|
|
<li>6 - The materialized query table query contains functionality that is
|
|
not supported by the query optimizer.</li>
|
|
<li>7 - The materialized query table specified the DISABLE QUERY OPTIMIZATION
|
|
clause.</li>
|
|
<li>8 - The ordering specified in the materialized query table is not compatible
|
|
with the ordering specified in the query.</li>
|
|
<li>9 - The query contains functionality that is not supported by the materialized
|
|
query table matching algorithm.</li>
|
|
<li>10 - Materialized query tables may not be used for this query.</li>
|
|
<li>11 - The refresh age of this materialized query table exceeds the duration
|
|
specified by the MATERIALIZED_QUERY_TABLE_REFRESH_AGE QAQQINI option.</li>
|
|
<li>12 - The commit level of the materialized query table is lower than the
|
|
commit level specified for the query.</li>
|
|
<li>13 - The distinct specified in the materialized query table is not compatible
|
|
with the distinct specified in the query.</li>
|
|
<li>14 - The FETCH FOR FIRST n ROWS clause of the materialized query table
|
|
is not compatible with the query.</li>
|
|
<li>15 - The QAQQINI options used to create the materialized query table are
|
|
not compatible with the QAQQINI options used to run this query.</li>
|
|
<li>16 - The materialized query table is not usable. </li>
|
|
<li>17 - The union specified in the materialized query table is not compatible
|
|
with the query.</li>
|
|
<li>18 - The constants specified in the materialized query table are not compatible
|
|
with host variable values specified in the query. </li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">MQT_Reason_Codes</td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QQC301</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">List of unique reason codes used by the materialized query tables (each
|
|
materialized query table has a corresponding reason code associated with it)</td>
|
|
</tr>
|
|
<tr><td valign="top" width="35.094339622641506%" headers="d0e41 ">QVRCNT </td>
|
|
<td valign="top" width="12.641509433962264%" headers="d0e43 ">QVRCNT</td>
|
|
<td valign="top" width="52.264150943396224%" headers="d0e45 ">Unique refresh counter</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> |