DBA > Job Interview Questions > DATABASE Administrator (DBA) Interview Questions and Answers

Describe two phases of Two-phase commit?

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

231. Describe two phases of Two-phase commit?

Prepare phase - The global coordinator (initiating node) ask a participants to prepare (to promise to commit or rollback the transaction, even if there is a failure) Commit - Phase - If all participants respond to the coordinator that they are prepared, the coordinator asks all nodes to commit the transaction, if all participants cannot prepare, the coordinator asks all nodes to roll back the transaction.

(Continued on next question...)

Other Job Interview Questions