• The Automatic Optimizer Statistics Collection task collects statistics for all objects with no or stale statistics.
  • The Automatic Segment Advisor task provides advice on which database segments have free space that can be reclaimed.
  • Automatic SQL Tuning Advisor task, which examines SQL statement performance and makes SQL profile recommendations to improve the statements.
You can query the DBA_AUTOTASK_OPERATION to find out the names and status of the automatic tasks in your database. as shown in the following example:
These tasks are enabled by default.
All automated maintenance tasks are scheduled to run during the Oracle Scheduler maintenance window. The Oracle Scheduler creates a job when the window (period) starts. After the automated task job completed, the Oracle Scheduler automatically drops that job.
You can view all the predefined maintenance windows by querying the DBA_AUTOTASK_SCHEDULE view:
You can disable any of the tasks by using the DBMS_AUTO_TASK_ADMIN package. If you want to disable all the automated tasks, issue the following command::
If you want to enable all the automated tasks, issue the following command:
You can also disable (or enable) a specific task. For example, you can issue the following command to disable “gather_stats_prog” task:
You can also use the “Automated Maintenance Tasks” screen of Enterprise Manager to manage these automated tasks.