1Z0-052 · Question #4
The job to gather optimizer statistics for objects runs as part of the automatic maintenance window in your database instance. At a certain point of time, the maintenance window closes before the…
The correct answer is D. The job is terminated and the statistics for the remaining objects are collected the next time that the. Oracle's automatic optimizer statistics collection job terminates gracefully when the maintenance window closes and resumes processing remaining objects during the next scheduled maintenance window.
Question
The job to gather optimizer statistics for objects runs as part of the automatic maintenance window in your database instance. At a certain point of time, the maintenance window closes before the statistics are gathered for all objects. Which statement is true in this scenario?
Options
- AThe statistics collection continues until all objects are processed.
- BThe job is terminated and the statistics collected are restored to a time before the job started.
- CThis produces an error and the statistics collected are locked until the next time that the maintenance
- DThe job is terminated and the statistics for the remaining objects are collected the next time that the
How the community answered
(14 responses)- A7% (1)
- B14% (2)
- D79% (11)
Why each option
Oracle's automatic optimizer statistics collection job terminates gracefully when the maintenance window closes and resumes processing remaining objects during the next scheduled maintenance window.
The automatic statistics job respects maintenance window boundaries and does not continue processing after the window closes, as it is governed by the Oracle Scheduler and Database Resource Manager.
Statistics successfully gathered before the window closed are retained and not rolled back - only objects not yet processed remain without updated statistics.
No error is raised when the maintenance window closes mid-job; the job terminates gracefully and previously collected statistics are neither locked nor invalidated.
The Automatic Optimizer Statistics Collection task is designed to be interruptible - when the maintenance window closes, the scheduler stops the job without error and retains all statistics already gathered. On the next maintenance window, the job identifies objects that still lack current statistics and processes them, ensuring complete coverage over time.
Concept tested: Automatic optimizer statistics collection across maintenance windows
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-automated-database-maintenance-tasks.html
Topics
Community Discussion
No community discussion yet for this question.