Locks, Latches, Claims, & Drains Flashcards
Is locking more complicated in a Data Sharing Environment?
Yes
Locking exists to ensure what?
Data Integrity
What does A.C.I.D stand for & what do each mean?
Atomic - “All or Nothing” for UOW
Consistent - Database consistent after Commit
Isolation - Concurrent transactions not inter-dependent
Durable - Updates persistent once committed
How much does memory cost in a non Data Sharing Env.?
Around 500-600 bytes of memory
Regarding locks what is ideal?
Hold the lowest number of small locks for the least time
What does IRLM stand for?
Internal Resource Lock Manager
What is the IRLM address space naming format?
ssidIRLM
Where are the locks held in a data sharing environment?
Coupling Facility
Theoretical limit for a single DB2 subsystem?
Around 100m locks
A typical 2GB IRLM hold just over how many locks?
3 million locks
What are the 4 essential locking concepts?
Scope - How much data is locked
Mode - What type of lock has been requested
Duration - how long the lock is held
Isolation - Describe the impact of UOW on each other & works both ways - a UOW can impact and/or ignore others
What is the Locking Hierarchy for Simple & Segmented?
Row/Page -> Table (Segmented Only) -> Tablespace
What is the Locking Hierarchy for Partitioned & UTS?
Row/Page -> Partition
What is LOCKMAX?
The maximum number of locks per user to acquire for the TB or TS before escalating to the next locking level.
What is NUMLKTS?
Is a subsystem parm that specifies the default maximum number of page, row, or LOB locks that an application can hold simultaneously in a table or table space. If a application exceeds the maximum number of locks in a single TB or TS, lock escalation occurs. (Across all objects)