Oracle bug之Thin JDBC driver


客户Oracle警告日志报如下错误:

引用
ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
Current SQL statement for this session:
SELECT VALUE FROM NLS_INSTANCE_PARAMETERS WHERE PARAMETER ='NLS_DATE_FORMAT'

经分析,这是JDBC(Thin JDBC driver)连接Oracle的bug,当JDBC版本小于8.1.7.2,如8.1.7.1,连接 Oracle 9i容易触发此bug。
解决办法:
设置参数event="10841 trace name context forever"
该参数在文档解释为

引用
10842, 00000, "Event for OCI Tracing and Statistics Info"
// *Cause: This event is meant for tracing OCI Calls and getting statistics
// *Action: This event sets tracing OCI Calls and gets statistics info


详见metalink ID 1725012.8

相关内容