If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > deadlock question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-25-03, 07:52
chpoon chpoon is offline
Registered User
 
Join Date: Dec 2003
Posts: 2
deadlock question

Dear all,
I am a newbie to DB2. I have implemented simple session and entity bean (on Websphere 5.0) to update a row of a table (DB2 v8.1). I tried to stress the bean, and make it to update the same row with 3 concurrent accesses. I encounter deadlock always. Sometimes, the program can run smoothly, but the row is not updated correctly.
Any setting / related information I missed? Appreciate all the advice.
Reply With Quote
  #2 (permalink)  
Old 12-25-03, 13:08
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: deadlock question

well, I am sure you know why deadlock situation can occur, if not; would you mind posting the SQL or explaining what exactly you query suppose to do?

dollar
Quote:
Originally posted by chpoon
Dear all,
I am a newbie to DB2. I have implemented simple session and entity bean (on Websphere 5.0) to update a row of a table (DB2 v8.1). I tried to stress the bean, and make it to update the same row with 3 concurrent accesses. I encounter deadlock always. Sometimes, the program can run smoothly, but the row is not updated correctly.
Any setting / related information I missed? Appreciate all the advice.
Reply With Quote
  #3 (permalink)  
Old 12-26-03, 22:27
chpoon chpoon is offline
Registered User
 
Join Date: Dec 2003
Posts: 2
Thank you for your prompt reply.
The table I used is a simple 2 column table, which has an integer(primary key) and string field (VARCHAR 2048) only. The SQL statement is to add the string by 1 each time. ( I store numeric in the string field as well ).
Reply With Quote
  #4 (permalink)  
Old 12-28-03, 03:18
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

Please also read something about isolation levels.

Please also read Must Read before posting to get more info about how to write effective questions.

Hope this helps,
Grofaty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On