編譯檢視導致ORA-00600_17069錯誤

sky_dizzy001發表於2014-02-01
1.檢視600錯誤的trc檔案如下:
ksedmp: internal or fatal error
ORA-00600: internal error code, arguments: [17069], [0x700000979A47E38], [], [], [], [], [], []
ORA-00928: missing SELECT keyword
ORA-00928: missing SELECT keyword
ORA-00928: missing SELECT keyword
ORA-00928: missing SELECT keyword
ORA-00928: missing SELECT keyword
ORA-00928: missing SELECT keyword
ORA-00928: missing SELECT keyword
ORA-00928: missing SELECT keyword
ORA-00928: missing SELECT keyword
ORA-00928: missing SELECT keyword
Current SQL statement for this session:
ALTER VIEW "DB_YW"."V_FIRST" COMPILE
      O/S info: user: lenovo4876, term: LENOVO, ospid: 4508:332, machine: WORKGROUP\LENOVO
      program: plsqldev.exe
      client info: 192.168.1.5

2.透過metalink搜尋,發現符合以下ORA-00600 17069的描述:
DESCRIPTION:        
Failed to pin a library cache object after 50 attempts.
 ARGUMENTS:          
 Arg [a] Library Cache Object Handle.
FUNCTIONALITY:      
GENERIC LAYER
IMPACT:             
PROCESS FAILURE
 NO DATA CORRUPTION

3.檢查被鎖定物件,發現檢視DB_YW.V_FIRST涉及到的表一直有被中介軟體鎖定:
 SQL> select session_id,oracle_username,os_user_name,d.object_name from v$locked_object l,dba_objects d
  2  where l.OBJECT_ID=d.object_id and d.object_name in ('T_ZS_YZMX','T_DM_GY_ZSXM','T_DM_GY_ZSPM','V_KT_DWJFDJXX_ZLTEST','T_SB_YZPZ','V_SEC');
SESSION_ID ORACLE_USERNAME                OS_USER_NAME                   OBJECT_NAME
---------- ------------------------------ ------------------------------ --------------------------------------------------------------------------------
      2578 DB_ZGXT                        weblogic                       T_ZS_YZMX
      2578 DB_ZGXT                        weblogic                       T_SB_YZPZ
      2578 DB_ZGXT                        weblogic                       T_ZS_YZMX
      2578 DB_ZGXT                        weblogic                       T_DM_GY_ZSPM
      2578 DB_ZGXT                        weblogic                       T_SB_YZPZ
       890 DB_ZGXT                        weblogic                       T_ZS_YZMX
       890 DB_ZGXT                        weblogic                       T_SB_YZPZ
       890 DB_ZGXT                        weblogic                       T_DM_GY_ZSPM
       890 DB_ZGXT                        weblogic                       T_SB_YZPZ
       890 DB_ZGXT                        weblogic                       T_ZS_YZMX

4.透過與IP為192.168.1.5的開發人員溝通,得知整個事情的經過。該開發人員執行SQL語句中包含或觸發以下編譯語句:
ALTER VIEW "DB_YW"."V_FIRST" COMPILE
而同時由於檢視DB_TUNNING.V_FIRST中包含物件一直被中介軟體鎖定,導致編譯語句鎖定記憶體物件失敗50次以上,從而導致
ORA-00600  17069錯誤。已和該開發人員聯絡,建議其在非工作時間執行該語句。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29468144/viewspace-1076716/,如需轉載,請註明出處,否則將追究法律責任。

相關文章