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.

Volatile (or cluster) tables, used primarily by ERP vendors like SAP, are tables that<br />

contain groups (or clusters) of rows which logically belong together. Within each<br />

cluster, rows are meant to be accessed in the same sequence every time. Lock<br />

contention occurs when <strong>DB2</strong> chooses different access paths <strong>for</strong> different applications<br />

operating on the same cluster table. In the absence of support <strong>for</strong> cluster tables in <strong>DB2</strong>,<br />

users have to either change system-wide parameters that affect all tables, or change<br />

statistics <strong>for</strong> each such table to ease the lock contention.<br />

Cluster tables are referred to as volatile tables in <strong>DB2</strong>. Adding a new keyword,<br />

VOLATILE, to the CREATE TABLE and ALTER TABLE statements signifies to <strong>DB2</strong><br />

which tables should be treated as volatile tables. For volatile tables, index access is<br />

chosen whenever possible, regardless of the efficiency of the available indexes. That<br />

is, a table scan is not chosen in preference to an inefficient index.<br />

– CF lock propagation reduction<br />

In a data sharing environment, this enhancement allows parent L-locks to be granted<br />

locally without invoking global contention processing. Thereby, locking overhead due to<br />

false contention is reduced. As a result, <strong>DB2</strong> data sharing per<strong>for</strong>mance is enhanced.<br />

Per<strong>for</strong>mance benefit varies depending on factors such as commit interval, thread<br />

reuse, and number of tables accessed in a commit interval, if the SQL processing is<br />

read-only or update.<br />

– Several other lock enhancements, including overflow lock avoidance, skip uncommitted<br />

inserts, and drain lock on partition key update.<br />

► Instrumentation enhancements<br />

<strong>DB2</strong> V8 comes with numerous enhancements to the Instrumentation Facility Interface.<br />

The most important are:<br />

– Package level accounting<br />

– Accounting roll-up <strong>for</strong> DDF and RRSAF threads<br />

– Long-running reader tracking<br />

– Lock escalation trace record<br />

– Full SQL statement text trace record<br />

– PREPARE attributes are also traced<br />

– More high water marks in the statistics record<br />

– Secondary authorization IDs via READS<br />

– Storage 64-bit support as well as READS support<br />

– Temporary space usage<br />

– Auditing <strong>for</strong> multilevel security<br />

– Option <strong>for</strong> EBCDIC or Unicode data<br />

1.1.5 Migration changes<br />

Migration is allowed exclusively from <strong>DB2</strong> V7 subsystems. The migration SPE must have<br />

been applied and started. The migration process has been changed and now consists of<br />

three distinct steps or phases:<br />

1. Compatibility mode (CM): This is the first phase, during which the user per<strong>for</strong>ms all the<br />

tests needed to make sure all the applications run without problems with the new version.<br />

Fallback to V7 in case of problems is allowed.<br />

2. Enabling-new-function mode (ENFM): During this typically short (usually one hour)<br />

second phase, the user converts the <strong>DB2</strong> catalog and directory to a new <strong>for</strong>mat by using<br />

online REORG executions. No fallback to <strong>DB2</strong> V7 is allowed once this phase is entered.<br />

3. New-function mode (NFM): This is the target third and final phase, where all new V8<br />

functions are available.<br />

8 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong>

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

Saved successfully!

Ooh no, something went wrong!