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 > Lock problem on DB2 Table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-03, 23:51
milindk22 milindk22 is offline
Registered User
 
Join Date: Oct 2003
Posts: 5
Unhappy Lock problem on DB2 Table

My Centura Appl. uses DB2 Connect to connect to DB2 Database, on one screen I insert in 2 tables, & update on the 3rd. But 3rd table has some problem while updating. My data gets rollbacked properly.
But If I try to Query the First Table it takes lot of time and at the end I receive Deadlock or TimeOut message.
Are there any additional settings needs to be one to AVOID TIMEOUT.

REPLY BACK.
THANKS IN ADVANCE
-MILIND
Reply With Quote
  #2 (permalink)  
Old 11-10-03, 23:58
mphilip mphilip is offline
Registered User
 
Join Date: Nov 2003
Posts: 12
Re: Lock problem on DB2 Table

You should be able to specify the timeout in the connection string. Check your query to find out why does it takes too ling to execute so, check your query first.

mphilip
Reply With Quote
  #3 (permalink)  
Old 11-10-03, 23:58
mphilip mphilip is offline
Registered User
 
Join Date: Nov 2003
Posts: 12
Re: Lock problem on DB2 Table

You should be able to specify the timeout in the connection string. Check your query to find out why does it takes too ling to execute so, check your query first.

mphilip
Reply With Quote
  #4 (permalink)  
Old 11-11-03, 02:50
milindk22 milindk22 is offline
Registered User
 
Join Date: Oct 2003
Posts: 5
Re: Lock problem on DB2 Table

Quote:
Originally posted by mphilip
You should be able to specify the timeout in the connection string. Check your query to find out why does it takes too ling to execute so, check your query first.

mphilip
Thanks for your input, but the Query is simple with a condition.

Are there any settings to be done for DB2 Connect ?
-milind
Reply With Quote
  #5 (permalink)  
Old 11-11-03, 05:25
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
You need to find out what is causing the lock contention.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 11-11-03, 05:28
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
If you fixed your rollback problem from this thread:
http://www.dbforums.com/t969209.html
please tell us what you did to fix it.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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