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

what is TWO PHASE COMMITER


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kotesh

New User


Joined: 11 May 2005
Posts: 20

PostPosted: Mon Mar 06, 2006 4:24 pm
Reply with quote

Hi Guy,
could you plese let me know about the TWO PHASE COMMITER
in DB2..

Thanks
kotesh
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Mar 06, 2006 4:59 pm
Reply with quote

http://ibmmainframes.com/viewtopic.php?t=2268

Regards,
Priyesh.
Back to top
View user's profile Send private message
nabarun

New User


Joined: 27 Apr 2005
Posts: 13
Location: india

PostPosted: Wed Dec 06, 2006 3:22 pm
Reply with quote

Two-phase commit - DB2


PHASE I.
----------


STEP 1 :

When the database client requests that the unit of work be committed, a prepare message
is sent to all databases participating in the unit of work. Each database writes a "PREPARED"
record to its log files, and replies to the database client.

STEP 2 :

After the database client receives a positive response from all of the databases, it sends a
message to the transaction manager database, informing it that the unit of work is now ready
to be committed (PREPARED). The transaction manager database writes a "PREPARED" record to its
log file, and sends a reply to inform the client that the second phase of the commit process
can be started.



PHASE II
-----------

STEP 3 :

During the second phase of the commit process, the database client sends a message to all
participating databases to tell them to commit. Each database writes a "COMMITTED" record
to its log file, and releases the locks that were held for this unit of work. When the database
has completed committing the changes, it sends a reply to the client.


STEP 4 :

After the database client receives a positive response from all participating databases,
it sends a message to the transaction manager database, informing it that the unit of work
has been completed. The transaction manager database then writes a "COMMITTED" record to its
log file, indicating that the unit of work is complete, and replies to the client, indicating
that it has finished.


Regards,
Nabarun
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Why Newcopy is required when we have ... CICS 5
No new posts What is RLL phase in Restart Logic? All Other Mainframe Topics 1
No new posts Sort jonkeys failing with SA78 ABEND... DFSORT/ICETOOL 6
No new posts Two phase commit CICS 8
No new posts What are the Possible reasons for PHA... CICS 15
Search our Forums:

Back to Top