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.

Class 1 Elapsed Tim<br />

(Seconds)<br />

Reorg Rebalance… Elapsed Time<br />

1000<br />

800<br />

600<br />

400<br />

200<br />

0<br />

Figure 5-20 REORG REBALANCE elapsed time<br />

TC1 TC2<br />

1 PI, 0 NPI 1 PI, 1 NPI 1 PI, 3 NPIs<br />

Partition distribution : 8(5M) + 1(1M) + 1(9M)<br />

TC1 - reorg tsp rebalance all parts<br />

TC2 - reorg tsp rebalance parts 9 and 10<br />

40% to 80% faster if Reorg Rebalance parts 9 and 10 only<br />

In test case 1 all partitions are read and updated even if not all partitions needed to be<br />

rebalanced. Depending on the number of NPIs REORG REBALANCE runs 40% to 80%<br />

faster if only partition 9 and 10 are rebalanced.<br />

Conclusion<br />

Rebalancing could be executed in prior versions of <strong>DB2</strong> by altering the partitioned index limit<br />

keys followed by a reorganization. But the affected partitions were placed in a REORGP state<br />

and the data was unavailable until the reorganization completed. Rebalancing can be done<br />

with SHRLEVEL REFERENCE and so the data remains available <strong>for</strong> readers almost all the<br />

time. Only during the switch phase, the data is unavailable. It is also during the switch phase<br />

that <strong>DB2</strong> updates the limit keys to reflect the new partition boundaries.<br />

Recommendations<br />

The use of rebalancing instead of altering the partitioned index key limits will enhance the<br />

availability of your data.<br />

Note: REORG REBALANCE might not be possible if the logical and physical partition<br />

numbers <strong>for</strong> the specified table space do not match. This situation can be created by a<br />

series of ALTER ROTATEs and ALTER ADD PARTs. The partition range that you specify<br />

on the REORG REBALANCE statement is a range of physical partitions. When<br />

rebalancing, <strong>DB2</strong> unloads, sorts, and reloads the data based on logical partition numbers.<br />

Message DSNU1129I is issued and REORG terminates.<br />

Chapter 5. Availability and capacity enhancements 245

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

Saved successfully!

Ooh no, something went wrong!