Generally the transaction manager needs to pass the commit decision to the recovery manager to commit a transaction in local database system. In distributed database system, the message to commit a transaction is sent by the transaction manager to all the servers of the multiple sites where the transaction is executed. At each site, the transaction after completing the processing reaches the partially committed transaction state and here it waits for the other transactions to reach the partially committed state. A message is received stating that all the sites are ready for commit, then the process of commit starts and thus either all the sites commit or none of the sites commit in distributed database system.
There are different types of distributed commit protocols. They are -
One of the simplest commit protocols is the distributed one-phase commit protocol. For instance, consider a controlling site and different number of slave sites at which the transaction is executed. The distributed commit has the following steps -
The vulnerability of one-phase commit protocol is reduced by the distributed two-phase commit. The two-phase commit has the following steps -
The following are the steps involved in distributed three-phase commit -
The steps are similar to that of distributed twp-phase commit.
The steps are similar to that of two-phase commit only difference being that the message of “Commit ACK”/”Abort ACK” is not required.
|
|
Distributed DBMS Related Tutorials |
---|
MySQL Tutorial |
Distributed DBMS Related Practice Tests |
|
---|---|
DBMS Practice Tests | MySQL Practice Tests |
DBMS+RDBMS Practice Tests | TeraData DBA Practice Tests |
MYSQL DBA Practice Tests | Database Administration Practice Tests |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.