question

OracleApprender avatar image
OracleApprender asked

What is a 2 Phase Commit ?

Can anybody explain the purpose and uses of 2 Phase Commit in Oracle? Thank you.

oracletransactionnetwork
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

KillerDBA avatar image
KillerDBA answered

Two phase commit is the protocol that allows for a transaction to be managed across a distributed network of servers.

There's a very good Wiki article on it:

Two Phase Commit on Wiki

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

OraLearner avatar image
OraLearner answered

Two Phase commit is used in distributed data base systems. This is useful to maintain the integrity of the database so that all the users see the same values. It contains DML statements or Remote Procedural calls that reference a remote object. There are basically 2 phases in a 2 phase commit.

  1. Prepare Phase :: Global coordinator asks participants to prepare
  2. Commit Phase :: Commit all participants to coordinator to Prepared, Read only or abort Reply
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Leigh Riffel avatar image
Leigh Riffel answered
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.