Summary

In this chapter, we discussed how concurrency(serialization) is controlled. To protect the data as it is being modified, rules are established and the changes are grouped into units of work. The updated data is made permanent by the COMMIT statement or removed by the ROLLBACK statement. The rules of concurrency are determined by the isolation level, the lock size, and the rules of lock duration.

DB2 implements the isolation level semantics of data access by implicitly acquiring locks on behalf of applications. Applications can decide to lock a resource for exclusive or share modes. The resources that can be locked are the row, page, table, tablespace, and partition.

If a requested lock is more restrictive, and another application already ...

Get DB2® Universal Database™ for OS/390™ v7.1 Application Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.