Start of change

CONCURRENTACCESSRESOLUTION bind option

The CONCURRENTACCESSRESOLUTION option specifies which concurrent access resolution option to use for statements in a package.

Start of change
CONCURRENTACCESSRESOLUTION
  • ( WAITFOROUTCOME)
  • ( USECURRENTLYCOMMITTED )
On: BIND and REBIND PLAN and PACKAGE, REBIND TRIGGER PACKAGE

Start of changeNot valid for REBIND of a native SQL procedure package.End of change

( USECURRENTLYCOMMITTED )
Start of changeSpecifies that when a read transaction requires access to a row that is locked by an INSERT or DELETE operation, the database manager can access the currently committed row, if one exists, and continue to the next row. The read transaction does not need to wait for the INSERT or DELETE operation to commit. This clause applies when the isolation level in effect is cursor stability or read stability.

Start of changeUnder the following circumstances, if USECURRENTLYCOMMITTED is specified for a package, WAITFOROUTCOME behavior is used instead:End of change

  • The table space on which the package operates is not a universal table space.
  • XML data is being selected, and the data does not support multiple XML versions. In this case, the DB2® database manager cannot determine whether the data has been committed.
End of change
( WAITFOROUTCOME )
Start of changeSpecifies that when a read transaction requires access to a row that is locked by an INSERT or DELETE operation, the read transaction must wait for a COMMIT or ROLLBACK operation to complete.End of change

Defaults:

Process Default value
BIND PLAN None
BIND PACKAGE None
REBIND PLAN None
REBIND PACKAGE None
REBIND TRIGGER PACKAGE None

CONCURRENTACCESSRESOLUTION has no default. The following table shows how DB2 handles uncommitted INSERTs for all combinations of CONCURRENTACCESSRESOLUTION settings and subsystem parameter SKIPUNCI settings.

Table 1. DB2 behavior for combinations of settings for subsystem parameter SKIPUNCI and bind option CONCURRENTACCESSRESOLUTION
SKIPUNCI value CONCURRENTACCESSRESOLUTION value Skip uncommitted INSERTs or wait for COMMIT or ROLLBACK
YES USECURRENTLYCOMMITTED Skip uncommitted INSERTs
YES WAITFOROUTCOME Wait for COMMIT or ROLLBACK
YES Not specified Skip uncommitted INSERTs
NO USECURRENTLYCOMMITTED Skip uncommitted INSERTs
NO WAITFOROUTCOME Wait for COMMIT or ROLLBACK
NO Not specified Wait for COMMIT or ROLLBACK
End of change
End of change