Defining a workload for the Design Advisor
When the Design Advisor analyzes a specific workload, it considers factors such as the type of statements that are included in the workload, the frequency with which a particular statement occurs, and characteristics of your database to generate recommendations that minimize the total cost of running the workload.
About this task
A workload is a set of SQL statements that
the database manager must process during a period of time. The Design
Advisor can be run against:
- A single SQL statement that you enter inline with the db2advis command
- A set of dynamic SQL statements that were captured in a Db2® snapshot
- A set of SQL statements that are contained in a workload file
You can create a workload file or modify a previously
existing workload file. You can import statements into the file from
several sources, including:
- A delimited text file
- An event monitor table
- Explained statements in the EXPLAIN_STATEMENT table
- Recent SQL statements that were captured with a Db2 snapshot
- Workload manager activity tables
- Workload manager event monitor tables by using the -wlm option from the command line