The example in Listing 2 connects to the test database and creates two tables.
清单 2 中的例子连接到测试数据库并创建了两个表。
To determine which tables in a database have page-level locking and need to be modified to row-level locking, I use a helpful SQL script: genlockmod.sql (see Listing 1).
为了确定数据库中的哪些表具有页面级锁定以及需要修改为行级别锁定,我使用了一段sql脚本:genlockmod . sql(参见清单1)。
Listing 7 shows how to use the db2pd utility to get this information for all indexes on all tables in a database.
清单7显示了如何使用db 2 pd实用程序为数据库中的所有表上的索引获取该信息。
应用推荐