Rihaz Karady, January 12, 2016 - 9:25 pm UTC
Thanks very much.
I was planning to do the following .
Would this be good to run the stats job on certain days ?
thanks again.
BEGIN
sys.dbms_scheduler.set_attribute( name => '"SYS"."BSLN_MAINTAIN_STATS_SCHED"', attribute => 'repeat_interval', value => 'FREQ=WEEKLY;BYDAY=TUE,WED,FRI,SAT,SUN;BYHOUR=15;BYMINUTE=0');
END;
January 13, 2016 - 3:42 am UTC
BSLN_MAINTAIN_STATS_SCHED is unrelated to optimizer statistics.
You need to change window's as I specified earlier, or you could disable the job for certain days, eg
DBMS_AUTO_TASK_ADMIN.disable(
client_name => 'auto optimizer stats collection',
window_name => 'FRIDAY_WINDOW');