資料庫日誌不斷報undo segment onlined的建議解決方法
最近客戶有套資料庫9.2.0.5 rac+aix,資料庫日誌不斷報undo segment onlined,而且效能有時下降,
根據metalink說法,建議採用以下兩種方法處理:
1、切換unto tablespace ,也就是新建一個臨時undo tablespace,切換一下,待處理完畢後切換回來。
2、可以用event="10511 trace name context forever, level 1"來disable SMON去offline idle rollback segment的操作。
以下是metalink詳細解釋
Performance Slowdown During Heavy Undo Segment Onlining [ID 301432.1]
--------------------------------------------------------------------------------
修改時間 02-OCT-2009 型別 PROBLEM 狀態 PUBLISHED
In this Document
Symptoms
Changes
Cause
Solution
References
--------------------------------------------------------------------------------
Applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.5
This problem can occur on any platform.
Symptoms
Severe database performance slowdown.
Statspack report shows Wait Event "enqueue" with type "US" consuming a significant percentage of database time.
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~ % Total
Event Waits Time (s) Ela Time
-------------------------------------------- ------------ ----------- --------
enqueue 39,641 70,172 87.61
Enqueue activity for DB: CSP Instance: CSP Snaps: 2716 -2723
-> Enqueue stats gathered prior to 9i should not be compared with 9i data
-> ordered by Wait Time desc, Waits desc
Avg Wt Wait
Eq Requests Succ Gets Failed Gets Waits Time (ms) Time (s)
-- ------------ ------------ ----------- ----------- ------------- ------------
US 2,688 2,620 0 48 1,240,534.88 59,546
Alert.log shows lots of Undo Segments being onlined during this time interval, e.g.
Fri Mar 11 08:39:46 2005
Undo Segment 11 Onlined
Fri Mar 11 08:41:20 2005
Undo Segment 12 Onlined
Fri Mar 11 08:41:20 2005
Undo Segment 13 Onlined
Fri Mar 11 08:41:31 2005
Undo Segment 14 Onlined
Fri Mar 11 08:43:44 2005
Undo Segment 15 Onlined
Changes
Introduction of Automatic Undo Management may have been a recent change in some cases.
Cause
Large numbers of Undo Segment onlines are being performed.
Undo Segment online and offline operations require Serialization on US enqueue.
In transactional databases where incoming workload varies with time it is common for idle Undo Segments to be offlined (or even dropped before 9.2.0.4) by SMON after a while, only to be onlined once again during the next "wave" of incoming transactions.
This repetitive offlining and onlining of Undo Segments causes performance problems due to the US enqueue operations needed.
Solution
Prevent SMON from offlining idle Undo Segments using event 10511.
Set the following parameter in init.ora/spfile
event="10511 trace name context forever, level 1"
Then restart the database.
After the first onlinining of an Undo Segment, it will never be offlined and re-onlined.
So we will only get the "US" serialization once (on the first online after a db restart.)
References
BUG:3577781 - UNDO ONLINING CAUSES EXCESSIVE WAITS
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-622416/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SMON: about to recover undo segment 1 的錯誤提示解決方法
- 資料庫日誌中Immediate Kill Session錯誤解決方法資料庫Session
- DB2報“資料庫日誌已滿”問題解決DB2資料庫
- SQL SERVER 資料庫日誌收縮整理 三種方法軼事分離資料庫而是清空日誌三是截斷日誌SQLServer資料庫
- 資料庫篇:mysql日誌型別之 redo、undo、binlog資料庫MySql型別
- 瀚高資料庫日誌挖掘方法資料庫
- IIS 日誌匯入到資料庫的方法資料庫
- 達夢資料庫:誤刪除 undo/redo 日誌怎麼辦資料庫
- Oracle Undo SegmentOracle
- 清理資料庫監聽日誌最好方法資料庫
- 解決ELK日誌被截斷的問題
- undo日誌一些解釋
- oracle 10g rac 私網沒設定資料庫日誌告警解決方法Oracle資料庫
- SQL Server資料庫日誌清除的兩個方法SQLServer資料庫
- 不建議開發來做資料庫選型資料庫
- 將RAC資料庫更改為不歸檔日誌的模式資料庫模式
- WIN下UNDO表空間的修改,在生產庫中不建議這麼做。
- 手工建立資料庫及刪除資料庫示例--附建庫時alert日誌資料庫
- oracle 程式滿了,登陸不上資料庫的解決方法Oracle資料庫
- SQL server資料庫高可用日誌傳送的方法SQLServer資料庫
- MySQL 日誌 undo | redoMySql
- 資料庫“TSupervise” 的事務日誌已滿問題的解決之法資料庫
- 為什麼新的資料庫會議還在不斷早開?資料庫
- MSDB資料庫置疑的解決方法資料庫
- 解決資料庫慢的方法論資料庫
- 解決Oracle資料庫日誌檔案丟失恢復問題Oracle資料庫
- Oracle資料庫的歸檔日誌寫滿磁碟空間解決辦法Oracle資料庫
- 資料庫報ORA-16198故障的解決方法分析資料庫
- 資料庫優化建議資料庫優化
- 【redo】日誌檔案的丟失解決方法
- alert日誌報checkpoint not complete解決思路
- MySQL資料庫中的日誌檔案---(1)錯誤日誌MySql資料庫
- 達夢8資料庫REDO日誌日常管理方法資料庫
- 工作總結!日誌列印的11條建議
- oracle資料庫mmnl日誌很大Oracle資料庫
- 分析資料庫日誌(LogMiner)資料庫
- 清除SQL Server資料庫日誌SQLServer資料庫
- SequoiaDB資料庫之建議資料庫