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

Locksize for tables


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

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Wed Apr 13, 2005 3:17 pm
Reply with quote

What's the impact of changing the locksize for tables from the default of ROW to TABLE?
Back to top
View user's profile Send private message
krish_mrt

New User


Joined: 15 Apr 2005
Posts: 12
Location: Chennai

PostPosted: Sun Apr 17, 2005 5:44 pm
Reply with quote

row-level locks are better for maximum concurrency than table-level locks.

the side effect of lock escalation from row level lock to table level lock is its impact on other applications running concurrently. It may block other applications from accessing the table.

For example, if application A holds a shared table lock on a table, it blocks other applications from updating any rows in the table, because they would need to acquire an exclusive lock on a row in that table.

Further, it has to be ensured that lock escalation ( Converting row level locks to table level locks by database manager) does not occur for the reasons mentioned above. Inorder to avoid lock escalation it is recommented to practice the foll...
. commit your transactions often
. If possible, reschedule the applications that compete for access to the same table. Also, use Uncommitted Read [meaning dirty read] transactions where read consistency is not an issue.
Back to top
View user's profile Send private message
shymalasridevi

New User


Joined: 03 May 2005
Posts: 16

PostPosted: Tue May 03, 2005 3:25 pm
Reply with quote

when we changing the lock size row to table
if multiple users are using the same table then it is not possible to them to use the table so that they have to wait for releasing of lock
in some situations like if u want to just read a row from the table it is not necessary to issue a table lock it makes other users users to kept into the waiting state so that degrades the system performance
bye ,
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 Need to fetch data from so many DB2 t... DB2 9
No new posts How to: PK does not exist in several ... DB2 6
No new posts Discrepancy b/w SYSIBM tables and BMC... DB2 0
No new posts SYSIBM Tables Query DB2 8
No new posts Column names in SYSIBM tables DB2 5
Search our Forums:

Back to Top