View previous topic :: View next topic
|
Author |
Message |
gen_advantage Currently Banned New User
Joined: 05 Jun 2005 Posts: 5
|
|
|
|
What is meant by TWO-PHASE COMMIT? |
|
Back to top |
|
|
withnams
New User
Joined: 06 Jul 2005 Posts: 26 Location: Chennai
|
|
|
|
Two phase commit is to maintain integrity of data across 2 systems.
Example: The situation is common in banking: an amount is subtracted from one account and added to another. The two actions must either both commit or both rollback at the end of the unit of work.
DB2 and IMS, and DB2 and CICS, jointly implement a two-phase commit process.You can update an IMS database and a DB2 table in the same unit of work. If system or communication failure occurs between committing the work on IMS and on DB2, then the two programs restore the two systems to a consistent point when activity resumes.
Hope the example is clear for you. |
|
Back to top |
|
|
gowtham_srgp
New User
Joined: 09 Jun 2005 Posts: 38
|
|
|
|
gen_advantage wrote: |
What is meant by TWO-PHASE COMMIT? |
hai. a two phase commit is the case encountered in a cics+db2 or cics+ims programs. whenever there is any updation in the table, cics first commits the changes through issueing a commit statement. then a commit is issued by db2. this process is called a two phase commit. hope that this helps........
gowtham |
|
Back to top |
|
|
|