ORA-00600: 內部錯誤程式碼, 引數: [19004]
ORA-00600: 內部錯誤程式碼, 引數: [19004]
資料庫版本:Oracle 11.2.0.1.0
資料庫伺服器作業系統:Windows server 2008
問題現象:業務人員在前臺執行某些查詢操作時,報錯ORA-00600: 內部錯誤程式碼, 引數: [19004];
解決方案:檢視alert警告日誌,查詢對應的trace檔案,找到觸發此bug的sql語句如下:
----- 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/ORA-7445/ORA-700 Error Look-up Tool (文件 ID 153788.1)
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 |
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 |
11.2.0.4, 12.1.0.1 |
Manually setting column stats cannot exceed 4Gb max size |
||
III |
12.1.0.2, 12.2.0.0 |
ORA-600 [19004] or inaccuracies on join of histogrammed columns |
||
III |
11.2.0.3, 12.1.0.1 |
Allow optimizer to bypass corrupt histogram data |
||
III |
11.2.0.2, 12.1.0.1 |
Query optimization fails with OERI[19004] |
||
E |
II |
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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29785807/viewspace-2104830/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-00600: 內部錯誤程式碼, 引數: [kcbnew_3]
- ORA-00600: 內部錯誤程式碼, 引數: [qcisSetPlsqlCtx:tzi init]SQL
- ORA-00600: 內部錯誤程式碼, 引數: [kcbchg1_14]
- ORA-00600: 內部錯誤程式碼, 引數: [qosdDirRead: dircnt mismatch], [809], [808],
- 小程式內引數和掃碼引數統一
- mybatis引數型別錯誤MyBatis型別
- [20181106]模擬ora-00600[4194]錯誤.txt
- [20181204]模擬ora-00600[4194]錯誤.txt
- [20181204]模擬ora-00600[4193]錯誤.txt
- 伺服器內部錯誤500的原因伺服器
- PHP HTTP 500 - 內部伺服器錯誤PHPHTTP伺服器
- 無法顯示頁面,因為發生內部程式錯誤
- Windows 錯誤程式碼Windows
- MySQL 錯誤程式碼MySql
- 除錯 Docker 容器內部程式除錯Docker
- 程式碼會引發 Notice: Undefined variable: undefined_variable 錯誤Undefined
- win10 mstsc出現內部錯誤怎麼修復_win10 mstsc出現內部錯誤解決方法Win10
- MySQL:錯誤程式碼:2059MySql
- VS錯誤程式碼列
- ora-00600兩個子錯誤733, 6006解決
- 行動硬碟引數錯誤怎麼解決?行動硬碟開啟出現引數錯誤的修復方法硬碟
- IDEA報錯java: 編譯失敗: 內部 java 編譯器錯誤IdeaJava編譯
- 什麼是http500內部伺服器錯誤?HTTP伺服器
- 伺服器出現遠端內部錯誤的原因伺服器
- Druid連線池引數maxWait配置錯誤引發的問題UIAI
- 如何在Docker內部使用gdb偵錯程式Docker
- 在Docker內部使用gdb偵錯程式報錯-Operation not permittedDockerMIT
- PostgreSQLjdbc錯誤程式碼對映(SQLSTATE)SQLJDBC
- 連線MYSQL 錯誤程式碼2003MySql
- python程式碼錯誤RuntimeError: Session is closedPythonErrorSession
- 常見 HTTP 錯誤程式碼大全HTTP
- C# WebService返回引數為DataTable報錯“XML文件有錯誤”C#WebXML
- group by 引發的錯誤
- 前端打包混編壓縮js程式碼,如何不重新打包,修改js檔案內部配置引數?前端JS
- go fiber:發生內部錯誤時統一返回json格式GoJSON
- 如何在 Go 中優雅的處理和返回錯誤(1)——函式內部的錯誤處理Go函式
- 如何查詢ORA-07445 ORA-00600錯誤相關資訊
- Flask-restful 用法及自定義引數錯誤資訊FlaskREST