Awr報告停止收集的解決方法
一、錯誤資訊
資料庫的alert日誌裡面顯示了以下報錯:
Suspending MMON action 'AWR Auto Flush Task' for 82800 seconds Thu Jun 12 05:38:06 2014 Suspending MMON action 'tablespace alert monitor' for 82800 seconds Thu Jun 12 05:48:18 2014 Suspending MMON action 'recovery area alert action' for 82800 seconds |
二、出現的問題平臺
Oracle Database - Enterprise Edition - Version 11.2.0.3 and later Information in this document applies to any platform.
該問題在oracle 11.2.0.3和以後的版本中都會出現;
- Manual snapshot generation is slow, often running for 30 minute or more.(手工執行awr報告的時候超過30分鐘)
- Alert log shows messages similar to:
'Suspending MMON slave action kewrmrfsa_ for 82800 seconds'
- AWR stops generating snapshots automatically.(awr報告停止自動執行)
- M00x trace file shows that the following SQL is taking a long time.
UPDATE wrh$_datafile dfh SET (snap_id, filename, tsname) = (SELECT /*+ordered use_nl(f) index(f) index(ts) */ :lah_snap_id, v.name name,ts.name tsname FROM v$dbfile v, file$ f, ts$ ts WHERE f.file# = v.file# AND f.status$ = 2 AND f.ts# = ts.ts# AND f.file# = dfh.file# AND (f.crscnbas + (f.crscnwrp * power(2,32))) = dfh.creation_change#) WHERE (file#, creation_change#) IN (SELECT f.file#, f.crscnbas + (f.crscnwrp * power(2,32))creation_change# FROM file$ f WHERE f.status$ = 2) AND dbid = :dbid AND snap_id < :snap_id
The symptoms shown are caused by a particular UPDATE statement exceeding the time quota for the MMON slave task. This is fixed by:
Bug 16041961AWR SNAPSHOTS NOT BEING GENERATED AFTER UPGRADE TO 11.2.0.3
由一個特定的update語句執行的時間過長導致的;
五、解決方法
The preferred option is to apply the patch for AWR SNAPSHOTS NOT BEING GENERATED AFTER UPGRADE TO 11.2.0.3
There is also a workaround of skipping the flushing of the problem table. That can be achieved by using the _AWR_DISABLED_FLUSH_TABLES parameter against the ''WRH$_DATAFILE' ' table:
SQL> alter system set "_awr_disabled_flush_tables"='WRH$_DATAFILE' ;
修改隱藏引數;
The impact of using the workaround is that AWR won't show newly added data files (that is, files added after the workaround was enabled), and any data files that were moved or renamed will show their old names. When a permanent fix/patch is applied, one can disable the workaround using the following command:
修改該引數會導致awr報告不能顯示新增加的資料檔案或者資料檔案修改名稱後還是顯示老的檔名,處理方法是把該隱藏引數恢復預設;
SQL> alter system set "_awr_disabled_flush_tables"='';
At that point, subsequent snapshots will run both the insert and the update of WRH$_DATAFILE.
六、該效能引數的設定
Awr報告的收集需要消耗主機的效能,當awr報告的收集時間超過30分鐘後,說明這個時候資料庫的效能已經很慢了,資料庫處於相當繁忙的狀態;
資料庫為了保證業務的正常執行,就自動把awr的功能關閉,減少系統的開銷;
從一個軟體的架構師和設計人員來說這樣是合理的。(以上純屬個人猜想如有錯誤,請指出)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
本文作者:JOHN
ORACLE技術部落格:ORACLE 獵人筆記 資料庫技術群:367875324 (請備註ORACLE管理 )
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12679300/viewspace-1181096/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 10g awr報告的收集Oracle 10g
- AWR報告的收集和分析執行計劃的方式
- Oracle 12.2 physical standby備庫收集AWR報告Oracle
- ORACLE AWR效能報告和ASH效能報告的解讀Oracle
- Oracle AWR報告詳細解讀Oracle
- word停止工作的解決方法
- Oracle 11g RAC生成 AWR 報告方法Oracle
- 獲取Oracle資料庫awr報告方法Oracle資料庫
- Oracle生成awr報告Oracle
- AWR解析報告分析
- mysql-awr報告MySql
- Oracle 生成awr報告Oracle
- oracle效能awr報告Oracle
- 生成awr報告的指令碼指令碼
- 詳細的AWR解析報告
- 轉帖eygle:利用AWR報告解決paging space被撐爆的例子
- 【AWR】Oracle批量生成awr報告指令碼Oracle指令碼
- AWR報告基礎操作
- 手工生成AWR分析報告
- Oracle AWR報告大綱Oracle
- oracle 產生awr 報告Oracle
- oracle AWR報告提取分析Oracle
- AWR不能自動生成快照解決方法?
- 達夢資料庫AWR報告日常管理方法資料庫
- 【AWR】自動生成AWR報告指令碼以及用法指令碼
- Oracle的AWR報告分析(簡潔版)Oracle
- ORACLE AWR報告詳細分析Oracle
- 自動生成AWR HTML報告HTML
- oracle特性之AWR報告2Oracle
- 快捷生出awr和awrsql報告SQL
- awr-----一份經典的負載很高的awr報告負載
- awr報告中顯示enq: TM - contention 處理方法ENQ
- 豐田汽車問題解決方法(A3報告)
- oracle 監聽日誌停止寫入的解決方法Oracle
- AWR修改收集策略
- 星球上最詳細的AWR解析報告
- 對於AWR報告的幾個片段分析。
- wait等待事件及其處理方法 awr top5 報告AI事件