Hierarchy
⤷ BC-DB-DB2 (Application Component) DB2 for z/OS
⤷ STU3 (Package) Development Class for Database Monitor
Basic Data
Data Element | DB2CWP4XLU |
Short Description | Flag if X lock is Used for Searched Update or Delete |
Data Type
Category of Dictionary Type | D | Domain |
Type of Object Referenced | No Information | |
Domain / Name of Reference Type | DB2CHAR03L | |
Data Type | CHAR | Character String |
Length | 3 | |
Decimal Places | 0 | |
Output Length | 3 | |
Value Table |
Further Characteristics
Search Help: Name | ||
Search Help: Parameters | ||
Parameter ID | ||
Default Component name | ||
Change document | ||
No Input History | ||
Basic direction is set to LTR | ||
No BIDI Filtering |
Field Label
Length | Field Label | |
Short | 0 | |
Medium | 0 | |
Long | 24 | X lock for update cursor |
Heading | 0 |
Documentation
Definition
Specify the locking method used when performing a searched UPDATE or DELETE.
A value of 'No' means DB2 uses an S or U lock when scanning for qualifying rows. For any qualifying rows or pages the lock is upgraded to an X lock before performing the update or delete. For non-qualifying rows or pages the lock is released if using ISOLATION(CS). For ISOLATION(RS) or ISOLATION(RR), an S lock is retained on the rows or pages until the next commit point.
A value of 'Yes' means DB2 gets an X lock on qualifying rows or pages. For ISOLATION(CS), the lock is released if the rows or pages are not updated or deleted. For ISOLATION(RS) or ISOLATION(RR), an X lock is retained until the next commit point. A value of YES is beneficial in a data sharing environment when most or all searched updates and deletes use an index. If YES is specified and searched updates or deletes result in a table space scan, the likelihood of timeouts and deadlocks increases.
In SAP environments recommended value is 'Yes'.
Installation parameter X LOCK FOR SEARCHED U/D on panel DSNTIPI.
Its ZPARM name is XLKUPDLT in DSN6SPRM.
History
Last changed by/on | SAP | 20070813 |
SAP Release Created in | 710 |