How to enable Oracle 11g automatic collection of statistics

Source: Internet
Author: User

Today received a friend database a case, in the DBCA, the automatic collection of statistical information to remove the option, the database run for six months did not collect statistical information, now to enable the following methods:

EXEC dbms_auto_task_admin. ENABLE ();

EXEC dbms_auto_task_admin. ENABLE (client_name => ' auto Optimizer stats collection ', Operation => ' auto optimizer stats job ',window_name=> NULL);

EXEC dbms_auto_task_admin. ENABLE (client_name => ' auto Optimizer stats collection ', Operation => null,window_name NULL);

Select Window_name,

Window_next_time,

Optimizer_stats,

Aa. Window_active,

Aa. Segment_advisor,

Aa. Autotask_status,

Aa. Optimizer_stats

From Dba_autotask_window_clients AA

ORDER BY Window_next_time

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.