** show database verbose orcldg;** Database - orcldg ..."/>
溫馨提示×

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

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

ORA-16766: Redo Apply is stopped

發(fā)布時(shí)間:2020-08-12 02:30:02 來(lái)源:網(wǎng)絡(luò) 閱讀:3267 作者:roidba 欄目:關(guān)系型數(shù)據(jù)庫(kù)

一、環(huán)境描述

Oracle 12c
aix 7.1

二、問(wèn)題
MRP進(jìn)程無(wú)法啟動(dòng),報(bào)錯(cuò)ORA-16766

1.查看數(shù)據(jù)庫(kù)狀態(tài)

DGMGRL> ** show database verbose orcldg;**

Database - orcldg

  Role:               PHYSICAL STANDBY
  Intended State:     APPLY-ON
  Transport Lag:      3 days 12 hours 25 minutes 24 seconds (computed 75 seconds ago)
  Apply Lag:          3 days 12 hours 25 minutes 41 seconds (computed 75 seconds ago)
  Average Apply Rate: 361.00 KByte/s
  Active Apply Rate:  (unknown)
  Maximum Apply Rate: 340.77 MByte/s
  Real Time Query:    OFF
  Instance(s):
    orcldg

  Database Error(s):
  **  ORA-16766: Redo Apply is stopped**

  Database Warning(s):
    ORA-16857: standby disconnected from redo source for longer than specified threshold

2.嘗試啟動(dòng)MRP進(jìn)程

DGMGRL>  edit database 'orcldg' set state='apply-on';  
Succeeded.
DGMGRL> 

3.查看恢復(fù)進(jìn)程

SQL> ** select process,status from v$managed_standby;**

PROCESS                              STATUS
------------------------------------ ------------------------------------------------
ARCH                                 CLOSING
ARCH                                 CONNECTED
ARCH                                 CLOSING
ARCH                                 CLOSING
RFS                                  IDLE

4.查看日志

SQL>** select message from v$dataguard_status;**

MESSAGE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Creating archive destination file : +DATADG (1463121 blocks)
Creating archive destination file : +DATADG (1479835 blocks)
Creating archive destination file : +DATADG (1494118 blocks)
Creating archive destination file : +DATADG (1505856 blocks)
Creating archive destination file : +DATADG (1480255 blocks)
...............
Creating archive destination file : +DATADG (1489779 blocks)
Creating archive destination file : +DATADG (1486756 blocks)
Creating archive destination file : +DATADG (1444692 blocks)
Creating archive destination file : +DATADG (844053 blocks)

MESSAGE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Media Recovery Log +DATADG/COREDG/ARCHIVELOG/2017_11_28/thread_1_seq_1770.1375.961232949
Media Recovery Log +DATADG/COREDG/ARCHIVELOG/2017_11_28/thread_2_seq_1163.1201.961232061
MRP0: Background Media Recovery terminated with error 1237
Managed Standby Recovery not using Real Time Apply
MRP0: Background Media Recovery process shutdown
Attempt to start background Managed Standby Recovery process
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery starting Real Time Apply
Media Recovery Log +DATADG/COREDG/ARCHIVELOG/2017_11_28/thread_1_seq_1770.1375.961232949
Media Recovery Log +DATADG/COREDG/ARCHIVELOG/2017_11_28/thread_2_seq_1163.1201.961232061
MRP0: Background Media Recovery terminated with error 1237

MESSAGE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Managed Standby Recovery not using Real Time Apply
MRP0: Background Media Recovery process shutdown
Creating archive destination file : +DATADG (1685417 blocks)

5.無(wú)法創(chuàng)建文件,查看磁盤組空間

ASMCMD> lsdg
State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  NORMAL  N         512   4096  1048576    153600   153412            51200           51106              0             N  CRSDG/
MOUNTED  EXTERN  N         512   4096  1048576   1024000      128                0            ** 128**              0             N  DATADG/
ASMCMD> 

三、處理方法
刪除部分歸檔日志,釋放空間,然后啟動(dòng)MRP進(jìn)程

rman target /
delete archivelog all;
DGMGRL>**  edit database 'orcldg' set state='apply-on'; ** 
Succeeded.
DGMGRL> 
向AI問(wèn)一下細(xì)節(jié)

免責(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)容。

AI