今天巡检客户oracle数据库,查看alert告警日志发现了一个错误,如下图:
这个错误大量出现,经过查询mos得知:
错误类型为ora$at_os_opt_sy_xxx 模式,命中bug 27983174。
影响范围:12.2C,18C
查询:
sqlplus / as sysdba
column name format A35
set linesize 120
select name, ctime, how_created from sys.wri$_adv_tasks where owner_name = 'SYS' and name in ('AUTO_STATS_ADVISOR_TASK','INDIVIDUAL_STATS_ADVISOR_TASK');
无结果
解决办法:
sqlplus / as sysdba
EXEC dbms_stats.init_package();
请注意,如果系统已经运行,上述语句可能会引发错误 执行这些任务。 如果在执行语句时出现错误, 请过一段时间再试。(报错无影响)
再次查询:
select name, ctime, how_created from sys.wri$_adv_tasks where owner_name = 'SYS' and name in ('AUTO_STATS_ADVISOR_TASK','INDIVIDUAL_STATS_ADVISOR_TASK');
任务存在,有结果。