自动收集统计信息任务超过时间窗设置进程被自动kill掉报opidrv aborting process J000 ospid (17826356) as a result of ORA-1013错误
因业务需求自动收集窗口时间不能被调整,只有锁历史表的统计信息和增大自动收集任务的并行度
SELECT DBMS_STATS.get_prefs('DEGREE') FROM dual;
设置和查看并行度
SQL> SELECT DBMS_STATS.get_prefs('DEGREE') FROM dual;
DBMS_STATS.GET_PREFS('DEGREE')
--------------------------------------------------------------------------------
10
默认应该是AUTO_DEGREE,Oracle 根据对象大小、CPU 数量和初始化参数选择并行度
SQL> exec DBMS_STATS.SET_GLOBAL_PREFS('DEGREE',12);
PL/SQL procedure successfully completed.
SQL> SELECT DBMS_STATS.get_prefs('DEGREE') FROM dual;
DBMS_STATS.GET_PREFS('DEGREE')
--------------------------------------------------------------------------------
12