statistics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
statistics [2016/05/06 15:49] – 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 14: | Line 14: | ||
/</ | /</ | ||
- | ===== Pending | + | ===== Pending ===== |
- | < | + | < |
+ | -- so that any new statistics do not get published automatically | ||
BEGIN | BEGIN | ||
dbms_stats.set_table_prefs(' | dbms_stats.set_table_prefs(' | ||
Line 21: | Line 22: | ||
END; | END; | ||
/</ | /</ | ||
+ | |||
+ | ===== Export ===== | ||
+ | < | ||
+ | dbms_stats.create_stat_table(ownname => ' | ||
+ | END; | ||
+ | /</ | ||
+ | |||
+ | < | ||
+ | dbms_stats.export_table_stats(ownname => ' | ||
+ | dbms_stats.export_table_stats(ownname => ' | ||
+ | END; | ||
+ | /</ | ||
+ | |||
statistics.1462549751.txt.gz · Last modified: 2025/03/08 22:23 (external edit)