DB2 Query Patroller User's Guide
This chapter provides information and procedures for scheduling a query using
the Schedule Query window.
To schedule a query using the Schedule Query window, perform the following
steps:
- Use your 32-bit ODBC query application to submit a query.
If the same query already exists in the job table, the Result Set window
opens. Otherwise, the Schedule Query window opens. If the
Schedule Query window opens, go to step 3.
- If the Result Set window opens, click Submit Query.
The Schedule Query window opens.
- Choose an execution mode: immediate execution, deferred execution,
or recurring query.
- Follow the instructions in the appropriate section below for the execution
mode chosen.
To schedule a query for immediate execution, perform the following
steps:
- Complete the instructions in Setting the Special Submission Options.
- Click Submit and Wait.
Note: | If you believe that the query is going to take a lot of time to complete or
that the DB2 Query Patroller system is going to defer execution of the query
based on its cost, click Submit and Release.
|
- Go to Waiting for Query Results.
To schedule a query for deferred execution, perform the following steps:
- Set the execution date and execution time on the Schedule Query
window. See Setting Query Options for instructions on setting the execution date and
time.
- Set the special submission options on the Schedule Query window.
See Setting the Special Submission Options for instructions.
- Click Submit and Release.
- Go to Returning Query Results.
To schedule a recurring query:
- Set the special submission options on the schedule Query window.
See Setting the Special Submission Options for instructions.
- Click Schedule.
The Recurring Query Scheduler window opens.
- Go to Scheduling a Recurring Query.
Depending on the query execution mode, you may need to set the execution date,
the execution time, and the special submission options.
In the calendar section of the Schedule Query window, perform the following
steps to set the execution date.
- Use the arrow push buttons above the calendar to select the month.
- Select a day of the month for the query to begin executing.
The selected day displays darker than the other days in the month.
In the time section of the Schedule Query window, perform the following steps
to set the execution time:
- Use the first set of up and down arrows to select the hour.
Note: | The a.m./p.m. designator cannot be set directly;
it can only be set by setting the hour.
|
- Use the second set of up and down arrows to select the minute.
- Use the third set of up and down arrows to select the second.
In the special submission options section of the Schedule Query window,
perform the following steps to set the special options.
- Select or deselect the Cost Analyze Query checkbox as
needed.
- In the Priority field, select a priority from the drop-down
list.
- In the Results Destinations field, select a result destination
from the drop-down list.
- In the Query Name field, select a query name from the drop-down
list. If needed, click Edit Names to add, delete, or edit a
query name.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
[ DB2 List of Books |
Search the DB2 Books ]