impdp hang住故障處理一例

使用impdp工具導入,發現dw00進程在編譯包時候在等待library cache pin 事件:

 

  1. SQL> select sid,program,event,BLOCKING_SESSION,state,sql_id from v$session where username is 
  2. not null and status='ACTIVE'order by event,sql_id; 
  3. SID PROGRAM EVENT BLOCKING_SESSION STATE 
  4. SQL_ID 
  5. --- ------------------------------------------------ ----------------------------------- ---------------- ------------------- 
  6. ------------- 
  7. 38 sqlplus@dbserver (TNS V1-V3) SQL*Net message to client WAITED SHORT 
  8. TIME 6jg0jp7ggufy6 
  9. 5 emagent@dbserver (TNS V1-V3) Streams AQ: waiting for messages in WAITING 
  10. the queue 
  11. 134 oracle@dbserver (DW00) library cache pin 134 WAITING 
  12. 5bdu5n68x313q 
  13. 189 OMS wait for unread message on broadcas WAITING 
  14. 2b064ybzkwf1y 
  15. t channel 
  16. 68 udi@dbserver (TNS V1-V3) wait for unread message on broadcas WAITING 

 

 

  1. SQL> select * from table(dbms_xplan.display_cursor('5bdu5n68x313q')); 
  2. PLAN_TABLE_OUTPUT 
  3. ---------------------------------------------------------------------------------------------------------------------------------------- 
  4. ---------------------------------------------------------------- 
  5. SQL_ID 5bdu5n68x313q, child number 0 
  6. ALTER PACKAGE "HFMIS"."PKG_CPT_MSG" COMPILE BODY 
  7. PLSQL_OPTIMIZE_LEVEL= 2 PLSQL_CODE_TYPE= INTERPRETED 
  8. PLSQL_DEBUG= TRUE PLSCOPE_SETTINGS= 'IDENTIFIERS:NONE' REUSE 
  9. SETTINGS TIMESTAMP '2012-12-17 19:07:36' 

導入時沒有使用並行,且沒有任何其他進程連上數據庫,出現這種異常情況,而且阻塞進程是自己本身,估計很有可能是oracle bug造成的

 

搜索metlink,發現與文檔《Bug 13624984 - IMPDP or IMP hangs on compilation of PLSQL containinga pipelined function [ID 13624984.8]》所描述相吻合;

Impdp在編譯包含有管道函數的pl/sql包時遇到了此bug
處理方式:
1) Do not use datapump import nor import to load and compile the PLSQL
or
2) Manually grant EXECUTE WITH GRANT OPTION privilege on the shadow
type to the user doing the compilation before attempting
the compilation.
or
3) Wait for the compilation to finish - it will complete - it just
blocks for 15-30 minutes
4)patch to 11.2.0.3.4 version
 

這裏打補丁至11.2.0.3.4版本後再次執行impdp故障解除

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章