问题描述
你好,
我试图在12.2数据库中使用Access Advisor包。当执行DBMS_ADVISOR.EXECUTE_TASK我得到错误:
开始
*
第1行的错误:
ORA-00604: 在递归SQL级别1发生错误
ORA-01843: 不是有效月份
ORA-06512: 在 “SYS.DBMS_ADVISOR”,第201行
ORA-06512: 在2号线
此行为与注释259188.1完全匹配 (… DBMS_ADVISOR.EXECUTE_TASK可能会因ORA-01843而出错…)。但这份说明是2015年9月最后一次审查的。此后没有发布任何补丁/解决方法吗?
我试图在12.2数据库中使用Access Advisor包。当执行DBMS_ADVISOR.EXECUTE_TASK我得到错误:
开始
*
第1行的错误:
ORA-00604: 在递归SQL级别1发生错误
ORA-01843: 不是有效月份
ORA-06512: 在 “SYS.DBMS_ADVISOR”,第201行
ORA-06512: 在2号线
此行为与注释259188.1完全匹配 (… DBMS_ADVISOR.EXECUTE_TASK可能会因ORA-01843而出错…)。但这份说明是2015年9月最后一次审查的。此后没有发布任何补丁/解决方法吗?
专家解答
可悲的是,这个错误仍然没有修复 :(
您可以尝试在sys.WRI $ _ SQLSET_STATISTICS.first_load_time中查找 “0000-00-00/00:00:00” 的值,并使它们为空。
但是正如笔记所说:
The error occurs due to sys.WRI$_SQLSET_STATISTICS.first_load_time is '0000-00-00/00:00:00' for rows that the actual failing run of DBMS_ADVISOR.EXECUTE_TASK inserts in there, then later queries SELECT ... to_date(first_load_time,'yyyy-mm-dd/hh24:mi:ss'), so updating sys.WRI$_SQLSET_STATISTICS.first_load_time manually with a meaningful date string before running DBMS_ADVISOR.EXECUTE_TASK does not work around the problem.
您可以尝试在sys.WRI $ _ SQLSET_STATISTICS.first_load_time中查找 “0000-00-00/00:00:00” 的值,并使它们为空。
但是正如笔记所说:
The error occurs due to sys.WRI$_SQLSET_STATISTICS.first_load_time is '0000-00-00/00:00:00' for rows that the actual failing run of DBMS_ADVISOR.EXECUTE_TASK inserts in there, then later queries SELECT ... to_date(first_load_time,'yyyy-mm-dd/hh24:mi:ss'), so updating sys.WRI$_SQLSET_STATISTICS.first_load_time manually with a meaningful date string before running DBMS_ADVISOR.EXECUTE_TASK does not work around the problem.
文章转载自ASKTOM,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




