【发布时间】:2015-01-30 12:58:07
【问题描述】:
我有一个我正在使用的 PL/SQL 函数,它有时可以编译,但有时会给我这个错误。
ORA-00600: internal error code, arguments: [17285], [0x318FDE2C], [1], [0x273F1C60], [], [], [], [], [], [], [], []
00600. 00000 - "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
*Cause: This is the generic internal error number for Oracle program
exceptions. This indicates that a process has encountered an
exceptional condition.
*Action: Report as a bug - the first argument is the internal error number
断开并重新连接到 Oracle,函数编译正常,感觉很疯狂......
谷歌搜索错误代码和参数给了我这个
ERROR:
ORA-600 [17285] [a] [b] [c]
VERSIONS:
versions 7.0 to 10.1
DESCRIPTION:
Oracle is in the process of deleting an instantiation object when it
discovers that the object is currently on the call stack.
This should not occur and so ORA-600 [17285] is reported.
ARGUMENTS:
Arg [a] Instantiation object
Arg [b] Call stack nesting level
Arg [c] Library Cache Object Handle
FUNCTIONALITY:
Kernel Generic Instantiation manager
IMPACT:
PROCESS FAILURE
NON CORRUPTIVE - no corruption to underlying data.
SUGGESTIONS:
This error is usually accompanied by another error. Please check for this.
我的函数返回一个流水线的自定义表类型。大部分功能代码都省略了...
CREATE TYPE t_solexp_row AS OBJECT (
obj VARCHAR(30),
dt DATE,
param VARCHAR(30),
param_id NUMBER,
val NUMBER,
change_time TIMESTAMP
);
/
CREATE TYPE t_solexp_tab IS TABLE OF t_solexp_row;
/
CREATE OR REPLACE FUNCTION get_solexp_tab(p_start_date IN DATE, p_end_date IN DATE) RETURN t_solexp_tab PIPELINED AS
BEGIN
...
LOOP
PIPE ROW(t_solexp_row(...,...,...,...,...,...);
END LOOP;
...
RETURN;
END;
/
知道什么可能导致这种行为吗?
【问题讨论】:
-
你可以尝试为数组大小指定一个 LIMIT 看看它是否仍然发生。
-
@LalitKumarB 你建议我在哪里尝试添加限制?实际上没有任何数组存在。
-
您没有提供完整的代码。我以为会涉及到一个数组。当您进行批量收集时,您可以指定一个 LIMIT。这作为在内存中构建数组的限制。您会期望在每个数组中获得有限数量的行。这同样适用于上下文切换。
-
无论如何,很高兴您找到了根本原因并将其作为答案分享。 +1
-
@LalitKumarB 谢谢你的建议,我不知道 :)
标签: oracle pipelined-function ora-00600