You can perform DB2 Query Patroller operations through a combination of the command-line interface and QueryAdministrator. This chapter provides information about the following operations:
It also provides control program, command syntax, and parameter descriptions.
The control program (iwm) starts and stops DB2 Query Patroller. When starting DB2 Query Patroller, you should start the server node first, followed by the agent nodes. When stopping DB2 Query Patroller, you should stop the agent nodes first, followed by the server node. You must run iwm on each node for these activities to occur.
You can use a number of methods to pause DB2 Query Patroller without fully stopping the system. For instance, you can stop one or more of the agent nodes using the iwm program or QueryAdministrator. You can also make one or more nodes quiescent using the command-line interface or the QueryAdministrator and then later reactivate the node. You can alter the system or data source parameters to prevent additional jobs from being scheduled or even alter the data source status to prevent new jobs from being submitted.
You can control the number of jobs, where they run, and the load put on the database by altering the system, data source, and job queue parameters. See Parameters for parameter descriptions.
If a user submits a query to DB2 Query Patroller and DB2 Query Patroller estimates the job's cost to be greater than the user's limit, then the job receives a hold status. In order for a job with a hold status to run, the system administrator must release the job using QueryAdministrator or the command-line interface. While a job is in the DB2 Query Patroller system, either the system administrator or the job's owner may cancel the job. A list of the jobs with a hold status or those jobs with some other status can be obtained through the command-line interface or QueryMonitor. See the DB2 Query Patroller User's Guide for more information about viewing a job's status.
In addition to monitoring job flow, the status of DB2 Query Patroller, and the database software, you need to monitor the host system itself. You can use the command-line interface to perform some monitoring and automated operations by using shell scripts, tools such as awk, and languages such as Perl. However, to be alerted to severe problems, monitor the system error log file produced by the server and agent components.
The DB2 Query Patroller control program (iwm) starts, stops, and displays the status of DB2 Query Patroller processes. The following diagram provides the syntax for iwm:
>>-iwm----+-ps-----------------------------+------------------->< | .-all----. | +-start--+-server-+---+--------+-+ | '-agent--' '-TRACE--' | | .-all----. | '-stop--+-server-+---------------' '-agent--'
Table 3. iwm Parameter Descriptions