16.3. The DB2 Configuration Advisor
The Configuration Advisor is a tool that can be used to obtain an initial set of database configuration parameters. This tool can be run in either a graphical mode via the Control Center, or via command line.Let's begin by covering how to use the Configuration Advisor via command line, and follow with the graphical version.
16.3.1. Invoking the Configuration Advisor from the Command Line
You can invoke the Configuration Advisor from the command line using the command autoconfigure . Figure 16.1 shows the syntax of the autoconfigure command.
Figure 16.1. The autoconfigure command
Table 16.1 lists and describes the input keywords.
>>-AUTOCONFIGURE--+---------------------------------------+----->
| .----------------------------. |
| V | |
'-USING----input-keyword--param-value-+-'
>--+-----------------------+-----------------------------------><
| .-DB ONLY----. |
'-APPLY--+-DB AND DBM-+-'
'-NONE-------'
CREATE DATABASE mydb
AUTOCONFIGURE using mem_percent 75 APPLY DB AND DBM
16.3.2. Invoking the Configuration Advisor from the Control Center
The Configuration Advisor asks you a series of questions about the database server, the nature of the workload, transactions, priority, connections, and isolation level to determine a starting set of database configuration parameter values. You can modify these parameters later to suit the production workload and for additional fine-tuning.The following are the general steps for configuring a database for optimal performance using the Configuration Advisor.
1. | Open the DB2 Control Center. |
2. | Select the database to be configured. |
3. | Choose the Configuration Advisor. |
4. | Complete each of the applicable wizard pages. Discussion of each page follows. |
5. | The Finish button is available once enough information has been supplied for the Configuration Advisor to configure performance parameters for the database. |
6. | Click Finish to get a list of suggested configuration parameters for the database. |
As you can see in Figure 16.2, the Configuration Advisor takes you through step-by-step.
Figure 16.2. The Configuration Advisor Introduction page
[View full size image]

Figure 16.3. The Configuration Advisor Server page
[View full size image]

Figure 16.4. The Configuration Advisor Workload page
[View full size image]

Figure 16.5. The Configuration Advisor Transactions page
section 16.7, The Snapshot Monitor) to get an accurate measurement of the number of transactions per minute if the database is already operational.Specify the priority for the selected database on the Priority page (see Figure 16.6). If the database is optimized for fast transaction processing, the database may take longer to recover in the event of an error. If the database is optimized for fast recovery time, transaction performance normally will be slower. If it is equally important to optimize both, choose to balance the optimization of the two.
Figure 16.6. The Configuration Advisor Priority page
[View full size image]

Figure 16.7. The Configuration Advisor Populated page
[View full size image]

Figure 16.8. The Configuration Advisor Connections page
Chapter 11, Understanding Concurrency and Locking, for more information about isolation levels.
Figure 16.9. The Configuration Advisor Isolation page
section 4.4.4, The Task Center).
Figure 16.10. The Configuration Advisor Schedule page
[View full size image]

Figure 16.11. The Configuration Advisor Results page
[View full size image]
