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.

► REORG utility enhancements<br />

The REORG utility is enhanced to allow you to specify that only partitions placed in Reorg<br />

Pending state should be reorganized. You do not have to specify the partition number or<br />

the partition range. You can also specify that the rows in the table space or the partition<br />

ranges being reorganized should be evenly distributed <strong>for</strong> each partition range when they<br />

are reloaded. Thus, you do not have to execute an ALTER INDEX statement be<strong>for</strong>e<br />

executing the REORG utility. You can specify DISCARD with SHRLEVEL CHANGE. You<br />

can avoid the BUILD2 phase during online REORG by using the new data-partitioned<br />

secondary indexes.<br />

► Online Check Index utility<br />

The new SHRLEVEL CHANGE option specifies that applications can read from and write<br />

to the index, table space, or partition that is to be checked. This option uses techniques<br />

which allow access to the index during almost all of the CHECK process. The processing<br />

is per<strong>for</strong>med on a copy of the data and can use FlashCopy® to obtain a copy in a matter of<br />

seconds.<br />

► Create index dynamic statement invalidation<br />

Create index now invalidates the cached statements associated with the base table<br />

contained in the dynamic statement cache without draining active statements.<br />

► Automatic space management<br />

Many IT people in DB installations consider this a very valuable feature. It potentially<br />

eliminates one of the main causes of failure where rapid growth was not anticipated.<br />

► Minimize impact of creating deferred indexes<br />

Indexes created as deferred are ignored by the <strong>DB2</strong> optimizer.<br />

► LOB ROWID transparency<br />

This enhancement includes the capability of hiding the ROWID column from DML and<br />

DDL. This way, applications, running on other plat<strong>for</strong>ms, that do not have a ROWID data<br />

type can avoid the special code to handle ROWID and use the same code path <strong>for</strong> all<br />

plat<strong>for</strong>ms.<br />

► Longer table and column names<br />

Architectural changes to <strong>DB2</strong> V8 expand the <strong>DB2</strong> catalog and SQL with support <strong>for</strong> long<br />

names (tables and other names up to 128 bytes, column names up to 30 bytes). Support<br />

<strong>for</strong> longer string constants (up to 32,704 bytes), longer index keys (up to 2,000 bytes), and<br />

longer predicates (up to 32,704 bytes) makes <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> compatible with other<br />

members of the <strong>DB2</strong> family.<br />

► SQL statements extended to 2 MB<br />

Complex SQL coding, SQL procedures, and generated SQL, as well as compatibility with<br />

other plat<strong>for</strong>ms and conversions from other products, have required the extension of the<br />

SQL statements in <strong>DB2</strong>. <strong>DB2</strong> V8 extends the limit on the size of an SQL statement to 2<br />

MB.<br />

► Multiple DISTINCT clauses in SQL statements<br />

This enhancement allows the DISTINCT keyword to appear in multiple column functions<br />

with different expressions. For example, <strong>DB2</strong> V8 now allows:<br />

SELECT SUM(DISTINCT C1), AVG(DISTINCT C2) FROM T1<br />

► More open data sets<br />

With <strong>DB2</strong> V8 and z/<strong>OS</strong> 1.5, a <strong>DB2</strong> subsystem can have up to 65,041 open data sets,<br />

instead of 32,767 in V7. This enhancement also reduces the amount of virtual storage<br />

used by <strong>DB2</strong> below the 16 MB line, as MVS control blocks related to dynamically allocated<br />

Chapter 1. <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 5

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

Saved successfully!

Ooh no, something went wrong!