Two-Phase Commit Process in Distributed Transaction in Oracle

The two-phase commit process is used to ensure data integrity in a distributed transaction. It is used for all distributed transactions that result in the commit or rollback of all changes in the transaction as a single unit.

Three phases used as :

  1. PREPARE: The initiating node refers to each participating node to perform commit or rollback when told to do so. It converts locks to in-doubt transaction locks on the data blocks and passes its highest SCN to the initiating node.
  2. COMMIT: The initiating node commits and writes to its redo log the committed SCN. The Data Block locks are released.
  3. FORGET:  Pending transactions tables are related database views are cleared (dba_2pc_pending/dba_2pc_neighbors)
This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply