Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is meant by TWO-PHASE COMMIT?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: What is meant by TWO-PHASE COMMIT?
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    Post subject:
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    Post subject: Re: What is meant by TWO-PHASE COMMIT?
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Why Newcopy is required when we have ... DIXINSH CICS 5 Thu Apr 28, 2016 9:47 am
No new posts Commit limit for Delete query through... mf_karthik DB2 10 Thu Dec 17, 2015 12:56 am
No new posts Commit a DB2 Table on Unix Server and... Vinodh S DB2 3 Sun Apr 12, 2015 5:05 am
No new posts Need information on DB2 COMMIT sivasaras COBOL Programming 9 Wed Jun 11, 2014 7:34 pm
No new posts DB2 Commit thru Xpediter kinatingopi DB2 4 Wed Apr 30, 2014 4:46 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us