dbTalk Databases Forums  

Sybase 11.5.1 ; lock by block

comp.databases.sybase comp.databases.sybase


Discuss Sybase 11.5.1 ; lock by block in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Laurent RUHLMANN
 
Posts: n/a

Default Sybase 11.5.1 ; lock by block - 02-10-2004 , 07:06 AM






Hello,

I'm using Sybase 11.5.1 with quite a lot of users. It seems that data are
locked by block and when a user is trying to use the same block, he is
locked. So there are more and more to be blocked and finally the server must
be restarted to free the connections.

Is there any parameter to change so that data can be locked by row or
something else ?


Laurent



Reply With Quote
  #2  
Old   
Michael Peppler
 
Posts: n/a

Default Re: Sybase 11.5.1 ; lock by block - 02-10-2004 , 09:13 AM






On Tue, 10 Feb 2004 14:06:07 +0100, Laurent RUHLMANN wrote:

Quote:
Hello,

I'm using Sybase 11.5.1 with quite a lot of users. It seems that data are
locked by block and when a user is trying to use the same block, he is
locked. So there are more and more to be blocked and finally the server must
be restarted to free the connections.
Well - you shouldn't necessarily have to restart the server. My guess is
that you have some transactions that are holding locks for a very long
time, and that this blocks other users.

You can't change the locking scheme in 11.5.x - though you could (should?)
update to a more recent version (12.0 or 12.5.x), in which case you could
use a different locking scheme.

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.mbay.net/~mpeppler/resume.html



Reply With Quote
  #3  
Old   
abhay
 
Posts: n/a

Default Re: Sybase 11.5.1 ; lock by block - 02-18-2004 , 11:06 AM



To simulate row level locking on a pre 11.9.2 database, you can set
max_rows_per_page = 1.

HTH
abhay

Michael Peppler <mpeppler (AT) peppler (DOT) org> wrote

Quote:
On Tue, 10 Feb 2004 14:06:07 +0100, Laurent RUHLMANN wrote:

Hello,

I'm using Sybase 11.5.1 with quite a lot of users. It seems that data are
locked by block and when a user is trying to use the same block, he is
locked. So there are more and more to be blocked and finally the server must
be restarted to free the connections.

Well - you shouldn't necessarily have to restart the server. My guess is
that you have some transactions that are holding locks for a very long
time, and that this blocks other users.

You can't change the locking scheme in 11.5.x - though you could (should?)
update to a more recent version (12.0 or 12.5.x), in which case you could
use a different locking scheme.

Michael

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.