statistics
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
statistics [2016/05/06 15:47] – created z0hpvk | statistics [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Database Statistics ====== | ====== Database Statistics ====== | ||
- | ===== Restore | + | ===== Restore ===== |
< | < | ||
SELECT table_name, stats_update_time FROM ALL_TAB_STATS_HISTORY | SELECT table_name, stats_update_time FROM ALL_TAB_STATS_HISTORY | ||
Line 13: | Line 13: | ||
END; | END; | ||
/</ | /</ | ||
+ | |||
+ | ===== Pending ===== | ||
+ | < | ||
+ | -- so that any new statistics do not get published automatically | ||
+ | BEGIN | ||
+ | dbms_stats.set_table_prefs(' | ||
+ | dbms_stats.set_table_prefs(' | ||
+ | END; | ||
+ | /</ | ||
+ | |||
+ | ===== Export ===== | ||
+ | < | ||
+ | dbms_stats.create_stat_table(ownname => ' | ||
+ | END; | ||
+ | /</ | ||
+ | |||
+ | < | ||
+ | dbms_stats.export_table_stats(ownname => ' | ||
+ | dbms_stats.export_table_stats(ownname => ' | ||
+ | END; | ||
+ | /</ | ||
+ | |||
+ | |||
statistics.1462549675.txt.gz · Last modified: 2025/03/08 22:23 (external edit)