nerdexam
Oracle

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.

Performing Database Maintenance

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)
  • A
    7% (1)
  • B
    14% (2)
  • D
    79% (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.

AThe statistics collection continues until all objects are processed.

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.

BThe job is terminated and the statistics collected are restored to a time before the job started.

Statistics successfully gathered before the window closed are retained and not rolled back - only objects not yet processed remain without updated statistics.

CThis produces an error and the statistics collected are locked until the next time that the maintenance

No error is raised when the maintenance window closes mid-job; the job terminates gracefully and previously collected statistics are neither locked nor invalidated.

DThe job is terminated and the statistics for the remaining objects are collected the next time that theCorrect

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

#automatic maintenance tasks#optimizer statistics#maintenance window#DBMS_STATS

Community Discussion

No community discussion yet for this question.

Full 1Z0-052 Practice