DB2 Connect, Dynamic SQL, and chosen Isolation Level

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AQN1
    New Member
    • Oct 2012
    • 1

    DB2 Connect, Dynamic SQL, and chosen Isolation Level

    We use DB2 Connect v 7.2 FP7 in Windows NT hitting a OS/390 DB2 v7.1
    database. We have a Websphere (java) application that issues dynamic
    SQL. Most of the time when we issue dynamic SQL SELECT statements,
    like through a DB2 command window, the command will be processed using
    a package like SQLLF000 which uses an isolation level of Cursor
    Stability. However sometimes in the Websphere application when a
    dynamic SELECT statement is issued the command is processed using the
    package SQLLC300 which uses an isolation level of Read Stability that
    locks all the rows it reads (causing contention with other
    applications).

    how does DB2 decide which package to use for
    processing a SELECT statement?

    Can we change the SQL statement to influence which package is used?

    Should we rebind the package so that it performs Cursor Stability?

    Thanks
Working...