Lab11 Sol
Lab11 Sol
Tutorial 11
Remote request lets single SQL statement access data that are to be processed
by a single remote database processor. Remote transaction composed of several
requests, accesses data at a single remote site.
Distributed request lets a single SQL statement reference data located at several
local or remote Data Processing (DP) sites. Distributed transaction allows a
transaction to reference several local or remote DP sites.
Phase 1: Preparation
The coordinator sends a PREPARE TO COMMIT message to all subordinates.
The subordinates receive the message, write the transaction log using the write-
ahead protocol, and send an acknowledgement message to the coordinator.
The coordinator makes sure that all nodes are ready to commit, or it aborts the
transaction.
If one or more subordinates did not commit, the coordinator sends an ABORT message,
thereby forcing them to UNDO all changes