DB2 - Problem description
Problem IC87874 | Status: Closed |
DB2EXFMT. OPTIM DATA STUDIO AND QUERY WORKLOAD TUNER EXPLAINS DO NOT SHOW ROWID ($RID$) COLUMN FOR IXSCAN AND FETCH OPERATORS | |
product: | |
DB2 FOR LUW / DB2FORLUW / A10 - DB2 | |
Problem description: | |
When a Query Access Plan is displayed using either the db2exfmt utility, or the IBM Optim(TM) family of Database tools, such as visual explain or the access plan graph or access plan explorer features under Optim Query Workload Tuner, the RowID column (shown as $RID$ in the column list) is not included in the list of columns that are retrieved from an index and used either in Index ANDing, Index ORing, Starjoin IXA, or Fetch operations. In some cases, if the $RID$ is the only column returned by these operators, it appears in the current version of the explains that no columns are output from these operators. The need is to get the $RID$ column passed through these operators so they can indicate that output columns are provided. In the following extract of db2exfmt output, prior to this fix, the Q4.$RID$ column was missing: Input Streams: ------------- 8) From Object FINLAY.FX4 Estimated number of rows: 1e+06 Number of columns: 2 Subquery predicate ID: Not Applicable Column Names: ------------ +Q4."D4"(A)+Q4.$RID$ Output Streams: -------------- 9) To Operator #19 Estimated number of rows: 10 Number of columns: 2 Subquery predicate ID: Not Applicable Column Names: ------------ +Q4."D4"(A)+Q4.$RID$ This missing column can lead to a number of issues with the various tools: 1) db2exfmt cannot indicate the quantifier number "Qxxx" in the query graph because no columns may show as flowing from an Index Scan (IXSCAN) operator. 2) Optim Query Workload Tuner may not be able to perform column analysis functions because either extra, unnecessary columns are shown being retrieved from the index, or columns may be missing from Explain. This fix only affects the output from the Explain Facility for DB2 for Linux, Unix and Windows output, it does not in any way affect or indicate a problem or issue with the query access plan. For IXSCAN operators, the list of columns shown in explain is dervied for Explain purposes only and does not impact the plan execution. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * All users of DB2 LUW and IBM Optim(TM) family of Database * * tools * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade the DB2 Linux, Unix and Windows server to v10.1fp1 * * or higher * **************************************************************** | |
Local Fix: | |
Solution | |
Upgrade the DB2 Linux, Unix and Windows server to v10.1fp1 or higher in order for the missing "RID" (RowID) column to be displayed in both db2exfmt and IBM Optim(TM) family of Database tools. | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 04.11.2012 09.11.2012 09.11.2012 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |