Chapter 4. Integrity and security 75
The two-phase commit protocol, as shown in Figure 4-3, is a set of actions used
to make sure that an application program either makes
all the changes to the
resources represented by a single unit of recovery (UR), or makes
no changes at
all. This protocol verifies that either all changes or no changes are applied even if
one of the elements (such as the application, the system, or the resource
manager) fails. The protocol allows for restart and recovery processing to take
place after system or subsystem failure.
The two-phase commit protocol is initiated when the application is ready to
commit or back out its changes. The application program that initiates the commit
or backout does not need to know who ...