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

When will be the lock released?


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

New User


Joined: 14 Oct 2009
Posts: 6
Location: bangalore

PostPosted: Tue Oct 27, 2009 11:43 am
Reply with quote

In RR isolation level, there is a update lock in the table.when the lock will be released.
a. When the cursor moves to the next row
b. When the transaction is committed
c. When the cursor moves to the next row and cursor closed
d. none
Back to top
View user's profile Send private message
Steve Davies

New User


Joined: 15 Oct 2009
Posts: 32
Location: UK

PostPosted: Tue Oct 27, 2009 12:00 pm
Reply with quote

A quick google tells me...

Under an RR isolation level all page locks are held until they are released by a COMMIT (or ROLLBACK), whereas with CS read-only page locks are released as soon as another page is accessed. Repeatable read is the default isolation level if none is specified at BIND time.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Oct 27, 2009 8:46 pm
Reply with quote

The answer could have been found by looking at the Sticky entitled: DB2 - Interview Questions with Answers. Also, the intent of this forum is for the poster to attempt to answer their own question and then invite responses.
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 Lock Escalation DB2 3
No new posts Released Init 0 All Other Mainframe Topics 13
No new posts How to put exclusive lock on a file i... JCL & VSAM 4
No new posts dead lock while updating the DB2 table DB2 7
No new posts Dead lock in DB2 - CICS programs CICS 8
Search our Forums:

Back to Top