群里有人贴了一个错误:
ORA-00600: 内部错误代码, 参数:[dmlsrvColLenChk_2:dty], [2], [0], [16896], [], [], [], [], [], [], [], []
ORA-06512: 在 "IDBG17_DEV.ETL_LINK13_LLR_BRN", line 44
ORA-06512: 在 line 2
MOS 上搜了一下,有篇文章说明:
ORA-00600: [dmlsrvColLenChk_2:dty], [2]During Insert [ID 437343.1]
An insert statement fails with thefollowing error and stack trace:
--insert 操作失败,并报如下错误。
ORA-00600: internal error code, arguments:[dmlsrvColLenChk_2:dty], [2], [], [],[], [], [], []
Stack trace:
ksedst ksedmp ksfdmp kgerinv kgeasnmierrdmlsrvColLenChk
insLoadRow qermtRop PGOSF342_qersqRow Procedure qerfiFetch qersqFetch
This is bug 5526494 whichis closed duplicate of base bug 6627733:
Bug 5526494.-P Base Bug 6627733
Abstract: ORA-600 [DMLSRVCOLLENCHK_2:DTY], [12] RUNNING INSERT AS SELECT
Base Bug 6627733
Abstract: OERI[dmlsrvColLenChk_2:dty] inserting NULLs into CHAR length semanticscolumn
This problem is introduced by the fix for Bug 3447792 .
--这个问题由bug3447792 引入。
ORA-600 [dmlsrvColLenChk_2:dty] can occur when inserting NULL values into columns with character length semantics along with NULL into DATE or NUMERICcolumns in an insert SQL.
--当把NULL 插入character 类型的字段时,或者 将NULL 插入DATE,NUMBERIC 类型的字段时会发生ORA-600 [dmlsrvColLenChk_2:dty] 错误。
eg:
create table bug6627733
(
VAR_CHAR VARCHAR2(3 CHAR),
SOME_DATE DATE
);
INSERT ALL
WHEN 1=1
THEN
INTO bug6627733 ( VAR_CHAR, SOME_DATE )
VALUES ( NULL, NULL )
SELECT NULL FROM dual;
^
ORA-600
Bug 6627733 is fixed inOracle releases 10.2.0.5.0, 11.1.0.7.0 and 12.1.0.0.0.
--bug 6627733 在10.2.0.5 11.1.0.7.0 和 12.1.0.0.0以后已经修复。
To implement the solution, please downloadand applyPatch 6627733if it is available for your platform.
--为了解决这个问题,也可以应用Patch 6627733.
In some cases, a possible workaround is to alter the columns of typeVARCHAR2(nn CHAR) as shownin the example below.
First identify table(s) involved in the failing query and then describe thetable(s). For example:
SQL> descr kf_abschluss_tst
Name Null? Type
-------------------------------- -------- ------------------
C_KONTO_ID NOT NULL VARCHAR2(19 CHAR)<==
C_MANDANT NOT NULL NUMBER(5)
B_ENDE NOT NULL NUMBER(18,3)
F_ZU_KOMPENSIERENDER_ABSCHLUSS NOT NULL NUMBER(1)
C_KONTO_ID_ZINSAUS VARCHAR2(19 CHAR) <==
WORKAROUND:
Modify columns of type VARCHAR2(nn CHAR) and remove maximum length sizecharacters
Example:
alter table kf_abschluss_tst modify (c_konto_id varchar2(19));
-------------------------------------------------------------------------------------------------------
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
Skype: tianlesoftware
Email: [email protected]
Blog: http://www.tianlesoftware.com
Weibo: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
Linkedin: http://cn.linkedin.com/in/tianlesoftware
-------加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请----
DBA1 群:62697716(满); DBA2 群:62697977(满)DBA3 群:62697850(满)
DBA 超级群:63306533(满); DBA4 群:83829929 DBA5群: 142216823
DBA6 群:158654907 DBA7 群:172855474 DBA总群:104207940