重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

标题: FAQ: Automatic Statistics Collection Jobs (10g and 11g) [ID 1233203.1] [打印本页]

作者: 郑全    时间: 2012-6-29 18:08
标题: FAQ: Automatic Statistics Collection Jobs (10g and 11g) [ID 1233203.1]

In this Document

Purpose
Questions and Answers
What kind of statistics do the Automated tasks collect
How do I revert to a previous set of statistics?
Does the automatic statistic collection jobs populate CHAIN_CNT?
11g+ Automatic Maintenance Tasks
What are the default windows for the automated maintenance task to run?
Whats new /changed in 11g with respect to automatic statistics collection?
How to enable auto stats collection?
How to disable the auto stats collection?
How can I check the status of the 'auto optimizer stats collection'?
How can I see the history of the automatic stats job for each day?
How to manually execute the Optimizer Statistics Auto Task?
How do to check values of parameter( estimate percent, type of histograms etc) used by the job?
How to set preference for the next maintenance job run to pick?
What is the AUTOSTAT_TARGET of SET_GLOBAL_PREFS?
10g Collection: Via GATHER_STATS_JOB
What are the default windows for the GATHER_STATS_JOB ?
How do you disable the GATHER_STATS_JOB?
How do you enablethe GATHER_STATS_JOB?
How do you Determine That the GATHER_STATS_JOB Completed
How to Change the NEXT_RUN_DATE on the GATHER_STATS_JOB ?

Applies to:

Oracle Server - Enterprise Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2]
Oracle Server - Personal Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2]
Oracle Server - Standard Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2]
Information in this document applies to any platform.

Purpose

To provide one stop shop for automated statistics collection (operation) provided in 10g and 11g

Questions and Answers

What kind of statistics do the Automated tasks collect

The statistics jobs automatically gather Missing and Stale statistics for the Cost Based Optimizer (CBO).

How do I revert to a previous set of statistics?

From Oracle 10g, Oracle retains collected statistics for 31 days after they are changed.
Refer to:

Note:452011.1 * Restoring Table Statistics (Oracle 10G Onwards)

Does the automatic statistic collection jobs populate CHAIN_CNT?

No. Chain count is not a statistic used as by the Optimizer and as such the job does not populate the chained rows information. Historically the legacy analyze command could be used to capture chain count but this functionality was not included in the DBMS_STATS package and is not collected by the automated jobs.

You can use the Automatic segment advisor for the purpose; it provides Chained row analysis??.

11g+ Automatic Maintenance Tasks

10g Collection: Via GATHER_STATS_JOB


作者: 三月    时间: 2012-6-29 21:56
不错哟........




欢迎光临 重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2