What is Two-Phase Commit ?

Answers were Sorted based on User's Feedback



What is Two-Phase Commit ?..

Answer / guest

Two-phase commit is mechanism that guarantees a
distributed transaction either commits on all involved nodes
or rolls back on all involved nodes to maintain data
consistency across the global distributed database. It has
two phase, a Prepare Phase and a Commit Phase.

Is This Answer Correct ?    1 Yes 0 No

What is Two-Phase Commit ?..

Answer / syed sohel

The 2PC protocol is so named because it employs the
following two phases prior to committing the operation
performed:

* Phase 1—Prepare. In this phase, each of the programs
involved in the transaction sends a message to the TP
Manager, such as Microsoft Distributed Transaction
Coordinator (MS DTC), informing the TP Manager that it is
ready to and capable of performing its part of the
operation. This phase is also known as prepare because the
programs are prepared either to commit the changes or
rollback the changes. If the TP Manager receives
confirmation from each of the programs involved, it proceeds
to phase 2.
* Phase 2—Commit or Rollback. In this phase, the TP
Manager instructs each of the programs to commit or rollback
all of the changes that were requested as part of the
transaction. A properly executed rollback should return the
system to its original state.

Is This Answer Correct ?    0 Yes 0 No

What is Two-Phase Commit ?..

Answer / nishi

Two-phase commit is mechanism that guarantees a distributed transaction either commits on all involved nodes or rolls back on all involved nodes to maintain data consistency across the global distributed database. It has two phase, a Prepare Phase and a Commit Phase.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Database Management Interview Questions

What is dbms with example?

0 Answers  


What is the use of PARFILE option in EXP command ?

1 Answers  


What are five advantages of a database?

0 Answers  


What is 1nf in the dbms?

0 Answers  


How rdbms is different from dbms?

0 Answers  






Have you written applications to retrieve stored images in a table?

0 Answers   Tech Mahindra,


From where the Transactions per rollback segment is derived ?

1 Answers  


does pl/sql support “overloading”? Explain

0 Answers  


I need data on eBay customers in Chicago who can did bid on certain item? I dont have access to eBay database directly. How I get the information?

1 Answers   eBay, Google,


Explain concurrency transparency.

0 Answers  


What is 1nf?

0 Answers  


What is structure of dbms?

0 Answers  


Categories