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 > DB2 LOCK TABLE / Respond slow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-10, 02:41
mahesh_terdal mahesh_terdal is offline
Registered User
 
Join Date: Feb 2009
Posts: 27
DB2 LOCK TABLE / Respond slow

Hello All,

We are creating a test scenario, Where in I want DB2 to respond slowly to the queries fired by our application.

I tried locking table in exclusive mode, but our application managed to retrieve results quickly.

Can anybody help me out in order to lock a table for 5 minutes or in any way can we make db2 respond slowly?

Any help would be highly appreciated.
Reply With Quote
  #2 (permalink)  
Old 06-28-10, 07:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Make sure that the following are set:

CUR_COMMITT = DISABLED (or OFF) - 9.7 only
LOCKTIMEOUT = -1

Then make sure you lock the table in exclusive mode for 5 minutes, then do a commit to release the locks.
__________________
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
  #3 (permalink)  
Old 06-28-10, 07:42
mahesh_terdal mahesh_terdal is offline
Registered User
 
Join Date: Feb 2009
Posts: 27
Yes that was what I missed, I could lock table after turning off auto commit.
Thanks a lot for your help
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