19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Column Type Content<br />

--------58 Columns<br />

Format-------<strong>Version</strong> 8 ----2003-<br />

D.1.2 DSN_STATEMNT_TABLE<br />

EXPLAIN estimates the cost of executing an SQL SELECT, INSERT, UPDATE, or DELETE<br />

statement. The output appears in a table called DSN_STATEMNT_TABLE. The columns of<br />

this table and their contents are listed in Table D-3. For more in<strong>for</strong>mation about statement<br />

tables, see “Estimating a statement’s cost” on the <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Administration<br />

Guide, SC18-7413.<br />

Table D-3 EXPLAIN enhancements in DSN_STATEMNT_TABLE<br />

Column Name Type Content<br />

QUERYNO INTEGER NOT NULL WITH<br />

DEFAULT<br />

-58 Column Format -<strong>Version</strong> 8 -Mar.<br />

26, 2004-<br />

A number that identifies the statement<br />

being explained.<br />

APPLNAME CHAR(8) NOT NULL WITH DEFAULT The name of the application plan <strong>for</strong><br />

the row, or blank.<br />

PROGNAME VARCHAR (128) NOT NULL WITH<br />

DEFAULT<br />

COLLID VARCHAR (128) NOT NULL WITH<br />

DEFAULT<br />

GROUP_MEMBER CHAR (8) NOT NULL WITH<br />

DEFAULT<br />

The name of the program or package<br />

containing the statement being<br />

explained, or blank.<br />

The collection ID <strong>for</strong> the package.<br />

The member name of the <strong>DB2</strong> that<br />

executed EXPLAIN, or blank.<br />

EXPLAIN_TIME TIMESTAMP The time at which the statement is<br />

processed.<br />

STMT_TYPE CHAR (6) NOT NULL WITH<br />

DEFAULT<br />

C<strong>OS</strong>T_CATEGORY CHAR (1) NOT NULL WITH<br />

DEFAULT<br />

PROCMS INTEGER NOT NULL WITH<br />

DEFAULT<br />

PROCSU INTEGER NOT NULL WITH<br />

DEFAULT<br />

REASON VARCHAR (256) NOT NULL WITH<br />

DEFAULT<br />

STMT_ENCODE CHAR (1) NOT NULL WITH<br />

DEFAULT<br />

The type of statement being<br />

explained. SELECT,<br />

UPDATE,INSERT, or UPDATE...<br />

Indicates if <strong>DB2</strong> was <strong>for</strong>ced to use<br />

default values when making its<br />

estimates (B) or used statistics (A).<br />

The estimated processor cost, in<br />

milliseconds, <strong>for</strong> the SQL statement.<br />

The estimated processor cost, in<br />

service units, <strong>for</strong> the SQL statement.<br />

A string that indicates the reasons <strong>for</strong><br />

putting an estimate into cost category<br />

B.<br />

Encoding scheme of the statement.<br />

A = ASCII<br />

E = EBCDIC<br />

U = Unicode<br />

Appendix D. EXPLAIN and its tables 415

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!