欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Oracle bug之Thin JDBC driver

程序员文章站 2022-04-15 22:03:26
...

客户Oracle警告日志报如下错误: 引用ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []

客户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

Oracle bug之Thin JDBC driver