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

Need details about 2 phase commit in db2


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

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Fri Jul 06, 2007 1:34 pm
Reply with quote

I want to know details about 2 phase commit in db2. Can any one explain this to me.

What is db2 2 phase commit?
Why is it neccessary?
What are the advantages?
How does it works?

TIA
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Fri Jul 06, 2007 2:02 pm
Reply with quote

As far as I know the two phase commit involves both CICS and DB2. Once CICS commits the transaction DB2 also commits the same, that's why it is called two phase commit
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Fri Jul 06, 2007 2:28 pm
Reply with quote

Nopes.. i am asking something different....
not CICS icon_eek.gif
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Fri Jul 06, 2007 2:50 pm
Reply with quote

Hope the following link has something to do with your query:
publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.admin.doc/doc/c0005032.htm
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Fri Jul 06, 2007 3:24 pm
Reply with quote

Thanks...
but can you please explain what exactly happens.. i mean y such thing is necessary... is it solely due to resource management?
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Fri Jul 06, 2007 4:50 pm
Reply with quote

Not quite!

With multisite update, also known as Distributed Unit of Work (DUOW), two phase commit (2PC), and Coordinated Distributed Transactions, an application is able to update data in multiple remote database servers with guaranteed integrity.


A typical banking transaction is a good example of a multisite update. Consider the transfer of money from one account to another in a different database server. In such a transaction it is critical that the updates that implement the debit operation on one account do not get committed unless the updates required to process the credit to the other account are committed as well. The multisite update considerations apply when data representing these accounts is managed by two different database servers

I could get this explanation from the link:
webdocs.caspur.it/ibm/udb-6.1/db2l0/duow.htm
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 JCL SORT to compress the student's de... DFSORT/ICETOOL 7
No new posts Splitting group records based on deta... DFSORT/ICETOOL 8
No new posts report on job scheduling details in Zeke IBM Tools 2
No new posts Mainframe batch Job or REXX to get VT... CLIST & REXX 7
No new posts filter COMMIT/ROLLBACK statements DFSORT/ICETOOL 13
Search our Forums:

Back to Top