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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CREATE TYPE 2 INDEX DSN_STATEMENT_CACHE_IDX1<br />

ON DSN_STATEMENT_CACHE_TABLE (STMT_ID ASC) ;<br />

CREATE TYPE 2 INDEX DSN_STATEMENT_CACHE_IDX2<br />

ON DSN_STATEMENT_CACHE_TABLE (STMT_TOKEN ASC)<br />

CLUSTER;<br />

CREATE TYPE 2 INDEX DSN_STATEMENT_CACHE_IDX3<br />

ON DSN_STATEMENT_CACHE_TABLE (EXPLAIN_TS DESC) ;<br />

CREATE AUX TABLE DSN_STATEMENT_CACHE_AUX IN<br />

DSNSTMTC.DSNLOBTS<br />

STORES DSN_STATEMENT_CACHE_TABLE COLUMN STMT_TEXT;<br />

CREATE TYPE 2 INDEX DSN_STATEMENT_CACHE_AUXINX<br />

ON DSN_STATEMENT_CACHE_AUX;<br />

The contents of this new EXPLAIN table are described in Table D-5.<br />

Table D-5 Contents of DSN_STATEMNT_CACHE_TABLE<br />

Column Type Content<br />

STMT_ID Statement ID, EDM unique token<br />

STMT_TOKEN Statement token. User-provided<br />

identification string<br />

COLLID Collection id value is<br />

DSNDYNAMICSQLCACHE<br />

PROGRAM_NAME Program name, Name of package or<br />

DBRM that per<strong>for</strong>med the initial<br />

PREPARE<br />

INV_DROPALT Invalidated by DROP/ALTER<br />

INV_REVOKE Invalidated by REVOKE<br />

INV_LRU Removed from cache by LRU<br />

INV_RUNSTATS Invalidated by RUNSTATS<br />

CACHED_TS Timestamp when statement was<br />

cached<br />

USERS Number of current users of statement.<br />

These are the users that have<br />

prepared or executed the statement<br />

during their current unit of work.<br />

COPIES Number of copies of the statement<br />

owned by all threads in the system<br />

LINES Precompiler line number from the<br />

initial PREPARE<br />

PRIMAUTH User ID - Primary authorization ID of<br />

the user that did the initial PREPARE<br />

CURSQLID CURRENT SQLID of the user that did<br />

the initial prepare<br />

Appendix D. EXPLAIN and its tables 419

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

Saved successfully!

Ooh no, something went wrong!