Database monitor view 3001 - Index Used

Displays the SQL logical view format for database monitor QQQ3001


Create View QQQ3001 as 
  (SELECT 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, 
          QQILNM as System_Index_Schema, 
          QQIFNM as System_Index_Name, 
          QQIMNM as Index_Member_Name, 
          QQTOTR as Table_Total_Rows, 
          QQREST as Estimated_Rows_Selected, 
          QQFKEY as Index_Probe_Keys, 
          QQKSEL as Index_Scan_Keys, 
          QQAJN as Estimated_Join_Rows, 
          QQEPT as Estimated_Processing_Time, 
          QQJNP as Join_Position, 
          QQI1 as DataSpace_Number, 
          QQC21 as Join_Method, 
          QQC22 as Join_Type, 
          QQC23 as Join_Operator, 
          QQI2 as Index_Advised_Probe_Count, 
          QQKP as Index_Probe_Used, 
          QQI3 as Index_Probe_Column_Count, 
          QQKS as Index_Scan_Used, 
          QQDSS as DataSpace_Selection, 
          QQIDXA as Index_Advised, 
          QQRCOD as Reason_Code, 
          QQIDXD as Index_Advised_Columns,
          QQC11 as Constraint, 
          QQ1000 as Constraint_Name,  
          QVQTBL as Table_Name, 
          QVQLIB as Table_Schema, 
          QVPTBL as Base_Table_Name, 
          QVPLIB as Base_Table_Schema,
          QVINAM as Index_Name, 
          QVILIB as Index_Schema,  
          QVBNDY as Bound, 
          QVRCNT as Unique_Refresh_Counter, 
          QVJFANO as Join_Fanout, 
          QVFILES as Join_Table_Count, 
          QVPARPF as Parallel_Prefetch, 
          QVPARPL as Parallel_Preload, 
          QVPARD as Parallel_Degree_Requested, 
          QVPARU as Parallel_Degree_Used, 
          QVPARRC as Parallel_Degree_Reason_Code, 
          QVCTIM as Estimated_Cumulative_Time,
          QVc14 as Index_Only_Access, 
          QQc12 as Index_Fits_In_Memory, 
          QQC15 as Index_Type, 
          QVC12 as Index_Usage, 
          QQI4 as Index_Entries, 
          QQI5 as Unique_Keys, 
          QQI6 as Percent_Overflow, 
          QQI7 as Vector_Size, 
          QQI8 as Index_Size, 
          QQIA as Index_Page_Size, 
          QVP154 as Pool_Size, 
          QVP155 as Pool_Id, 
          QVP156 as Table_Size, 
          QQC16 as Skip_Sequential_Table_Scan, 
          QVC13 as Tertiary_Indexes_Exist, 
          QVC3001 as DataSpace_Selection_COlumns, 
          QQC14 as Derived_Column_Selection, 
          QVC3002 as Derived_Column_Selection_Columns, 
          QVC3003 as Table_Columns_For_Index_Probe, 
          QVC3004 as Table_Columns_For_Index_Scan, 
          QVC3005 as Join_Selection_Columns, 
          QVC3006 as Ordering_Columns, 
          QVC3007 as Grouping_Columns, 
          QQC18 as Read_Trigger, 
          QVP157 as UDTF_Cardinality, 
          QVC1281 as UDTF_Specific_Name, 
          QVC1282 as UDTF_Specific_Schema, 
          QQC13 as MQT_Replacement, 
          QQSMINTF as Plan_Iteration_Number, 
          QVC3008 as Include_Values, 
          QVC15 as Sparse_Index, 
          QQF1 as Average_Read_Time,
          QVC11 as Distinct_Indicator
   FROM   UserLib/DBMONTable 
   WHERE  QQRID=3001)  

Table 1. QQQ3001 - Index Used
View Column Name Table Column Name Description
Row_ID QQRID Row identification
Time_Created QQTIME Time row was created
Join_Column QQJFLD Join column (unique per job)
Relational_Database_Name QQRDBN Relational database name
System_Name QQSYS System name
Job_Name QQJOB Job name
Job_User QQUSER Job user
Job_Number QQJNUM Job number
Thread_ID QQI9 Thread identifier
Unique_Count QQUCNT Unique count (unique per query)
User_Defined QQUDEF User-defined column
Unique_SubSelect_Number QQQDTN Unique subselect number
SubSelect_Nested_Level QQQDTL Subselect nested level
Materialized_View_Subselect_Number QQMATN Materialized view subselect number
Materialized_View_Nested_Level QQMATL Materialized view nested level
Materialized_View_Union_Level QVP15E Materialized view union level
Decomposed_Subselect_Number QVP15A Decomposed query subselect number, unique across all decomposed subselects
Total_Number_Decomposed_SubSelects QVP15B Total number of decomposed subselects
Decomposed_SubSelect_Reason_Code QVP15C Decomposed query subselect reason code
Starting_Decomposed_SubSelect QVP15D Decomposed query subselect number for the first decomposed subselect
System_Table_Schema QQTLN Schema of table queried
System_Table_Name QQTFN Name of table queried
Member_Name QQTMN Member name of table queried
System_Base_Table_Schema QQPTLN Schema name of base table
System_Base_Table_Name QQPTFN Name of base table for table queried
Base_Member_Name QQPTMN Member name of base table
System_Index_Schema QQILNM Schema name of index used for access
System_Index_Name QQIFNM Name of index used for access
Index_Member_Name QQIMNM Member name of index used for access
Table_Total_Rows QQTOTR Total rows in base table
Estimated_Rows_Selected QQREST Estimated number of rows selected
Index_Probe_Keys QQFKEY Rows selected through index scan-key positioning
Index_Scan_Keys QQKSEL Rows selected through index scan-key selection
Estimated_Join_Rows QQAJN Estimated number of joined rows
Estimated_Processing_Time QQEPT Estimated processing time, in seconds
Join_Position QQJNP Join position - when available
DataSpace_Number QQI1 Dataspace number
Join_Method QQC21 Join method - when available
  • NL - Nested loop
  • MF - Nested loop with selection
  • HJ - Hash join
Join_Type QQC22 Join type - when available
  • IN - Inner join
  • PO - Left partial outer join
  • EX - Exception join
Join_Operator QQC23 Join operator - when available
  • EQ - Equal
  • NE - Not equal
  • GT - Greater than
  • GE - Greater than or equal
  • LT - Less than
  • LE- Less than or equal
  • CP - Cartesian product
Index_Advised_Probe_Count QQI2 Number of advised key columns that use index scan-key positioning
Index_Probe_Used QQKP Index scan-key positioning
  • Y - Yes
  • N - No
Index_Probe_Column_Count QQI3 Number of columns that use index scan-key positioning for the index used
Index_Scan_Used QQKS Index scan-key selection
  • Y - Yes
  • N - No
DataSpace_Selection QQDSS Dataspace selection
  • Y - Yes
  • N - No
Index_Advised QQIDXA Index advised
  • Y - Yes
  • N - No
Reason_Code QQRCOD Reason code
  • I1 - Row selection
  • I2 - Ordering/Grouping
  • I3 - Row selection and Ordering/Grouping
  • I4 - Nested loop join
  • I5 - Row selection using bitmap processing
  • Start of changeI7 - Index Merge OrderingEnd of change
  • Start of changeI8 - Encoded Vector Index Only Column ProjectionEnd of change
Index_Advised_Columns QQIDXD Columns for index advised
Constraint QQC11 Index is a constraint (Y/N)
Constraint_Name QQ1000 Constraint name
Table_Name QVQTBL Queried table, long name
Table_Schema QVQLIB Schema of queried table, long name
Base_Table_Name QVPTBL Base table, long name
Base_Table_Schema QVPLIB Schema of base table, long name
Index_Name QVINAM Name of index (or constraint) used, long name
Index_Schema QVILIB Library of index used, long name
Bound QVBNDY I/O or CPU bound. Possible values are:
  • I - I/O bound
  • C - CPU bound
Unique_Refresh_Counter QVRCNT Unique refresh counter
Join_Fanout QVJFANO Join fanout. Possible values are:
  • N - Normal join situation where fanout is allowed and each matching row of the join fanout is returned.
  • D - Distinct fanout. Join fanout is allowed however none of the join fanout rows are returned.
  • U - Unique fanout. Join fanout is not allowed. Error situation if join fanout occurs.
Join_Table_Count QVFILES Number of tables joined
Parallel_Prefetch QVPARPF Parallel Prefetch (Y/N)
Parallel_Preload QVPARPL Parallel Preload (Y/N)
Parallel_Degree_Requested QVPARD Parallel degree requested
Parallel_Degree_Used QVPARU Parallel degree used
Parallel_Degree_Reason_Code QVPARRC Reason parallel processing was limited
Estimated_Cumulative_Time QVCTIM Estimated cumulative time, in seconds
Index_Only_Access QVC14 Index only access (Y/N)
Index_Fits_In_Memory QQC12 Index fits in memory (Y/N)
Index_Type QQC15 Type of Index. Possible values are:
  • B - Binary Radix Index
  • C - Constraint (Binary Radix)
  • E - Encoded Vector Index (EVI)
  • X - Query created temporary index
Index_Usage QVC12 Index Usage. Possible values are:
  • P - Primary Index
  • T - Tertiary (AND or OR) Index
Index_Entries QQI4 Number of index entries
Unique_Keys QQI5 Number of unique key values
Percent_Overflow QQI6 Percent overflow
Vector_Size QQI7 Vector size
Index_Size QQI8 Index size
Index_Page_Size QQIA Index page size
Pool_Size QVP154 Pool size
Pool_Id QVP155 Pool ID
Table_Size QVP156 Table size
Skip_Sequential_Table_Scan QQC16 Skip sequential table scan (Y/N)
Tertiary_Indexes_Exist QVC13 Tertiary indexes exist (Y/N)
DataSpace_Selection_Columns QVC3001 Columns used for dataspace selection
Derived_Column_Selection QQC14 Derived column selection (Y/N)
Derived_Column_Selection_Columns QVC3002 Columns used for derived column selection
Table_Column_For_Index_Probe QVC3003 Columns used for index scan-key positioning
Table_Column_For_Index_Scan QVC3004 Columns used for index scan-key selection
Join_Selection_Columns QVC3005 Columns used for Join selection
Ordering_Columns QVC3006 Columns used for Ordering
Grouping_Columns QVC3007 Columns used for Grouping
Read_Trigger QQC18 Read Trigger (Y/N)
UDTF_Cardinality QVP157 Cardinality for user-defined table function.
UDTF_Specific_Name QVC1281 Specific name for user-defined table function.
UDTF_Specific_Schema QVC1282 Specific schema for user-defined table function.
MQT_Replacement QQC13 Materialized Query Table replaced queried table (Y/N)
Plan_Iteration_Number QQSMINTF AQP Plan iteration number, original optimization = 1
Include_Values QVC3008 Encoded Vector indexes only.

Aggregates included as part of index creation and predetermined for Grouping query request.

Sparse_Index QVC15 Index contains sparse selection or Select/Omit selection criteria (Y/N).
Average_Read_Time QQF1 Average disk I/O time for this object
Start of changeDistinct_IndicatorEnd of change Start of changeQVC11End of change Start of changeDistinct Scan or Probe was used (Y/N)End of change