Running queries on Db2 table spaces with locking size = 'S'
Use the performance queries function to view information about and work with table spaces with locking size = 'S'.
Procedure
-
On the DB2 Administration Menu
(ADB2) panel, specify option
3, and press Enter.
The DB2 Performance Queries panel is displayed.
-
Specify option 5, and press Enter.
The DB2 Table Spaces With Locking Size = 'S' (ADB235) panel panel is displayed, as shown in the following figure:
The following columns are on this panel:
- S
- Selects a table space when you use the S line command.
- DB Name
- The name of the database.
- TS Name
- The name of the table space.
- Lock Size
- The lock size of the table space.
- Number of Tables
- The number of tables defined in the table space.
- Optional:
Work with the table spaces by using the primary commands and line commands.
Db2 uses table space locking when it accesses a table in the table space. Only use locking size = 'S' for read-only tables or tables that are accessed by only one user (or batch job) at a time. If concurrency between updating tasks or updaters and readers is required, then consider changing the locking size to 'A' (any locking) by altering the locksize with an ALTER SQL statement.
The AL line command enables you to quickly perform an ALTER TABLESPACE statement to change the LOCK SIZE to ANY. Entering the AL line command is equivalent to entering the S line command followed by the AL line command, and then entering ANY in the LOCK SIZE field.
The O line command enables you to quickly move to the Batch Job Utility Parameters (ADB2UPA) panel. Entering the O line command is equivalent to entering S, UT, and O commands in succession.