You are on page 1of 3

30/12/2013

Lock Table - SAP Lock Concept - SAP Library

Lock Table
A table in the main memory of the enqueue server that records the current locks in the system. For each elementary lock, the table specifies the owner, lock mode, name, and the fields in the locked table. The lock table is used to manage locks. Every time the enqueue server receives a lock request, the system checks the lock table to determine whether the request collides with an existing lock (more information: Collision Check for Locks ). If this is the case, the request is rejected. Otherwise, the new lock is written to the lock table.

Note
Locks in the lock table are not set at database level.

Structure
Each elementary lock corresponds to a data record in the lock table. The structure of the lock entries is shown below.

help.sap.com/saphelp_nwpi71/helpdata/en/47/daae4038793c85e10000000a42189c/frameset.htm

1/3

30/12/2013

Lock Table - SAP Lock Concept - SAP Library

The individual fields have the following meaning:

Field Owner_1

Contents and meaning Owner ID and cumulation counter for owner_1: The ID contains the host name, the work process, a time stamp, and is also used to identify the SAP LUW. The cumulation counter specifies how often the owner has already set this elementary lock. The above applies here to owner_2 Backup ID (index indicating where the lock entry is stored in the backup file) and backup flag (0 (no backup) or 1 (backup)). If you set the backup indicator, the system saves the lock to disk if the lock server is restarted. Lock mode S (Shared lock) O (Optimistic lock) E (Exclusive lock) X (eXclusive lock, extended exclusive lock, cannot be cumulated) There are also lock modes U, V, and W. These only perform the collision check, but do not set a lock, and cannot therefore appear in the lock table. For more information about working with these modes, refer to: Example: Using Lock Modes U, V, and W . Name of the database table in which fields are to be locked Locked fields in the database table (linked key fields, can also contain wildcards)

Owner_2 Backup ID

Elementary lock

Name Argument

Integration
You can view the lock entries for diagnosis purposes. More information: Managing Lock Entries .
help.sap.com/saphelp_nwpi71/helpdata/en/47/daae4038793c85e10000000a42189c/frameset.htm 2/3

30/12/2013

Lock Table - SAP Lock Concept - SAP Library

Feedback Was this page helpful to you?


Yes No

Do you have any additional feedback? Please enter your feedback in English.

Send Feedback

help.sap.com/saphelp_nwpi71/helpdata/en/47/daae4038793c85e10000000a42189c/frameset.htm

3/3

You might also like