溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

oracle快照不自動創(chuàng)建導致沒辦法收集awr報告的原因和解決方法

發(fā)布時間:2021-09-04 10:24:35 來源:億速云 閱讀:535 作者:chen 欄目:關系型數(shù)據(jù)庫

本篇內(nèi)容介紹了“oracle快照不自動創(chuàng)建導致沒辦法收集awr報告的原因和解決方法”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠?qū)W有所成!

  今天發(fā)現(xiàn)客戶oracle rac環(huán)境一節(jié)點不能自動創(chuàng)建快照,導致沒有辦法收集awr報告,只能手工創(chuàng)建快照,經(jīng)過信息排除,發(fā)現(xiàn)一節(jié)點比二節(jié)點少了一些進程,發(fā)現(xiàn)一節(jié)點沒有mmon和mmnl進程,這兩進程就是自動創(chuàng)建快照的進程,這連個進程是oracle的非核心進程,可以kill掉,殺掉進程oracle會自動啟動進程,并且自動維護。但客戶這里的這兩個進程是徹底的死掉了。在oracle mos中查找解決的原因。

1.      關于MMONMMNL后臺進程的MOS Document:



APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.

SYMPTOMS

Due to other reasons, the MMON process died and subsequent AWR reports are therefore not getting generated.

The MMON process should automatically be respawned but it is not.

CAUSE

MMON/MMNL not being respawned or recreated is due to:

unpublished bug: Bug 19565533 - MMON/MMNL CAN NOT BE AUTOMATICALLY RESTARTED AFTER KILLED

The issue only occurs on 11.2.0.4 and is a regression of the fix for

  • Apply interimAs a workaround, you can respawn the MMON process by next methods:

    • Restart the database instance

      - OR -

    • Set the instance to "restricted session" mode and then bring it back to normal mode using following commands as SYSDBA:
        


alter system enable restricted session;
alter system disable restricted session;


原因。是bug所導致的mmon和mmnl進程死掉
解決辦法:
1、重啟實例
2、不需要重啟實例,將數(shù)據(jù)庫設置成restricted session模式
alter system enable restricted session;<br font-size:14.6667px;white-space:normal;background-color:#E0EAF1;" />alter system disable restricted session;
    設置restricted session模式,對dba權限沒有影響,普通用戶是無法連接數(shù)據(jù)庫,需要授予restricted session權限才能連接數(shù)據(jù)庫,普通用戶現(xiàn)有的鏈接不會有影響。

問題解決。

“oracle快照不自動創(chuàng)建導致沒辦法收集awr報告的原因和解決方法”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關的知識可以關注億速云網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實用文章!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。

AI