dbTalk Databases Forums  

Re: [Info-Ingres] readlock=nolock but table is locked

comp.databases.ingres comp.databases.ingres


Discuss Re: [Info-Ingres] readlock=nolock but table is locked in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lin.a.bradbrook@uk.bnpparibas.com
 
Posts: n/a

Default Re: [Info-Ingres] readlock=nolock but table is locked - 03-10-2011 , 07:05 AM






I seem to recall - a long time ago in the days when I did any of this,
that if you did not specify 'FOR READ ONLY' when you opened a cursor - it
always took out a write lock.

Lin



Internet
specially (AT) processed (DOT) almost.meat
Sent by: info-ingres-bounces (AT) kettleriver...ting (DOT) com
10/03/2011 12:45
Please respond to
info-ingres (AT) kettleriverconsulting (DOT) com


To
info-ingres (AT) kettleriverconsulting (DOT) com
cc

Subject
Re: [Info-Ingres] readlock=nolock but table is locked






Mark wrote:

Quote:
Ingres 9.2 on AIX 6.1

I have two programs:
1. Doing a cursor select on a table.
2. Doing an insert on the same table.

I am 100% sure that "readlock=nolock" is set for all sessions.
I hope you fully understand ALL the implications of that.

Quote:
Both transactions hang and I can see loads of lock timeouts in the
ingres error log.
That can't be right. In the first place if the application is using
READLOCK=NOLOCK it won't attempt a lock, won't wait, and won't time
out, so you won't see a lock timeout in the log. Furthermore if the lock
requests do timeout then then neither the application nor the server
is hanging. (The application might be looping and re-waiting though,
making it look like it's hanging.)

Quote:
Killing program 1 unblocks program 2.

Is this an Ingres bug?
More likely an application bug. Use security query_text auditing or
trace point SC930 to see what the applications are doing.

Another possibility is that there is a third participant you don't know
about that is locking (taking an ordinary lock or a control lock).

--
Roy

UK Ingres User Association Conference 2011 will be on Tuesday June 7 2011.
Register at http://www.regonline.co.uk/ukiua2011


_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://ext-cando.kettleriverconsulti...fo/info-ingres


__________________________________________________ _________
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited.

Please refer to http://www.bnpparibas.co.uk/en/infor...de=ECAS-845C5H for additional disclosures.

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.