简体   繁体   English

在架构级别计算统计数据(11g)

[英]computing statistics at the schema level (11g)

This question is about computing statistics at the schema level (11g).Where are the schema level statistics stored .where can i retrieve the details of schema level statistics?and what is next step after gathering the statistics? 这个问题是关于模式级别的计算统计信息(11g)。存储了模式级别统计信息。我可以在哪里检索模式级别统计信息的详细信息?收集统计信息后的下一步是什么?

what i tried so far? 到目前为止我尝试了什么?

BEGIN
    DBMS_STATS.gather_schema_stats
           ('staging'
               ,estimate_percent => 20
                ,method_opt => 'FOR ALL INDEXED COLUMNS SIZE 1'
                ,block_sample => FALSE
                ,DEGREE => 32
                ,GRANULARITY => 'ALL'
                ,CASCADE => TRUE);
END;
/

what is the next step after this 在此之后的下一步是什么

Gathering statistics at the schema level means you have stats for all the tables in the schema (and all the indexes, because CASCADE=>true ). 在模式级别收集统计信息意味着您拥有模式中所有表的统计信息(以及所有索引,因为CASCADE=>true )。 So you can find the values by querying the relevant data dictionary views (USER_TABLES, USER_INDEXES). 因此,您可以通过查询相关的数据字典视图(USER_TABLES,USER_INDEXES)来查找值。

What is the next step? 你下一步怎么做? Probably considering a refresh policy. 可能考虑刷新政策。 Your best approach is to automate this task. 您最好的方法是自动执行此任务。 Find out more . 了解更多

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM