Record locks
CA IDMS/DB sets record locks on entity occurrences accessed by transactions operating under the central version. Record locks are never maintained for transactions operating in local mode, since concurrent update is prevented by physical area locks.
Locks can be set implicitly by the central version or explicitly by the programmer, as described below:
They are never maintained for areas whose status is transient retrieval or for database transactions executing with an isolation level of transient retrieval.
Functions
Record locks perform four functions:
Increased contention
Record locks can sometimes increase contention among programs that require access to database resources. In some instances, conditions that result from the use of record locks can even cause abnormal termination of transactions executing under the central version. The following conditions can occur:
CA IDMS/DB resolves this potential bottleneck by aborting and rolling back one of the transactions. By default, the transaction chosen is the most recently begun transaction with the lowest priority.
Copyright © 2014 CA.
All rights reserved.
|
|