New and changed EXPLAIN table columns in DB2 10
New columns are added to certain EXPLAIN tables in this release of DB2® for z/OS®.
New columns for consistency among EXPLAIN tables
To improve the consistency of EXPLAIN tables, certain columns are added to each EXPLAIN tables if those columns did not previously exist in the table. In cases where the column already existed, the description might have changed to match the information in the following table.
Column name | Data type | Description | Change Type |
---|---|---|---|
SECTNOI | INTEGER NOT NULL DEFAULT -1 | The section number of the statement. The value is taken from the same column in SYSPACKSTMT or SYSSTMT tables and can be used to join tables to reconstruct the access path for the statement. This column is applicable only for static statements. The default value of -1 indicates EXPLAIN information that was captured in DB2 10 for z/OS or earlier versions of DB2. | New unless previously existed |
QUERYNO | INTEGER NOT NULL WITH DEFAULT | A number that
identifies the statement that is being explained. The origin of the value depends on the context of
the row:
When the values of QUERYNO are based on the statement number in the source program, values that exceed 32767 are reported as 0. However, in a very long program, the value is not guaranteed to be unique. If QUERYNO is not unique, the value of EXPLAIN_TIME is unique. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, if the QUERYNO clause is specified, its value is used by DB2. Otherwise DB2 assigns a number based on the line number of the SQL statement in the compiled SQL function or native SQL procedure. |
New unless previously existed |
APPLNAME | VARCHAR(24) NOT NULL WITH DEFAULT1 | The name of the application plan for the row. Applies only to embedded
EXPLAIN statements that are executed from a plan or to statements that are explained when binding a
plan. A blank indicates that the column is not applicable. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column is not used, and is blank. |
New unless previously existed |
PROGNAME | VARCHAR(128) NOT NULL WITH DEFAULT | The name of the program or package containing the statement being
explained. Applies only to embedded EXPLAIN statements and to statements explained as the result of
binding a plan or package. A blank indicates that the column is not applicable. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column indicates the specific name of the compiled SQL function or native SQL procedure. |
New unless previously existed |
COLLID | VARCHAR(128) NOT NULL WITH DEFAULT | The
collection ID:
When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column indicates the schema name of the compiled SQL function or native SQL procedure. |
New unless previously existed |
VERSION | PLAN_TABLE; VARCHAR(122) NOT NULL WITH DEFAULT | The version identifier for the package. Applies only to an embedded
EXPLAIN statement executed from a package or to a statement that is explained when binding a
package. A blank indicates that the column is not applicable. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column indicates the version identifier of the compiled SQL function or native SQL procedure. |
New unless previously existed |
- The data type of this column is VARCHAR(128) NOT
NULL in the following tables:
- DSN_COLDIST_TABLE
- DSN_KEYTGTDIST_TABLE
PLAN_TABLE
The following table describes new and changed columns in PLAN_TABLE. For the current format of PLAN_TABLE and the complete set of column descriptions, see PLAN_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.
Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
ACCESSTYPE | CHAR(2) NOT NULL | The method of accessing the
new table:
|
Changed description |
VERSION | VARCHAR(122) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
COLLID | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
TABLE_TYPE | CHAR(1) | The type of new table:
The value of the column is null if the query uses GROUP BY, ORDER BY, or DISTINCT, which requires an implicit sort. |
Changed description |
TIMESTAMP | CHAR(16) | This column is deprecated. Use EXPLAIN_TIME instead. | Changed description |
HINT_USED
|
VARCHAR(128) NOT NULL WITH DEFAULT | If DB2 used
one of your optimization hints, it puts the identifier for that hint
(the value in OPTHINT) in this column. When a hint that is stored in the SYSIBM.SYSQUERYPLAN catalog table is used, the value of this column is SYSQUERYPLAN:query-id, where query-id is the value of the QUERYID column for the hint in the SYSQUERYPLAN catalog table. |
Changed description |
BIND_
EXPLAIN_ ONLY |
CHAR (1) NOT NULL WITH DEFAULT 'N' | Identifies whether the row is inserted by the BIND command with EXPLAIN(ONLY) option. | New column |
SECTNOI | INTEGER NOT NULL DEFAULT -1 | See New columns for consistency among EXPLAIN tables. | New column |
EXPLAIN_
TIME |
TIMESTAMP NOT NULL WITH DEFAULT | The
time when the EXPLAIN information was captured:
|
New column |
MERGC | CHAR(1) | Indicates whether the composite table is
consolidated before the join.
|
New column |
MERGN | CHAR(1) | Indicates whether the new table is consolidated
before the join.
|
New column |
DSN_COLDIST_TABLE (new table)
The following table describes the columns in the new DSN_COLDIST_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data Type | Description |
---|---|---|
QUERYNO | INTEGER NOT NULL | A number that identifies the statement
that is being explained. The origin of the value depends on the context of the row:
When the values of QUERYNO are based on the statement number in the source program, values that exceed 32767 are reported as 0. However, in certain rare cases, the value is not guaranteed to be unique. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, if the QUERYNO clause is specified, its value is used by DB2. Otherwise DB2 assigns a number based on the line number of the SQL statement in the compiled SQL function or native SQL procedure. |
APPLNAME | VARCHAR(128) NOT NULL | The name of the application plan
for the row. Applies only to embedded EXPLAIN statements that are executed from a plan or to
statements that are explained when binding a plan. A blank indicates that the column is not
applicable. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column is not used, and is blank. |
PROGNAME | VARCHAR(128) NOT NULL | The name of the program or package
containing the statement being explained. Applies only to embedded EXPLAIN statements and to
statements explained as the result of binding a plan or package. A blank indicates that the column
is not applicable. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column indicates the specific name of the compiled SQL function or native SQL procedure. |
COLLID | VARCHAR(128) NOT NULL | The collection ID:
When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column indicates the schema name of the compiled SQL function or native SQL procedure. |
GROUP_MEMBER | VARCHAR(128) NOT NULL | The member name of the DB2 that executed EXPLAIN. The column is blank if the DB2 subsystem was not in a data sharing environment when EXPLAIN was executed. |
SECTNOI | INTEGER NOT NULL | The section number of the statement. The value is taken from the same column in SYSPACKSTMT or SYSSTMT tables and can be used to join tables to reconstruct the access path for the statement. This column is applicable only for static statements. The default value of -1 indicates EXPLAIN information that was captured in DB2 9 or earlier. |
VERSION | VARCHAR(122) NOT NULL | The version identifier for the
package. Applies only to an embedded EXPLAIN statement executed from a package or to a statement
that is explained when binding a package. A blank indicates that the column is not applicable. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column indicates the version identifier of the compiled SQL function or native SQL procedure. |
EXPLAIN_TIME | TIMESTAMP NOT NULL | The
time when the EXPLAIN information was captured:
|
SCHEMA | VARCHAR(128) NOT NULL | The schema of the table that contains the column. |
TBNAME | VARCHAR(128) NOT NULL | The name of the table that contains the column. |
NAME | VARCHAR(128) NOT NULL | Name of the column. If the value of NUMCOLUMNS is greater than 1, this name identifies the first column name of the set of columns associated with the statistics. |
COLVALUE | VARCHAR(2000) NOT NULL FOR BIT DATA | Contains the data of a frequently occurring value in the column.
Statistics are not collected for an index on a ROWID column. If the value has a non-character data
type, the data might not be
printable. This column might contain values that depend on the value of the type column:
|
TYPE | CHAR(1) NOT NULL | The type of statistics:
|
CARDF | FLOAT NOT NULL | For TYPE='C', the number of distinct values for the
column group. For TYPE='H', the number of distinct values for the column group in a quantile
indicated by the value of the QUANTILENO
column. For TYPE='T', a value related to real-time statistics table values that are determined by the COLVALUE column. For TYPE= 'L', a value related to a real-time statistics column value that is determined by the COLVALUE column. The QUANTILENO column contains the column number. The NAME column contains the column name. For TYPE='P' a value related to real-time statistics partition value that is determined by the COLVALUE column. The QUANTILENO column contains the partition number. |
COLGROUPCOLNO | VARCHAR(254) NOT NULL FOR BIT DATA | The identity of the set of columns associated with the statistics. If the statistics are only associated with a single column, the field contains a zero length. Otherwise, the field is an array of SMALLINT column numbers with a dimension equal to the value in the NUMCOLUMNS column. This is an updatable column. |
NUMCOLUMNS | SMALLINT NOT NULL | Identifies the number of columns associated with the statistics. |
FREQUENCYF | FLOAT NOT NULL | The percentage of rows in the table with the value that is specified in the COLVALUE column when the number is multiplied by 100. For example, a value of '1' indicates 100%. A value of '.153' indicates 15.3%. |
QUANTILENO | SMALLINT NOT NULL | The ordinary sequence number of a quantile in the whole
consecutive value range, from low to high. This column is not updatable.
For TYPE= 'L', this column contains the column number. For TYPE='P', the column contains the partition number. |
LOWVALUE | VARCHAR(2000) NOT NULL FOR BIT DATA | For TYPE='H', this is the lower bound for the quantile indicated by the value of the QUANTILENO column. Not used if the value of the TYPE column is not 'H'. This column is not updatable. |
HIGHVALUE | VARCHAR(2000) NOT NULL FOR BIT DATA | For TYPE='H', this is the higher bound for the quantile indicated by the value of the QUANTILENO column. This column is not used if the value of the TYPE column is not 'H'. This column is not updatable. |
DSN_DETCOST_TABLE
The following table describes new and changed columns in DSN_DETCOST_TABLE. For the complete set of column descriptions, see DSN_DETCOST_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.
Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | CARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
UNCERTAINTY | FLOAT(4) NOT NULL WITH DEFAULT | Describes the uncertainty factor of inner table index access. It is aggregated from uncertainty of inner table probing predicates. A larger value indicates a higher uncertainty. 0 indicates no uncertainty or uncertainty not considered. | New column |
TABREF | VARCHAR(64) NOT NULL FOR BIT DATA | IBM internal use only. | Changed to FOR BIT DATA |
UNCERTAINTY_1T | FLOAT(4) NOT NULL WITH DEFAULT | Describes the uncertainty factor of ONECOMPROWS column of the table. It is aggregated from all local predicates on the table. A larger value indicates a higher uncertainty. 0 indicates no uncertainty or uncertainty not considered. | New column |
SECTNOI | FLOAT(4) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | FLOAT(4) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
IMNP | FLOAT(4) NOT NULL WITH DEFAULT | IBM® internal use only. | New column |
DMNP | FLOAT(4) NOT NULL WITH DEFAULT | IBM internal use only. | New column |
IMJC | FLOAT(4) NOT NULL WITH DEFAULT | IBM internal use only. | New column |
IMFC | FLOAT(4) NOT NULL WITH DEFAULT | IBM internal use only. | New column |
IMJBC | FLOAT(4) NOT NULL WITH DEFAULT | IBM internal use only. | New column |
IMJFC | FLOAT(4) NOT NULL WITH DEFAULT | IBM internal use only. | New column |
CRED | INTEGER | IBM internal use only. | New column |
DSN_FILTER_TABLE
The following table describes new and changed columns in DSN_FILTER_TABLE. For the complete set of column descriptions, see DSN_FILTER_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | VARCHAR(128) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | Changed description |
COLLID | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
SECTNOI | INTEGER | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | VARCHAR(122) | See New columns for consistency among EXPLAIN tables. | New column |
PUSHDOWN | CHAR(1) | Whether
the predicate is pushed down the Index Manager or Data Manager subcomponents
for evaluation:
|
New column |
DSN_FUNCTION_TABLE
New columns VERSION and SECURE are added to the DSN_FUNCTION_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.
Column name | Data type | Description | Change Type |
---|---|---|---|
FUNC_VERSION | VARCHAR(122) NOT NULL WITH DEFAULT | For a version of a non-inline SQL scalar function, this column contains the version identifier. For all other cases, this column contains a zero length string. A version of a non-inline SQL scalar function is defined in SYSIBM. SYSROUTINES with ORIGIN='Q', FUNCTIONTION_TYPE='S', INLINE='N', and VERSION column containing the version identifier. | New column |
SECURE | CHAR(1) NOT NULL WITH DEFAULT | Indicates whether the user defined function is secure. | New column |
SECTNOI | INTEGER | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | VARCHAR(122) | See New columns for consistency among EXPLAIN tables. | New column |
DSN_KEYTGTDIST_TABLE (new table)
The following table describes the complete set of columns in the new DSN_KEYTGTDIST_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data Type | Description |
---|---|---|
QUERYNO | INTEGER NOT NULL | A number that identifies the statement
that is being explained. The origin of the value depends on the context of the row:
When the values of QUERYNO are based on the statement number in the source program, values that exceed 32767 are reported as 0. However, in certain rare cases, the value is not guaranteed to be unique. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, if the QUERYNO clause is specified, its value is used by DB2. Otherwise DB2 assigns a number based on the line number of the SQL statement in the compiled SQL function or native SQL procedure. |
APPLNAME | VARCHAR(128) NOT NULL | The name of the application plan
for the row. Applies only to embedded EXPLAIN statements that are executed from a plan or to
statements that are explained when binding a plan. A blank indicates that the column is not
applicable. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column is not used, and is blank. |
PROGNAME | VARCHAR(128) NOT NULL | The name of the program or package
containing the statement being explained. Applies only to embedded EXPLAIN statements and to
statements explained as the result of binding a plan or package. A blank indicates that the column
is not applicable. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column indicates the specific name of the compiled SQL function or native SQL procedure. |
COLLID | VARCHAR(128) NOT NULL | The collection ID:
When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column indicates the schema name of the compiled SQL function or native SQL procedure. |
GROUP_MEMBER | VARCHAR(128) NOT NULL | The member name of the DB2 that executed EXPLAIN. The column is blank if the DB2 subsystem was not in a data sharing environment when EXPLAIN was executed. |
SECTNOI | INTEGER NOT NULL | The section number of the statement. The value is taken from the same column in SYSPACKSTMT or SYSSTMT tables and can be used to join tables to reconstruct the access path for the statement. This column is applicable only for static statements. The default value of -1 indicates EXPLAIN information that was captured in DB2 9 or earlier. |
VERSION | VARCHAR(122) NOT NULL | The version identifier for the
package. Applies only to an embedded EXPLAIN statement executed from a package or to a statement
that is explained when binding a package. A blank indicates that the column is not applicable. When the SQL statement is embedded in a compiled SQL function or native SQL procedure, this column indicates the version identifier of the compiled SQL function or native SQL procedure. |
EXPLAIN_TIME | TIMESTAMP NOT NULL | The
time when the EXPLAIN information was captured:
|
IXSCHEMA | VARCHAR(128) NOT NULL | The qualifier of the index. |
IXNAME | VARCHAR(128) NOT NULL | The name of the index. |
KEYSEQ | VARCHAR(128) NOT NULL | The numeric position of the key-target in the index. |
KEYVALUE | VARCHAR(2000) NOT NULL FOR BIT DATA | Contains the data of a frequently occurring value. Statistics are
not collected for an index on a ROWID column. If the value has a non-character data type, the data
might not be printable. When the value of the TYPE column contains 'I', this column contains one of the following values:
|
TYPE | CHAR(1) NOT NULL | The type of statistics:
|
CARDF | FLOAT NOT NULL | For TYPE='C', the number of distinct values for the column group.
For TYPE='H', the number of distinct values for the column group in a quantile indicated by the
value of the QUANTILENO column. For TYPE='I', a value related to real-time index statistics values determined by the KEYVALUE column. |
KEYGROUPKEYNO | VARCHAR(254) NOT NULL FOR BIT DATA | Contains a value that identifies the set of keys that are associated with the statistics. If the statistics are associated with more than a single key, it contains an array of SMALLINT key numbers with a dimension that is equal to the value in NUMKEYS. If the statistics are only associated with a single key, it contains 0. |
NUMKEYS | SMALLINT NOT NULL | The number of keys that are associated with the statistics. |
FREQUENCYF | FLOAT NOT NULL | The percentage of rows in the table with the value that is specified in the COLVALUE column when the number is multiplied by 100. For example, a value of '1' indicates 100%. A value of '.153' indicates 15.3%. |
QUANTILENO | SMALLINT NOT NULL | The ordinary sequence number of a quantile in the whole consecutive value range, from low to high. This column is not updatable |
LOWVALUE | VARCHAR(2000) NOT NULL FOR BIT DATA | For TYPE='H', this is the lower bound for the quantile indicated by the value of the QUANTILENO column. Not used if the value of the TYPE column is not 'H'. This column is not updatable. |
HIGHVALUE | VARCHAR(2000) NOT NULL FOR BIT DATA | For TYPE='H', this is the higher bound for the quantile indicated by the value of the QUANTILENO column. This column is not used if the value of the TYPE column is not 'H'. This column is not updatable. |
DSN_PGRANGE_TABLE
The following table describes new and changed columns in DSN_PGRANGE_TABLE. For the complete set of column descriptions, see DSN_PGRANGE_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
SECTNOI | INTEGER NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | New column |
COLLID | VARCHAR(128) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | VARCHAR(122) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
DSN_PGROUP_TABLE
The following table describes new and changed columns in DSN_PGROUP_TABLE. For the complete set of column descriptions, see DSN_PGROUP_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
COLLID | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
VERSION | VARCHAR(122) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
RANGEKIND | CHAR(1) | The range type:
|
Changed description |
APPLNAME | VARCHAR(24) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
SECTNOI | INTEGER NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
STRAW_MODEL | CHAR(1) NOT NULL WITH DEFAULT | IBM internal use only. | New column |
DSN_PREDICAT_TABLE
The following table describes new and changed columns in DSN_PREDICAT_TABLE. For the complete set of column descriptions, see DSN_PREDICAT_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
CLAUSE | CHAR(8) | The clause where the predicate exists:
|
Changed description |
ORIGIN | CHAR(1) | Indicates
the origin of the predicate.
|
New column |
UNCERTAINTY | FLOAT | Describes the uncertainty factor of a predicate's estimated filter factor. A bigger value indicates a higher degree of uncertainty. Value zero indicates no uncertainty or uncertainty not considered. | New column |
SECTNOI | INTEGER NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
COLLID | VARCHAR(128) | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | VARCHAR(122) | See New columns for consistency among EXPLAIN tables. | New column |
DSN_PTASK_TABLE
The following table describes new and changed columns in DSN_PTASK_TABLE. For the complete set of column descriptions, see DSN_PTASK_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
SECTOI | INTEGER NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
COLLID | VARCHAR(128) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | VARCHAR(122) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
DSN_QUERY_TABLE
The following table describes new and changed columns in DSN_QUERY_TABLE. For the complete set of column descriptions, see DSN_QUERY_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
SECTNOI | INTEGER NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | New column |
PROGNAME | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | New column |
COLLID | VARCHAR(128) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | VARCHAR(122) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
DSN_SORTKEY_TABLE
The following table describes new and changed columns in DSN_SORTKEY_TABLE. For the complete set of column descriptions, see DSN_SORTKEY_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
COLLID | VARCHAR(128) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | Changed description |
SECTNOI | INTEGER NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | VARCHAR(122) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
DSN_SORT_TABLE
The following table describes new and changed columns in DSN_SORT_TABLE. For the complete set of column descriptions, see DSN_SORT_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
COLLID | VARCHAR(128) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | Changed description |
SECTNOI | INTEGER NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | VARCHAR(122) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
DSN_STATEMENT_CACHE_TABLE
A new column GROUP_MEMBER is added, and new statistics columns are added and enlarged to 64-bit integers.
Column name | Data type | Description | Change Type |
---|---|---|---|
GROUP_MEMBER | VARCHAR(24) | The name of the DB2 data-sharing member that inserted this row. This column is null if the subsystem is not configured for data-sharing. | New column |
STAT_GPAGB | BIGINT NOT NULL WITH DEFAULT | The number of getpage operations that are performed for the statement. | New column |
STAT_SYNRB | BIGINT NOT NULL WITH DEFAULT | The number of synchronous buffer reads that are performed for the statement. | New column |
STAT_WRITB | BIGINT NOT NULL WITH DEFAULT | The number of buffer write operations that are performed for the statement. | New column |
STAT_EROWB | BIGINT NOT NULL WITH DEFAULT | The number of rows that are examined for the statement. | New column |
STAT_PROWB | BIGINT NOT NULL WITH DEFAULT | The number of rows that are processed for the statement. | New column |
STAT_SORTB | BIGINT NOT NULL WITH DEFAULT | The number of sorts that are performed for the statement. | New column |
LITERAL_REPL | CHAR(1) | Identifies statements where the literals values are replaced by the '&' symbol. | New column |
STATUS_SUS_LATCH | FLOAT NOT NULL WITH DEFAULT | The accumulated wait time for latch requests for the statement. | New column |
STATUS_SUS_PLATCH | FLOAT NOT NULL WITH DEFAULT | The accumulated wait time for page latch requests for the statement. | New column |
STATUS_SUS_DRAIN | FLOAT NOT NULL WITH DEFAULT | The accumulated wait time for drain lock requests for the statement. | New column |
STATUS_SUS_CLAIM | FLOAT NOT NULL WITH DEFAULT | The accumulated wait time for claim count requests for the statement. | New column |
STATUS_SUS_LOG | FLOAT NOT NULL WITH DEFAULT | The accumulated wait time for log writer requests for the statement. | New column |
DSN_STATEMNT_TABLE
The following table describes new and changed columns in DSN_STATEMNT_TABLE. For the complete set of column descriptions, see DSN_STATEMNT_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.
Column name | Data type | Description | Change Type |
---|---|---|---|
SECTNOI | INTEGER NOT NULL DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | PLAN_TABLE; VARCHAR(122) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
DSN_STRUCT_TABLE
The following table describes new and changed columns in DSN_STRUCT_TABLE. For the complete set of column descriptions, see DSN_STRUCT_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
APPLNAME | VARCHAR(24) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
ORIGIN | CHAR(1) NOT NULL WITH DEFAULT | Indicates
the origin of the query block:
|
New column |
SECTNOI | INTEGER NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
COLLID | VARCHAR(128) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
VERSION | VARCHAR(122) NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |
DSN_VIEWREF_TABLE
The following table describes new and changed columns in DSN_VIEWREF_TABLE. For the complete set of column descriptions, see DSN_VIEWREF_TABLE. The format is shown in the sample CREATE TABLE statement in member DSNTESC of the SDSNSAMP library.Column name | Data type | Description | Change Type |
---|---|---|---|
QUERYNO | INTEGER NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
APPLNAME | VARCHAR(24) | See New columns for consistency among EXPLAIN tables. | Changed description |
PROGNAME | VARCHAR(128) NOT NULL | See New columns for consistency among EXPLAIN tables. | Changed description |
VERSION | VARCHAR(128) | See New columns for consistency among EXPLAIN tables. | Changed description |
COLLID | VARCHAR(128) | See New columns for consistency among EXPLAIN tables. | Changed description |
SECTNOI | INTEGER NOT NULL WITH DEFAULT | See New columns for consistency among EXPLAIN tables. | New column |