collect OLTP stats from 9-5 each day
collect night batch stats from midnight to 6am.
Now for this to work do I understand that I have to then import the stats back?
if this is the case do aocollect stats each day and then the following day import them?
Normaly you would only collect system statistics once. Of course, if your system changes drasticaly, for example if you upgrade it with faster CPUs or faster disks, then you would normaly recollect them. But there is certanly no need to recollect them repeatedly every day.
You would store those statistics in a dedicated table, created by DBMS_STATS.CREATE_STAT_TABLE procedure.
Now you only need to flip-flop the OLTP/batch system statistics from that table into the dictionary by using DBMS_STATS.IMPORT_SYSTEM_STATS procedure at the desired intervals.
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Originally posted by jmodic Normaly you would only collect system statistics once. Of course, if your system changes drasticaly, for example if you upgrade it with faster CPUs or faster disks, then you would normaly recollect them. But there is certanly no need to recollect them repeatedly every day.
You would store those statistics in a dedicated table, created by DBMS_STATS.CREATE_STAT_TABLE procedure.
Now you only need to flip-flop the OLTP/batch system statistics from that table into the dictionary by using DBMS_STATS.IMPORT_SYSTEM_STATS procedure at the desired intervals.
Your system stats will be stored in sys.aux_stats$. Check the values in this table whether the value for MREADTIM is bigger than SREADTIM. If this is not the case than system statistics will not be used.
Oracle it's not just a database it's a lifestyle!
-------------- BTW....You need to get a girlfriend who's last name isn't .jpg
Bookmarks