您好,登錄后才能下訂單哦!
小編給大家分享一下Oracle sysman.mgmt_jobs導(dǎo)致數(shù)據(jù)庫(kù)自動(dòng)重啟怎么辦,希望大家閱讀完這篇文章之后都有所收獲,下面讓我們一起去探討吧!
Oracle sysman.mgmt_jobs導(dǎo)致數(shù)據(jù)庫(kù)自動(dòng)重啟
問題現(xiàn)象;
新接手的數(shù)據(jù)庫(kù),檢查告警日志,發(fā)現(xiàn)數(shù)據(jù)庫(kù)每天凌晨2點(diǎn)自動(dòng)重啟;
Tue Jun 12 02:00:28 2018
Shutting down instance (immediate)
Stopping background process SMCO
Shutting down instance: further logons disabled
數(shù)據(jù)庫(kù)環(huán)境:
OS:Windws Server 2012
DB:Oracle 11.2.0.1.0
問題分析:
沒有同事設(shè)置過數(shù)據(jù)庫(kù)自動(dòng)重啟的任務(wù);
操作系統(tǒng)計(jì)劃任務(wù),數(shù)據(jù)庫(kù)均沒有發(fā)現(xiàn)2點(diǎn)的JOB;
自動(dòng)重啟之前,告警日志沒有報(bào)錯(cuò);
查看2點(diǎn)生成的所有trace日志,發(fā)現(xiàn)每天的trace日志都和OEM有關(guān),部分內(nèi)容如下:
*** MODULE NAME:(OEM.CacheModeWaitPool)
--------Dumping Sorted Master Trigger List --------
Trigger Owner : SYSMAN
Trigger Name : JOB_SUMM_INS_TRIGGER2
Trigger Owner : SYSMAN
Trigger Name : JOB_SUMM_INS_TRIGGER
……
查看對(duì)應(yīng)的觸發(fā)器也沒有發(fā)現(xiàn)異常;
問題原因:
最后分析,很有可能是同事在使用DBCA創(chuàng)建實(shí)例時(shí),第四步,選擇了”配置Enterprise Manager”,這個(gè)配置會(huì)有一個(gè)每日磁盤備份的選項(xiàng),默認(rèn)時(shí)間就是每天2點(diǎn),正是因?yàn)檫@個(gè)原因?qū)е聰?shù)據(jù)庫(kù)每天2點(diǎn)自動(dòng)重啟,因?yàn)閿?shù)據(jù)庫(kù)是非歸檔模式,Oracle每天2點(diǎn)通過RMAN自動(dòng)停庫(kù)做冷備;
通過OEM自動(dòng)備份的文件如下:
SELECT start_time, end_time, operation, status
FROM V$RMAN_STATUS
order by start_time desc;
---通過OEM自動(dòng)的RMAN備份大多都是失敗的,因?yàn)殚W回區(qū)不足了;
解決方案:
How to stop Database Autobackup Every Day At 02:00 Am which was configured during Database creation using DBCA ? (文檔 ID 1992075.1)
-- Identify the Backup Job name
select JOB_OWNER, JOB_NAME
from SYSMAN.MGMT_JOB
where JOB_NAME like '%BACKUP%';
-- Delete the Job from DB Control Jobs repository
begin
sysman.mgmt_jobs.delete_job('BACKUP_EASORCL_000001', 'SYS');
end;
刪除時(shí)會(huì)報(bào)如下錯(cuò)誤:
---通過下面的文檔可以解決;
How to Force Stop a Stuck Job in Grid Console (文檔 ID 430626.1)
begin
sysman.mgmt_job_engine.stop_all_executions_with_id('F01FFCEEC1DD42EB94B6D12622E25EB4',
TRUE);
end;
begin
sysman.mgmt_jobs.delete_job('BACKUP_EASORCL_000001', 'SYS');
end;
select JOB_OWNER, JOB_NAME,JOB_ID
from SYSMAN.MGMT_JOB
where JOB_NAME like '%BACKUP%';
看完了這篇文章,相信你對(duì)“Oracle sysman.mgmt_jobs導(dǎo)致數(shù)據(jù)庫(kù)自動(dòng)重啟怎么辦”有了一定的了解,如果想了解更多相關(guān)知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道,感謝各位的閱讀!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。