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.

Summary and recommendations<br />

Migration from V7 to V8 CM takes from 0.2 to 10 minutes depending on the size of the catalog<br />

and directory (medium to large). Be<strong>for</strong>e the catalog migration, it is recommended that you<br />

clean up your catalog doing a MODIFY on all table spaces: The result will be a cleanup on the<br />

SYSCOPY.SYSLGRNX entries. It is also useful to free the old version of packages that are<br />

not being used any more.<br />

Note: When you execute a MODIFY, do not <strong>for</strong>get to take a look at the tables that will be in<br />

copy pending, because your application might not be expecting the <strong>DB2</strong> return code.<br />

Reorg Catalog and Directory be<strong>for</strong>e migrating to NFM.<br />

Migration from V8 CM to V8 NFM takes from 0.1 to 2 hours depending on the size of the<br />

catalog and directory (medium to large). The longest step is the catalog reorg DSNTIJNE,<br />

and the execution of that job can be divided.<br />

The size of the catalog, both data and index, has been observed to increase between 1% and<br />

10%.<br />

Online REORG SHRLEVEL REFERENCE of SPT01 and 17 catalog tables is the most<br />

time-consuming component. A very rough Rule-of-Thumb on estimating the time <strong>for</strong> a<br />

medium to large catalog and directory in non-data sharing is:<br />

6 min. + 3 to 7 min. per GB of SPT01, SYSPKAGE, SYSDBASE, etc.<br />

The time is heavily dependent on the DASD and channel model used.<br />

Allocate larger work files <strong>for</strong> online REORG of large tables such as SYSDBASE, SYSPKAGE.<br />

Allocate work files on separate DASDs, LCUs <strong>for</strong> online REORG of tables with parallel<br />

sort/build indexes such as SYSHIST, SYSPKAGE, SYSSTATS, and SPT01.<br />

9.5 Catalog consistency query DSNTESQ<br />

The DSNTESQ sample job is provided to <strong>DB2</strong> users so that they can check the consistency<br />

of their <strong>DB2</strong> catalogs. This sample job consists of DDL, INSERT and 65 queries to verify the<br />

integrity of the catalogs and directories. The SQL can be run from SPUFI or DSNTEP2 and<br />

contains DDL which creates copies of the catalog using segmented table spaces. In some<br />

cases, the queries in DSNTESQ run faster when run on copies of the catalog instead of the<br />

actual catalog because the copies have additional indexes.<br />

Some of these catalog consistency queries can run <strong>for</strong> extended periods of time on<br />

subsystems with large amounts of catalog data. In order to improve the per<strong>for</strong>mance of most<br />

of these DSNTESQ catalog consistency queries, they were rewritten to use non correlated<br />

subqueries on table columns that are in index keys.<br />

In the past, some queries in DSNTESQ have had very poor per<strong>for</strong>mance. In <strong>DB2</strong> V6, a<br />

customer introduced a subset of queries rewritten from DSNTESQ which per<strong>for</strong>med very well<br />

against <strong>IBM</strong> supplied DSNTESQ queries. In <strong>DB2</strong> V8, some queries from DSNTESQ were<br />

rewritten <strong>for</strong> per<strong>for</strong>mance and retrofitted to <strong>DB2</strong> V7. On Table 9-7 we have an example of<br />

retrofitted queries followed by other rewritten queries.<br />

Table 9-5 Queries 5 and 18 rewritten <strong>for</strong> better per<strong>for</strong>mance<br />

Query (<strong>DB2</strong> V8 - New Function Mode) Old (V8 NFM) New (V8 NFM)<br />

Chapter 9. Installation and migration 359

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

Saved successfully!

Ooh no, something went wrong!