My Oracle Support Banner

How to Change GATHER_STATS_JOB or Any Job to Run on a Different Schedule? (Doc ID 579007.1)

Last updated on JULY 05, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 10.2.0.5 [Release 10.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

Goal

This note will provide the steps to create New Schedule using DBMS_SCHEDULER. Using this new schedule we can change the schedule of GATHER_STATS_JOB or any job to run on a different scheduled time.

NOTE:
Although the discussed principle is also valid for Oracle 11g, the actual example does not apply.
With 11g, Optimizer Statistics Gathering is included in the new Automated Maintenance Tasks which are defined to execute within new daily Window Schedules.

Please refer to
<Note 743507.1> - How to Benefit from Automatic Maintenance Tasks Following the Removal of the GATHER_STATS_JOB in 11g?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.