MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lockmax-904

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Sat Jan 24, 2004 4:29 am    Post subject: Lockmax-904 Reply with quote

What is the significance of LOCKMAX in SYSIBM.SYSTABLESPACE? Does LOACKMAX=-1 mean that the tablespace is locked? I am trying to update a table and getting -904.
_________________
Cheers!
Back to top
View user's profile Send private message
Himesh
CICS Forum Moderator
CICS Forum Moderator


Joined: 20 Dec 2002
Posts: 80
Topics: 21
Location: Chicago

PostPosted: Sat Jan 24, 2004 9:50 am    Post subject: Reply with quote

Hi,

The LOCKMAX parameter is used by DB2 to decide on when to escalate a lock.

Could you pls refer to the following PDF
DB2 UDB Administration Guide

An excerpt from the same:
Quote:
LOCKMAX n
Specifies the maximum number of page or row locks that a single application
process can hold on the table space before those locks are escalated


I guess you need to first find out about the process(s), that actually is acquiring the locks and then look at eliminating the same by re-visiting your application/database design.

The chapter on "Improving concurrency" will be of immense help in this regard.

regards,
himesh
Back to top
View user's profile Send private message Yahoo Messenger
chanm
Beginner


Joined: 18 Mar 2004
Posts: 1
Topics: 0

PostPosted: Thu Mar 18, 2004 6:17 pm    Post subject: Reply with quote

Is it a program that you are using to update the table?. If yes are you doing commits in between?. This problem generally occurs if the number of locks of your program is trying to acquire exceeded the number defined in IRLM(Internal resource lock manager).

Hope it helps.
Back to top
View user's profile Send private message
mdizon02
Beginner


Joined: 14 Nov 2006
Posts: 2
Topics: 1

PostPosted: Mon Apr 16, 2007 4:49 am    Post subject: Reply with quote

hi, i am having the same problem, and yes my program is doing several commits in between. How do I sove this?

Thanks.
Back to top
View user's profile Send private message AIM Address
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Mon Apr 16, 2007 9:09 am    Post subject: Reply with quote

abracadabra, mdizon02,

Whats the problem here. LOCKMAX set to -1 only means that you have set the LOCKMAX as SYSTEM in your tablespace create (or alter). This is always recommended in most situations unless you are experienced and comfortable in tuning it.
Is your problem the -1 value or are you getting a lot of lock escalations?

Regards,
Manas
_________________
There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948)
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group