Unix Technical Forum

getting a (-911)deadlock error while dropping a procedure

This is a discussion on getting a (-911)deadlock error while dropping a procedure within the DB2 forums, part of the Database Server Software category; --> Hi, I am getting a error sqlcode : -911, sqlstate : 40001 error, i.e. Deadlock error while trying to ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 02:09 PM
Rahul Babbar
 
Posts: n/a
Default getting a (-911)deadlock error while dropping a procedure

Hi,

I am getting a error sqlcode : -911, sqlstate : 40001 error, i.e.
Deadlock error while trying to drop the procedure.
I had seen cases of getting deadlocks in a table but not in
procedures.

Nobody is doing a call on that procedure.
What could be the reason for it.

More importantly, what will be the fix.

Thanks

Rahul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 02:09 PM
deangc
 
Posts: n/a
Default Re: getting a (-911)deadlock error while dropping a procedure

On Dec 6, 5:02 am, Rahul Babbar <rahul.babb...@gmail.com> wrote:
> Hi,
>
> I am getting a error sqlcode : -911, sqlstate : 40001 error, i.e.
> Deadlock error while trying to drop the procedure.
> I had seen cases of getting deadlocks in a table but not in
> procedures.


911 has a reason code: it is either 2 - deadlock or 68 - lock timeout.
I would guess (actually I'd bet money) that you are getting a 68, a
lock timeout. I often get these when I am working on something: I have
the DROP/CREATE in one window and the CALL in the other, and if I
forget to COMMIT, well...

That -911 code and message is one thing I think IBM should change. I'd
like to see a different message, something like 'your transaction has
been rolled back due to a lock timeout' for a 68 instead of one
message with RC 2 or 68. I get reports of deadlocks even from
developers who should know better.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com