AWR不能自動生成快照解決方法
問題描述:RAC歸檔滿后,出現AWR不能自動生成快照。經原理應該是MMON HANG住導致,所以嘗試重啟MMON后問題解決。;
MMON HANG解決辦法
1)重啟一下mmon的刷新
alter system set "_swrf_mmon_flush"=false;
alter system set "_swrf_mmon_flush"=true;
2)或者,找到mmon進程殺掉,讓數據庫自動重啟一個新的mmon進程,或者重啟下實例。
ps -ef|grep mmon
kill -9 xxxxxx
Manageability Monitor Processes (MMON and MMNL)
The manageability monitor process
(MMON) performs many tasks related to the Automatic Workload Repository
(AWR). For example, MMON writes when a metric violates its threshold
value, taking snapshots, and capturing statistics value for recently
modified SQL objects.
The manageability monitor lite process
(MMNL) writes statistics from the Active Session History (ASH) buffer
in the SGA to disk. MMNL writes to disk when the ASH buffer is full.
See Also:
"Automatic Workload Repository (AWR)" and "Active Session History (ASH)"
AWR和ASH后臺運行進程
AWR ==>MMON
ASH ==>MMNL
MMON負責執行與AWR相關的任務。包括收集數據庫統計信息,收集AWR快照,啟動各種自動維護作業JOB,生成超過閥值告警信息。
MMNL負責執行與ASH相關的任務。
創新互聯公司服務項目包括建平網站建設、建平網站制作、建平網頁制作以及建平網絡營銷策劃等。多年來,我們專注于互聯網行業,利用自身積累的技術優勢、行業經驗、深度合作伙伴關系等,向廣大中小型企業、政府機構等提供互聯網行業的解決方案,建平網站推廣取得了明顯的社會效益與經濟效益。目前,我們服務的客戶以成都為中心已經輻射到建平省份的部分城市,未來相信會繼續擴大服務區域并繼續獲得客戶的支持與信任!
###之前MOS 專家咨詢的記錄
1. Please provide the below script output on failed instance:<info.html>
conn / as sysdbaset pages 1000set num 20
alter session set nls_date_format='yyyy-mm-dd hh34:mi:ss';
alter session set nls_timestamp_format='yyyy-mm-dd hh34:mi:ss.ff';
alter session set nls_timestamp_tz_format='yyyy-mm-dd hh34:mi:ss.ff tzh:tzm';
set mark html onspool info.html
select * from (select t.*, rank() over(partition by dbid, instance_number order by begin_interval_time desc) r from dba_hist_snapshot t) where r < 100;
select * from wrm$_wr_control where dbid = (select dbid from v$database);
select * from gv$database;
select * from gv$thread;show parameter statistics_level
show parameter control_management_pack_accessspool off
exit
2. Provide the "awrinfo" script output on instance
3: <awrinfo.txt>
SQL> conn / as sysdbaSQL> @?/rdbms/admin/awrinfo.sql
3. Enable SQL tracing on MMON slaves to collect more information. (do this in all instances)
begin
dbms_monitor.serv_mod_act_trace_enable(service_name => 'SYS$BACKGROUND'
,module_name => 'MMON_SLAVE'
,action_name => 'Auto-Flush Slave Action'
,waits => true
,binds => true);
end;
/
begin
dbms_monitor.serv_mod_act_trace_enable(service_name => 'SYS$BACKGROUND',
module_name => 'MMON_SLAVE'
,action_name => 'Remote-Flush Slave Action',
waits => true,binds => true);
end;
/
Wait for 2 snapshots time then upload the MMON (xxxx_mmon_xxxx.trc) and the below mmon slave trace files.
egrep -l "Auto-Flush Slave Action|Remote-Flush Slave Action" *.trc | xargs tar -cvf - | gzip > trace.tar.gzls -l trace.tar.gzTo disable the tracing later,
use "dbms_monitor.serv_mod_act_trace_disable" instead. for example:
begin
dbms_monitor.serv_mod_act_trace_disable(service_name => 'SYS$BACKGROUND',
module_name => 'MMON_SLAVE',
action_name => 'Auto-Flush Slave Action');
end;
/
begin
dbms_monitor.serv_mod_act_trace_disable(service_name => 'SYS$BACKGROUND',
module_name => 'MMON_SLAVE',
action_name => 'Remote-Flush Slave Action');
end;
/
########################################################################################
版權所有,文章允許轉載,但必須以鏈接方式注明源地址,否則追究法律責任!【QQ交流群:53993419】
QQ:14040928 E-mail:dbadoudou@163.com
本文鏈接: http://blog.itpub.net/26442936/viewspace-2125130/
新聞標題:AWR不能自動生成快照解決方法
轉載來于:http://vcdvsql.cn/article46/jhiehg.html
成都網站建設公司_創新互聯,為您提供關鍵詞優化、App開發、軟件開發、定制開發、品牌網站設計、靜態網站
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯