Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
A question about L-LOCK in DB2 DATA SHARING ENVIRONMENT.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
haohao

New User


Joined: 23 May 2008
Posts: 35
Location: beijing China

PostPosted: Wed Mar 24, 2010 12:24 pm    Post subject: A question about L-LOCK in DB2 DATA SHARING ENVIRONMENT.
Reply with quote

WHEN I RUN a bacth program with a plan bound with RELEASE(COMMIT),
a lot of time consumed in DB2 PARENT L-LOCKS ,PM reprot as below:

GLOBAL CONTENTION L-LOCKS AVERAGE TIME AV.EVENT
------------------------------------- ------------ --------
L-LOCKS 3:23.599428 268.4K
PARENT (DB,TS,TAB,PART) 2:47.167313 211.7K
CHILD (PAGE,ROW) 12.726702 19375.00
OTHER 23.705414 37292.00


WHEN I run it with plan bound with RELEASE(deallocate),the
PARENT lock almost disappear,but child lock increased about 50%:

GLOBAL CONTENTION L-LOCKS AVERAGE TIME AV.EVENT
------------------------------------- ------------ --------
L-LOCKS 27.246866 30499.00
PARENT (DB,TS,TAB,PART) 0.037746 49.00
CHILD (PAGE,ROW) 27.172850 30403.00
OTHER 0.036270 47.00


I am very confusing about that,why page level lock amount can be different in
that two mode. there is no X,S lock applid at tablespace or table level,
so the page level lock amout should be equal in that mode. correct me if
I was wrong,thanks in advance!![/quote]
Back to top
View user's profile Send private message

sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Wed Mar 24, 2010 10:46 pm    Post subject:
Reply with quote

HaoHao,

As per the basic defination,
COMMIT - Releases locks at next commit point
Deallocate - Releases the acquired locks only when the program terminates

Meaning, when deallocate is used all the locks in hold till the program terminates and thus the contention.

Can you tell us what your ACQUIRE value was ?

Thanks,
Sushanth
Back to top
View user's profile Send private message
haohao

New User


Joined: 23 May 2008
Posts: 35
Location: beijing China

PostPosted: Thu Mar 25, 2010 4:24 pm    Post subject:
Reply with quote

my PLAN BOUND WITH ACQUIRE(USE).

I think ACQUIRE and RELEASE only apply to parent lock,and child lock will always be released when commit is issued. SO,the child lock amout should be equal, becase the DML amount is equal .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Data security erase on RAID device steve-myers All Other Mainframe Topics 0 Sat Jan 13, 2018 6:41 am
No new posts Append the milliseconds to the data s... girishb2 DFSORT/ICETOOL 1 Thu Dec 21, 2017 9:07 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
This topic is locked: you cannot edit posts or make replies. DB2 for Z/OS(set up environment) Pavan kumar chauhan DB2 1 Tue Dec 05, 2017 8:03 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us