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

Locking used when both ISOLATION(CS) & ACQUIRE(USE) pres


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

New User


Joined: 18 Jan 2008
Posts: 34
Location: India

PostPosted: Thu Apr 22, 2010 11:57 am
Reply with quote

Hi,

Consider a COBOL-DB2 application program contains a SQL query which tries to access 5 records from a table. When creating BIND PLAN, I am using both ISOLATION(CS) and ACQUIRE(USE) options. Suppose all the 5 recods are on the same page of the same table space and each table space contains 20 pages. My question is, when the SQL query will run which locking strategy is used; that means only that particular page is locked or that whole table space is locked.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 22, 2010 5:01 pm
Reply with quote

first, db2 tables have ROWS not records....

second, I would look-up and read about locking.

understanding db2 locking

there are 321,000 topics for db2 locking in google.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Apr 22, 2010 6:13 pm
Reply with quote

sasanka,

If you locksize is row, only 5 records will be locked. But overhead is more.

Sushanth
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 DB2 10.1 Share level locking and Sele... DB2 1
This topic is locked: you cannot edit posts or make replies. Locking question IMS DB/DC 1
No new posts GDG Locking after reaching maximum limit JCL & VSAM 17
No new posts transactions locking files CICS 2
No new posts Current Isolation level DB2 2
Search our Forums:

Back to Top