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.

All users requesting new access to the table space or partition are also suspended and must<br />

wait until the recovery completes (or until the user times out). There<strong>for</strong>e, the drain operation<br />

can be very disruptive to other work that is running in the system, especially in the case<br />

where only one or a few pages are in LPL.<br />

In <strong>DB2</strong> V8, the locking and serialization schemes in the -START DATABASE command have<br />

changed when doing the LPL recovery. In prior versions of <strong>DB2</strong>, the -START DATABASE<br />

command acquires a DRAIN ALL lock on the table space or partition when doing the LPL<br />

recovery. <strong>DB2</strong> V8 makes a WRITE CLAIM on the table space or partition. By acquiring a<br />

WRITE CLAIM instead of a DRAIN ALL, the “good” pages can still be accessed by SQL while<br />

the -START DATABASE is recovering the LPL pages. A new "LPL recovery” lock type is also<br />

introduced to en<strong>for</strong>ce that only one LPL recovery process is running at a time <strong>for</strong> a given table<br />

space or partition.<br />

This less disruptive locking strategy potentially enhances both the per<strong>for</strong>mance and<br />

availability of your applications, as more data can potentially be available to the application<br />

while the pages in the LPL are being recovered.<br />

<strong>DB2</strong> V8 also automatically attempts to recover pages that are added to the LPL at the time<br />

they are added to the LPL, if <strong>DB2</strong> determines that automatic recovery has a reasonable<br />

chance of success. Automatic LPL recovery is not initiated by <strong>DB2</strong> in the following situations:<br />

► DASD I/O error<br />

► During <strong>DB2</strong> restart or end_restart time<br />

► GBP structure failure<br />

► GBP 100% loss of connectivity<br />

Automatic LPL recovery improves the availability of your applications, as the pages in the LPL<br />

can be recovered sooner. In many cases you do not have to issue the -START DATABASE<br />

commands yourself to recover LPL pages.<br />

In addition, <strong>DB2</strong> V8 provides more detailed in<strong>for</strong>mation in message DSNB250E why a page<br />

has been added to the LPL. The different reason types are:<br />

► DASD: <strong>DB2</strong> encountered a DASD I/O error when trying to read or write pages on DASD.<br />

► LOGAPPLY: <strong>DB2</strong> cannot apply log records to the pages.<br />

► GBP: <strong>DB2</strong> cannot successfully read or write the pages from or to the group buffer pool due<br />

to link or structure failure, GBP in rebuild, or GBP was disconnected.<br />

► LOCK: <strong>DB2</strong> cannot get the required page latch or page P-lock on the pages.<br />

► CASTOUT: The <strong>DB2</strong> Castout processor cannot successfully cast out the pages.<br />

► MASSDEL: <strong>DB2</strong> encountered an error in the mass delete processor during the phase 2 of<br />

commit.<br />

These extra diagnostics help you to quickly identify and hopefully resolve why pages are<br />

being placed into the LPL thereby increasing the availability of your applications.<br />

8.5.3 Restart Light enhancements<br />

<strong>DB2</strong> V7 introduced the concept of <strong>DB2</strong> Restart Light which is intended to remove retained<br />

locks with minimal disruption in the event of an MVS system failure. When a <strong>DB2</strong> member is<br />

started in restart light mode (LIGHT(YES)), <strong>DB2</strong> comes up with a small storage footprint,<br />

executes <strong>for</strong>ward and backward restart log recovery, removes the retained locks, and then<br />

self-terminates without accepting any new work.<br />

Chapter 8. Data sharing enhancements 337

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

Saved successfully!

Ooh no, something went wrong!