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

342 lines
20 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 3007 - Optimizer Timed Out" />
<meta name="DC.subject" content="summary row, optimizer timed out" />
<meta name="keywords" content="summary row, optimizer timed out" />
<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="t3007" />
<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 3007 - Optimizer Timed Out</title>
</head>
<body id="t3007"><a name="t3007"><!-- --></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 3007 - Optimizer Timed Out</h1>
<div><div class="example"> <pre><strong>Create View</strong> QQQ3007 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,
QQ1000 as Index_Names,
QQC11 as Optimizer_Timed_Out,
QQC301 as Reason_Codes,
QVQTBL as Table_Name,
QVQLIB as Table_Schema,
QVPTBL as Base_Table_Name,
QVPLIB as Base_Table_Schema,
QQJNP as Join_Position,
QQI6 as DataSpace_Number,
QQC21 as Join_Method,
QQC22 as Join_Type,
QQC23 as Join_Operator,
QVJFANO as Join_Fanout,
QVFILES as Join_Table_Count,
QVRCNT as Unique_Refresh_Counter
<strong>FROM</strong> UserLib/DBMONTable
<strong>WHERE</strong> QQRID=3007) </pre>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="hsides" border="1" rules="rows"><caption>Table 1. QQQ3007 - Optimizer Timed Out</caption><thead align="left"><tr><th align="left" valign="bottom" width="35.04761904761905%" id="d0e43">View Column Name</th>
<th align="left" valign="bottom" width="11.80952380952381%" id="d0e45">Table Column Name</th>
<th align="left" valign="bottom" width="53.142857142857146%" id="d0e47">Description</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Row_ID</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQRID</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Row identification</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Time_Created</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQTIME</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Time row was created</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Join_Column</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQJFLD</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Join column (unique per job)</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Relational_Database_Name </td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQRDBN</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Relational database name</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">System_Name</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQSYS</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">System name</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Job_Name</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQJOB</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Job name</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Job_User</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQUSER</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Job user</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Job_Number</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQJNUM</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Job number</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Thread_ID</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQI9 </td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Thread identifier</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Unique_Count</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQUCNT</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Unique count (unique per query)</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">User_Defined</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQUDEF</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">User defined column</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Unique_SubSelect_Number</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQQDTN</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Unique subselect number</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">SubSelect_Nested_Level</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQQDTL</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Subselect nested level </td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Materialized_View_Subselect_Number</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQMATN</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Materialized view subselect number </td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Materialized_View_Nested_Level</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQMATL</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Materialized view nested level</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Materialized_View_Union_Level</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVP15E</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Materialized view union level</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Decomposed_Subselect_Number</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVP15A</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Decomposed query subselect number, unique across all
decomposed subselects</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Total_Number_Decomposed_SubSelects</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVP15B</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Total number of decomposed subselects</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Decomposed_SubSelect_Reason_Code</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVP15C</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Decomposed query subselect reason code</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Starting_Decomposed_SubSelect</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVP15D</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Decomposed query subselect number for the first decomposed
subselect</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">System_Table_Schema</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQTLN</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Schema of table queried </td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">System_Table_Name</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQTFN</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Name of table queried</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Member_Name</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQTMN </td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Member name of table queried </td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">System_Base_Table_Schema</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQPTLN</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Schema name of base table</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">System_Base_Table_Name</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQPTFN</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Name of base table for table queried</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Base_Member_Name</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQPTMN</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Member name of base table</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Index_Names</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQ1000</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Names of indexes not used and reason code.<ol><li>Access path was not in a valid state. The system invalidated the access
path.</li>
<li>Access path was not in a valid state. The user requested that the access
path be rebuilt.</li>
<li>Access path is a temporary access path (resides in library QTEMP) and
was not specified as the file to be queried.</li>
<li>The cost to use this access path, as determined by the optimizer, was
higher than the cost associated with the chosen access method.</li>
<li>The keys of the access path did not match the fields specified for the
ordering/grouping criteria. For distributed file queries, the access path
keys must exactly match the ordering fields if the access path is to be used
when ALWCPYDTA(*YES or *NO) is specified.</li>
<li>The keys of the access path did not match the fields specified for the
join criteria.</li>
<li>Use of this access path will not minimize delays when reading records
from the file. The user requested to minimize delays when reading records
from the file.</li>
<li>The access path cannot be used for a secondary file of the join query
because it contains static select/omit selection criteria. The join-type of
the query does not allow the use of select/omit access paths for secondary
files.</li>
<li>File contains record ID selection. The join-type of the query forces a
temporary access path to be built to process the record ID selection.</li>
<li>The user specified ignore decimal data errors on the query. This disallows
the use of permanent access paths.</li>
</ol>
</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Index_Names (continued)</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQ1000</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 "><ul><li>11. The access path contains static select/omit selection
criteria which is not compatible with the selection in the query.</li>
<li>12. The access path contains static select/omit selection criteria whose
compatibility with the selection in the query cannot be determined. Either
the select/omit criteria or the query selection became too complex during
compatibility processing.</li>
<li>13. The access path contains one or more keys which may be changed by
the query during an insert or update.</li>
<li>14. The access path is being deleted or is being created in an uncommitted
unit of work in another process.</li>
<li>15. The keys of the access path matched the fields specified for the ordering/grouping
criteria. However, the sequence table associated with the access path did
not match the sequence table associated with the query.</li>
<li>16. The keys of the access path matched the fields specified for the join
criteria. However, the sequence table associated with the access path did
not match the sequence table associated with the query.</li>
<li>17. The left-most key of the access path did not match any fields specified
for the selection criteria. Therefore, key row positioning cannot be performed,
making the cost to use this access path higher than the cost associated with
the chosen access method.</li>
<li>18. The left-most key of the access path matched a field specified for
the selection criteria. However, the sequence table associated with the access
path did not match the sequence table associated with the query. Therefore,
key row positioning cannot be performed, making the cost to use this access
path higher than the cost associated with the chosen access method.</li>
<li>19. The access path cannot be used because the secondary file of the join
query is a select/omit logical file. The join-type requires that the select/omit
access path associated with the secondary file be used or, if dynamic, that
an access path be created by the system.</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Optimizer_Timed_Out</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQC11</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Optimizer timed out (Y/N)</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Reason_Codes</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQC301</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">List of unique reason codes used by the indexes that timed out (each
index has a corresponding reason code associated with it)</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Table_Name</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVQTBL</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Queried table, long name</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Table_Schema</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVQLIB</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Schema of queried table, long name</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Base_Table_Name</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVPTBL</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Base table, long name </td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Base_Table_Schema</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVPLIB</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Schema of base table, long name </td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Join_Position</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQJNP</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Join position - when available</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">DataSpace_Number</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQI6</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Dataspace number </td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Join_Method</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQC21</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Join method - when available <ul><li>NL - Nested loop</li>
<li>MF - Nested loop with selection</li>
<li>HJ - Hash join</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Join_Type</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQC22</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Join type - when available <ul><li>IN - Inner join</li>
<li>PO - Left partial outer join</li>
<li>EX - Exception join</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Join_Operator</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QQC23 </td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Join operator - when available <ul><li>EQ - Equal</li>
<li>NE - Not equal</li>
<li>GT - Greater than</li>
<li>GE - Greater than or equal</li>
<li>LT - Less than</li>
<li>LE - Less than or equal</li>
<li>CP - Cartesian product</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Join_Fanout</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVJFANO</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Join fan out. Possible values are: <ul><li>N - Normal join situation where fanout is allowed and each matching row
of the join fanout is returned.</li>
<li>D - Distinct fanout. Join fanout is allowed however none of the join fanout
rows are returned.</li>
<li>U - Unique fanout. Join fanout is not allowed. Error situation if join
fanout occurs.</li>
</ul>
</td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Join_Table_Count</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVFILES</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">Number of tables joined </td>
</tr>
<tr><td valign="top" width="35.04761904761905%" headers="d0e43 ">Unique_Refresh_Counter</td>
<td valign="top" width="11.80952380952381%" headers="d0e45 ">QVRCNT</td>
<td valign="top" width="53.142857142857146%" headers="d0e47 ">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>