Running automated utilities using maintenance windows
You can use Db2® Automation Expert stored procedures and repository to facilitate automation of ongoing database monitoring and maintenance tasks for your applications.
The Db2 Automation Expert Automation Console panels contain extended functionality to allow you to set up and control automated running of your utilities. Use the Automation Console panels to:
- Create and schedule the maintenance windows in which utilities are permitted to run.
- View the exceptions (also called symptoms) and utilities (also call actions) that are generated by a Db2 Automation Expert build.
- Review utility execution output run in the maintenance window.
- Evaluate your maintenance window workload.
- Fine-tune the maintenance workload by adjusting priorities for actions, symptoms, and objects, thereby ensuring your most important jobs are run first when the maintenance window opens.
- Configure Db2 Automation Expert to send notifications by email or text message when Db2 Automation Expert job profiles are built in batch.
Utility actions are generated when Db2 Automation Expert job profiles that are configured for active or passive action are built. From output of a job profile build, Db2 Automation Expert creates either active actions that are scheduled to be run when the assigned maintenance window opens, or passive actions that do not run when the maintenance window opens. For both active and passive actions, you can review the actions, objects, and symptoms that generated the actions on the Automation Console panels.
Both the Db2 Automation Expert utility JCL batch builds and builds that generate actions resolve wildcarded and dependent objects, gather object information, and evaluate exception criteria. However, instead of writing JCL, builds that generate actions update several Db2 Automation Expert repository tables, as follows:
- Utility actions on the objects are written to a Db2 Automation Expert actions table.
- Exception criteria that triggered the action is written to a Db2 Automation Expert symptoms table.
To allow the Db2 Automation Expert stored procedure to run the actions in the actions table, you must define a maintenance window and then schedule the maintenance window to run. A maintenance window is a specific time period that allows the actions to be run on your objects.
Once a maintenance window is associated with the job profile, when you build the job profile, the actions are generated from the build. After the associated maintenance window is scheduled and the time period that it is scheduled to run opens, the Db2 Automation Expert stored procedure retrieves actions from the table and starts running them, until it runs out of actions to perform or the maintenance window closes.
Prerequisites
If you want to use the Db2 administrative task scheduler to schedule maintenance windows, it must be configured and active on the Db2 subsystems on which you are running Db2 Automation Expert. For information about configuring the task scheduler, refer to the Db2 Administration Guide for your version of Db2.
Additional software and authorization requirements apply; refer to Verify that your environment meets software requirements.
Supported utilities
- CHECK DATA
- COPY (full or incremental)
- COPYTOCOPY
- Table space REORG
- Creating a mapping table (as part of a table space REORG)
- Dropping a mapping table (as part of a table space REORG)
- Index REORG
- QUIESCE
- MODIFY
- REPAIR
- RECOVER
- RUNSTATS
- Image copies from system level backups taken by Db2 Recovery Expert
- Space reallocation
- Load accelerator tables for IBM® Db2 Analytics Accelerator for z/OS®