19.08.2015 Views

DB2 9 & 10 for z/OS Overview

DB2 9 & 10 for zOS Overview - The Open Systems Group

DB2 9 & 10 for zOS Overview - The Open Systems Group

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

Migration Planning WorkshopEXPLAIN Changes...• EXPLAIN tables must be in:– V8 or later <strong>for</strong>mat (Otherwise -20008, RC 2 is returned)– Unicode encoding scheme• Is preferred <strong>for</strong> V8 & V9 <strong>for</strong>mats• Required <strong>for</strong> V<strong>10</strong> <strong>for</strong>mat (Otherwise SQLCODE -878 returned)– <strong>DB2</strong> <strong>10</strong> Installation & Migration Guide – Chap. 2 – Converting EXPLAIN tables• EXPLAIN CAPTURE Special Register (defaults to NO)– Set to YES• Explainable SQL statements run normally and explain in<strong>for</strong>mation is captured after eachstatement is prepared and executed– Set to EXPLAIN• Explainable SQL statements do not execute but explain in<strong>for</strong>mation is captured duringprepare• Note that application logic may fail when expecting successful execution– Requires a PLAN_TABLE and DSN_STATEMENT_CACHE_TABLE• The DSNAEXP stored procedure is deprecated– This procedure allowed the EXPLAIN of a SQL statement with the authorization <strong>for</strong>the statement– The EXPLAIN privilege or SQLADM should be used149© 2011 IBM Corporation

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

Saved successfully!

Ooh no, something went wrong!