A typical DB2 Query Patroller client consists of two utilities. The QueryEnabler and the QueryMonitor. The QueryMonitor tool allows the user to mange queries, and the QueryEnabler tool is the component that intercepts submitted queries and places them under the control of the DB2 Query Patroller system. This chapter provides steps to help configure a DB2 Query Patroller client.
Query cost is measured in timeron units. A timeron is a unit of measurement used to give a rough relative estimate of the resources, or cost, required by the database server to execute two plans for the same query. The resources calculated in the estimate include weighted CPU and I/O costs.
Other parameters you can configure for the DB2 Query Patroller client include Low, Normal, and High Priority, and a users e-mail address for notification. For a complete listing of User Profile Parameters, and for instructions on how to add a user to the DB2 Query Patroller system, see User Administration.
When the n-tier option is set to RUN, queries will be submitted to the DB2 Query Patroller server in a Submit and Wait mode. User intervention through the QueryEnabler tool is not required. The RUN value has a time out option: RUN: timeout. This option is in units of seconds. If this option is not set, QueryEnabler will wait until the query has been processed before returning control to the query application.
When the DQP_NTIER profile variable is set to CHECK, it will behave similarly to RUN, but in this case, DB2 Query Patroller will check to determine if an answer set already exists for the query being submitted. If an answer set does exist, that result set will be returned, as opposed to the same query being executed again. The CHECK value has a time out option: CHECK: timeout. This option is in units of seconds. If this option is not set, QueryEnabler will wait until the query has been processed before returning control to the query application.
Note: | The default value for the DQP_NTIER variable is OFF. |