Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009

    Unanswered: 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.

  2. #2
    Join Date
    May 2003
    Make sure that the following are set:

    CUR_COMMITT = DISABLED (or OFF) - 9.7 only

    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

  3. #3
    Join Date
    Feb 2009
    Yes that was what I missed, I could lock table after turning off auto commit.
    Thanks a lot for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts