一数据库ORA-600[qkaffsindex5]。
分析trc文件,初步判定ORACLE的SQL优化器正在试图优化一条资源较大的SQL时触发BUG,经SR 后台专家确认,命中bug 13616375.
oracle虽然确认了这一BUG,但目前尚未提供解决方案, 因该bug在oracle自动SQL优化时偶然触发, 对应用影响不大。数据库在连续两次告警后2天内未曾重现该错误.
在该错误发生频次低的情况下,官方建议忽略该错误.
故障处理过程:
1.故障分析/处理
1.1 alert log
Fri Apr 0522:51:36 2013
Errors in file/oracle/database/diag/rdbmsxxxdb/xxxdb2/trace/xxxdb2_j001_4223.trc (incident=72512):
ORA-00600:internal error code, arguments: [qkaffsindex5], [], [], [], [], [], [], [], [],[], [], []
Incidentdetails in: oracle/database/diag/rdbms/xxxdb/xxxdb2/incident/incdir_72512/xxxdb2_j001_4223_i72512.trc 7
在4月5日22:51,连续告警两次,尔后2天内未重现.
1.2 trace file
*** 2013-04-0522:51:36.373
*** SESSIONID:(837.2953) 2013-04-05 22:51:36.373
*** CLIENTID:() 2013-04-05 22:51:36.373
*** SERVICENAME:(SYS$USERS) 2013-04-05 22:51:36.373
*** MODULENAME:(DBMS_SCHEDULER) 2013-04-05 22:51:36.373
*** ACTIONNAME:(ORA$AT_SQ_SQL_SW_789) 2013-04-05 22:51:36.373
----- Current SQL Statement for this session (sql_id=drsnvaktx8hg8)-----
/* SQL Analyze(837,1)*/ select t3.org_id, decode(:1, 2, decode(t3.org_id,'10017', '全省', t3.org_name), 3, decode(t3.org_id,:2, '全市', t3.org_name),
。。。。。。
。。。。。。
d = t.channel_id and w.create_time <=t.end_date and c.home_city = :16 group by rollup(c.home_county) ) t2, sys_organizition_channelt3 where t3.org_id =t1.org_id(+) andt3.org_id = t2.org_id(+) and t3.current_type in (2,3) and t3.home_city not like'12500%' and t3.home_city = :17 order byt3.org_id
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
c000000833631a00 11816 package body SYS.DBMS_SQLTUNE_INTERNAL
c00000082aa6d908 7 SYS.WRI$_ADV_SQLTUNE
c000000843b3d948 587 package body SYS.PRVT_ADVISOR
c000000843b3d948 2655 package body SYS.PRVT_ADVISOR
c000000837c68bc0 241 package body SYS.DBMS_ADVISOR
c00000082fd0a8f8 821 package body SYS.DBMS_SQLTUNE
c0000008356abfa8 4 anonymous block
/* SQL Analyze(837,1) */ hint也可以看出是ORACLE在试图优化这个SQL,而SYS.PRVT_ADVISOR、SYS.DBMS_ADVISOR、SYS.DBMS_SQLTUNE三个程序包也说明了这一点。
错误发生时间为22:51,推测该错误可能和oracle每日自动SQL优化相关.验证当前数据库已开启自动SQL优化任务,默认启动时间为周一到周五(22:00至次日2:00) 和 周六日运行20小时(6:00至次日2:00).
查询MOS,根据ID 973314.1,初步判定数据库可能遭遇bug 13616375.
发起SR,经oracle后台专家确认为上述BUG
1.3 故障处理及建议
oracle虽然确认了这一BUG,但目前尚未提供解决方案, 因该bug在oracle自动执行SQL优化时偶然触发, 对应用影响甚微,可忽略。
在错误发生频次低的情况下,官方建议忽略该错误.