案例ORA-00600: internal error code, arguments: [qkaffsindex3], [], [], [], []
執行更新統計資訊語句:
exec dbms_stats.gather_schema_stats(ownname=>'LIVE_KS',degree=>2,cascade=>true,options=>'GATHER AUTO',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMNS SIZE AUTO');
報錯:
ORA-00600: internal error code, arguments: [qkaffsindex3], [], [], [], [], [], [], [], [], [], [], []
使用10046 trace跟蹤:
PARSING IN CURSOR #140247979913912 len=501 dep=1 uid=0 oct=3 lid=0 tim=10144694746826 hv=3314025276 ad='11db7aa78' sqlid='8pwjxwg2sh0tw'
select substrb(dump(val,16,0,64),1,240) ep, cnt from (select /*+ no_expand_table(t) index_rs(t) no_parallel(t) no_parallel_index(t) dbms_stats cursor_sharing_exact use_weak_name_resl dynamic_sampling(0) no_monitoring xmlindex_sel_idx_tbl no_substrb_pad */mod("SYS_STSPQ0MN35WUGZJNRTQJ3QX27K",9999999999) val,count(*) cnt from "LIVE_KS"."P_PRD_SERIAL_NUM" t where mod("SYS_STSPQ0MN35WUGZJNRTQJ3QX27K",9999999999) is not null group by mod("SYS_STSPQ0MN35WUGZJNRTQJ3QX27K",9999999999)) order by val
END OF STMT
PARSE #140247979913912:c=2034,e=1830,p=0,cr=6,cu=0,mis=1,r=0,dep=1,og=1,plh=283912825,tim=10144694746826
EXEC #140247979913912:c=16,e=16,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=283912825,tim=10144694746881
WAIT #140247979913912: nam='db file sequential read' ela= 2299 file#=20 block#=16230458 blocks=1 obj#=5232618 tim=10144694749235
WAIT #140247979913912: nam='db file sequential read' ela= 752 file#=20 block#=16230459 blocks=1 obj#=5232618 tim=10144694750044
FETCH #140247979913912:c=0,e=3195,p=2,cr=4,cu=0,mis=0,r=1,dep=1,og=1,plh=283912825,tim=10144694750112
FETCH #140247979913912:c=0,e=6,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=283912825,tim=10144694750167
STAT #140247979913912 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT GROUP BY (cr=4 pr=2 pw=0 time=3192 us cost=3 size=24 card=2)'
STAT #140247979913912 id=2 cnt=16 pid=1 pos=1 obj=5232618 op='INDEX FAST FULL SCAN IDX2_DLIND_ACTI_SALSTTID_PRDID (cr=4 pr=2 pw=0 time=3173 us cost=2 size=132 card=11)'
CLOSE #140247979913912:c=0,e=3,dep=1,type=0,tim=10144694750236
發現對於 IDX2_DLIND_ACTI_SALSTTID_PRDID使用了 INDEX FAST FULL SCAN
現象和 - ORA-600[QKAFFSINDEX3] OCCURS IN INDEX FAST FULL SCAN 非常類似
進一步診斷檢視sql語句,語句中的 SYS_STSPQ0MN35WUGZJNRTQJ3QX27K是自動手機的extended statistics,如果語句把這個statistics移除,則不會出錯,
所以,手動重建extended statistics
EXEC DBMS_STATS.DROP_EXTENDED_STATS('LIVE_KS','P_PRD_SERIAL_NUM','("PRD_ID","SALES_STATUS_ID","ALLOC_COUNT")');
EXEC DBMS_STATS.CREATE_EXTENDED_STATS('LIVE_KS','P_PRD_SERIAL_NUM','("PRD_ID","SALES_STATUS_ID","ALLOC_COUNT")');
問題解決,未再發生。
針對12cR1,建議disable 多列自動統計資訊收集,避免bug:
alter session set "_OPTIMIZER_USE_FEEDBACK"=FALSE;
alter session set "_optimizer_adaptive_plans" =false;
alter session set "_optimizer_dsdir_usage_control"=0;
如果部署了patch
Bug 21171382 Enhancement: AUTO_STAT_EXTENSIONS preference on DBMS_STATS
也可以透過
EXEC DBMS_STATS.SET_GLOBAL_PREFS('AUTO_STAT_EXTENSIONS','OFF');
來實現。
具體建議:
.com/uploads/user/e7c690e8-6ff9-102a-ac6d-e4aebca50425/6e9e0d66-08a0-4da0-a2ca-3598bcc28d7a/File/945c53b4121121a5e3054491565e8225/optimizer_for_poc_v4.pdf
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69950462/viewspace-2666693/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-00600: internal error code, arguments: [13011]Error
- ORA-00600: internal error code, arguments: [2131], [9], [8]Error
- ORA-00600: internal error code, arguments: [qosdExpStatRead: expcnt mismatch], [Error
- ORA-00600: internal error code, arguments: [13013], [5001], [267], [8389014]Error
- ORA-00600: internal error code, arguments: [knacpft_ProcessFetchedTxns250]Error
- Oracle索引修復 ,ORA-00600: internal error code, arguments: [6200],Oracle索引Error
- 遭遇ORA-00600: internal error code, arguments: [kcrrrfswda.11], [4], [368], [], [], [], [], []Error
- 邏輯STANDBY上的ORA-00600: internal error code, arguments: [krvtadc], [], [], [], [], []Error
- 一個特殊的ORA-00600: internal error code, arguments: [6302], [20], [], [], [], [], [], []Error
- ORA-00600: internal error code, arguments: [kzsrsea] DataGuard環境的異常Error
- ORA-00600: internal error code, arguments: [kcratr_scan_lastbwr]邏輯壞塊解決ErrorAST
- BUG:ORA-00600: internal error code, arguments: [kmgs_pre_process_request_6], [6], [2873], [2560], [3Error
- ORA-06544:PL/SQL:internal error,arguments:[56319]SQLError
- ORA-00600: [OSDEP_INTERNAL]
- 【ERROR】OPatch failed with error code 73ErrorAI
- RA-03137:TTC protocol internal error:[12333]ProtocolError
- OPatch failed with error code 73AIError
- Error Domain=kAFAssistantErrorDomain Code=7ErrorAI
- MyEclipse - Retrieving archetypes: has encountered a problem An internal error occurred duringEclipseError
- HTTP 錯誤 500.21 - Internal Server Error 解決方案HTTPServerError
- HTTP 錯誤 500.19 - Internal Server Error v4.0.30319HTTPServerError
- Mysql系統變數中 log_error_services | log_filter_internal; log_sink_internal 和 log_error_verbosity | 2 解釋MySql變數ErrorFilter
- Python錯誤:PyCharm 安裝出錯 Internal error,please。。。PythonPyCharmError
- [Code Composer Studio] fatal error #6001Error
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- 錯誤解決:cc: Internal error: Killed (program cc1)Error
- ORA-00257:archiver error. Connect internal only,until freed.HiveError
- ORA-03137: TTC protocol internal error: [12333]分析及處理ProtocolError
- HTTP 錯誤 500.19- Internal Server Error 錯誤解決方法HTTPServerError
- weblogic報錯: OPatch failed with error code 73WebAIError
- Function.caller, arguments.caller, arguments.callee, arguments.callee.calllerFunction
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- 解決方案 | MiKTex SSL connect error code 35Error
- Sub-process /usr/bin/dpkg returned an error codeError
- Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the processErrorExceptionAI
- Check failed: status == CUDNN_STATUS_SUCCESS (4 vs. 0) CUDNN_STATUS_INTERNAL_ERRORAIDNNError
- VulNyx - Internal
- MySQL 5.6複製報錯Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND;MySqlError