简体   繁体   中英

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?

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 ). So you can find the values by querying the relevant data dictionary views (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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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