ORA-00600 内部错误代码, 参数 [19004]

GPS平台、网站建设、软件开发、系统运维,找森大网络科技!
https://cnsendnet.taobao.com
来自森大科技官方博客
http://www.cnsendblog.com/index.php/?p=1585

 

数据库版本:Oracle 11.2.0.1.0

数据库服务器操作系统:Windows server 2008

问题现象:业务人员在前台执行某些查询操作时,报错ORA-00600: 内部错误代码参数: [19004]

解决方案:查看alert警告日志,查找对应的trace文件,找到触发此bugsql语句如下:

----- Current SQL Statement for this session (sql_id=.......) -----

SELECT *

  FROM TAB_1

 WHERE COL_1 in (select id from TAB_2)

   and COL_2 in (:1, :2)

   and COL_3 in

       ('null', 'null', 'null', 'null', 'null', 'null', 'null')

 order by COL_4,COL_5;

根据MOS查看,此错误匹配多个BUG,都是由于表错误的统计信息和列的统计直方图触发此BUG,可以删除SQL中对应表的统计信息和统计直方图临时解决此问题,或者直接升级数据库跳过此BUG

删除统计信息方法如下:

散打狼执行了这面这条语句后就可以了

---ANALYZE TABLE TAB_1 DELETE STATISTICS;

---ANALYZE TABLE TAB_2 DELETE STATISTICS;

SQL> execute dbms_stats.delete_table_stats(ownname=>'USER_NAME',tabname=>'TAB_1');

SQL> execute dbms_stats.delete_table_stats(ownname=>'USER_NAME',tabname=>'TAB_2');

SQL> execute dbms_stats.lock_table_stats(ownname=>'USER_NAME',tabname=>'TAB_1');

SQL> execute dbms_stats.lock_table_stats(ownname=>'USER_NAME',tabname=>'TAB_2');

---SQL> execute dbms_stats.unlock_table_stats(ownname=>'USER_NAME',tabname=>'TAB_1');

---SQL> execute dbms_stats.unlock_table_stats(ownname=>'USER_NAME',tabname=>'TAB_2');

删除表统计信息可能会生成错误的执行计划,影响SQL执行效率;

可以适当调大动态取样级别;

SQL> show parameter optimizer_dynamic_sampling

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

optimizer_dynamic_sampling           integer     4

其中MOS中查询有关ORA-00600[19004]问题相关信息;

ORA-600 [19004] (文档 ID 138652.1)

Note: For additional ORA-600 related information please read Note:146580.1

 

PURPOSE:

  This article represents a partially published OERI note.

 

  It has been published because the ORA-600 error has been

  reported in at least one confirmed bug.

 

  Therefore, the SUGGESTIONS section of this article may help

  in terms of identifying the cause of the error.

 

  This specific ORA-600 error may be considered for full publication

  at a later date. If/when fully published, additional information

  will be available here on the nature of this error.

 

 

SUGGESTIONS:

 

  If the Known Issues section below does not help in terms of identifying

  a solution, please submit the trace files and alert.log to Oracle

  Support Services for further analysis.

 

  Known Issues:

 

You can restrict the list below to issues likely to affect one of the following versions by clicking the relevant button: 
              

The list below is restricted to show only bugs believed to affect version 11.2.0.1.
Other bugs may affect this version but have not been confirmed as being relevant yet.

 

There are 6 bugs listed.

NB

Prob

Bug

Fixed

Description

 

II

17314888

12.1.0.2, 12.2.0.0

ORA-600 [19004] when stats have been gathered with NLS_SORT / NLS_COMP not default BINARY

 

II

13607472

11.2.0.4, 12.1.0.1

Manually setting column stats cannot exceed 4Gb max size

 

III

16698971

12.1.0.2, 12.2.0.0

ORA-600 [19004] or inaccuracies on join of histogrammed columns

 

III

10627631

11.2.0.3, 12.1.0.1

Allow optimizer to bypass corrupt histogram data

 

III

9022470

11.2.0.2, 12.1.0.1

Query optimization fails with OERI[19004]

E

II

7284269

11.2.0.2, 12.1.0.1

Enh: allow extended and adaptive cursor sharing to support LIKE predicates

·         '*' indicates that an alert exists for that issue.

·         '+' indicates a particularly notable issue / bug.

·         See Note:1944526.1 for details of other symbols used

 

 

GPS平台、网站建设、软件开发、系统运维,找森大网络科技!
https://cnsendnet.taobao.com
来自森大科技官方博客
http://www.cnsendblog.com/index.php/?p=1585

posted on   森大科技  阅读(1019)  评论(0编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示