Difference between pages "Check Generated Archivelog Sizes" and "Sys Aux Statistics"
(Difference between pages)
Jump to navigation
Jump to search
(Created page with "Script may or may not work for everyone. The difficulty with this one is that it has to get the archivelog sizes from v$archived_log which could contain duplicate rows as ind...") |
(Created page with "Note to-self: Hardware Stats are stored in <blockquote><pre> SYS.AUX_STATS$ </pre></blockquote> To gather the statistics: <blockquote><pre> exec dbms_stats.gather_system_st...") |
||
Line 1: | Line 1: | ||
− | + | Note to-self: Hardware Stats are stored in | |
− | + | <blockquote><pre> | |
+ | SYS.AUX_STATS$ | ||
+ | </pre></blockquote> | ||
− | To | + | To gather the statistics: |
+ | <blockquote><pre> | ||
+ | exec dbms_stats.gather_system_stats('Start'); | ||
+ | -- during peak times | ||
+ | exec dbms_stats.gather_system_stats('Stop'); | ||
+ | </pre></blockquote> | ||
− | <pre> | + | To delete the statistics: |
− | + | <blockquote><pre> | |
− | + | exec dbms_stats.delete_system_stats; | |
− | + | </pre></blockquote> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </pre> |
Latest revision as of 22:57, 8 November 2019
Note to-self: Hardware Stats are stored in
SYS.AUX_STATS$
To gather the statistics:
exec dbms_stats.gather_system_stats('Start'); -- during peak times exec dbms_stats.gather_system_stats('Stop');
To delete the statistics:
exec dbms_stats.delete_system_stats;