Restart, Commands, Tools, and Utilities




CS185c

Chris Pollett

May 11, 2010

Outline

Introduction

Recovery Restart

Phase 1 -- Log Initialization

Phase 2 -- Status of Transactions at Failure

Diagram showing how control blocks are rebuilt

More on Phase 2

Phase 3 -- Forward Log Recovery

Two Phase Commit & Abend States

Transaction with points of failure of the various possible abend states

In a distributed setting that a several new conditions a transaction might be in when a failure occurs...

Phase 4 -- Backward Log Recovery

Quiz

Which of the following statements is true?

  1. To bring DB2 back when a full system backup was done you need to use RECOVER SYSTEM.
  2. Information about image copies of table spaces is not stored in the catalog.
  3. Very little work is done in Phase 3 and 4 of a normal DB2 Restart.

Final Topic -- DB2 Commands, Utilities and Tools

DB2 Environment Command Examples

Where Are Environment Commands Issued?

TSO -- Time Sharing Option

DSN

Issue a DB2 Command

screenshot of where you can issue a DB2 command

Display Buffer Pool

screenshot of display buffer command

Buffer Pool Status

screenshot of display buffer command

CICS Subsystem Commands on DB2

Display Utilities

screenshot of display buffer command

DB2 Tools

Tools Make DBA's Job Easier

DB2 has many useful tools for a variety of tasks: