IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is meant by TWO-PHASE COMMIT?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gen_advantage
Currently Banned

New User


Joined: 05 Jun 2005
Posts: 5

PostPosted: Tue Aug 16, 2005 9:39 pm
Reply with quote

What is meant by TWO-PHASE COMMIT?
Back to top
View user's profile Send private message
withnams

New User


Joined: 06 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Wed Aug 17, 2005 9:30 am
Reply with quote

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
View user's profile Send private message
gowtham_srgp

New User


Joined: 09 Jun 2005
Posts: 38

PostPosted: Wed Aug 17, 2005 5:02 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts filter COMMIT/ROLLBACK statements DFSORT/ICETOOL 13
No new posts Why Newcopy is required when we have ... CICS 5
No new posts Commit limit for Delete query through... DB2 10
No new posts Commit a DB2 Table on Unix Server and... DB2 3
No new posts Need information on DB2 COMMIT DB2 9
Search our Forums:

Back to Top