溫馨提示×

溫馨提示×

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

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

ORACLE 12C ORA-00312 redo故障處理

發(fā)布時間:2020-07-13 00:17:00 來源:網絡 閱讀:1489 作者:roidba 欄目:關系型數據庫

一、描述
DB版本:12.1.0.2
system版本:7.0

二、處理過程
1、報錯,數據庫啟動就實例就會異常終止

ORA-00312: online log 3 thread 1: '+DATADG/ORCLDG/ONLINELOG/group_3.403.962961193'
ORA-00312: online log 3 thread 1: '+DATADG/ORCLDG/ONLINELOG/group_3.405.962961193'
Mon Jan 08 13:35:53 2018
USER (ospid: 15155): terminating the instance due to error 16014
Mon Jan 08 13:35:53 2018
System state dump requested by (instance=1, osid=15155), summary=[abnormal instance termination].
System State dumped to trace file /u01/app/oracle/diag/rdbms/orcldg/orcldg/trace/orcldg_diag_15110_20180108133553.trc
Mon Jan 08 13:35:53 2018
Dumping diagnostic data in directory=[cdmp_20180108133553], requested by (instance=1, osid=15155), summary=[abnormal instance termination].
Mon Jan 08 13:35:53 2018
Instance terminated by USER, pid = 15155
Mon Jan 08 13:39:58 2018
Starting ORACLE instance (normal) (OS id: 16121)
Mon Jan 08 13:39:58 2018
CLI notifier numLatches:3 maxDescs:519
Mon Jan 08 13:39:58 2018

2、處理過程

SQL> startup mount;
ORACLE instance started.

Total System Global Area 1241513984 bytes
Fixed Size                  2923872 bytes
Variable Size             452985504 bytes
Database Buffers          771751936 bytes
Redo Buffers               13852672 bytes
Database mounted.
SQL> 

SQL> select group#,sequence#,archived,status from v$log;

    GROUP#  SEQUENCE# ARC STATUS
---------- ---------- --- ----------------
         1        356 NO  INACTIVE
         3        355 NO  INACTIVE
         2        357 NO  CURRENT

SQL> alter database clear logfile  group 3 ; 
alter database clear logfile  group 3
*
ERROR at line 1:
ORA-00350: log 3 of instance orcldg (thread 1) needs to be archived
ORA-00312: online log 3 thread 1:
'+DATADG/ORCLDG/ONLINELOG/group_3.403.962961193'
ORA-00312: online log 3 thread 1:
'+DATADG/ORCLDG/ONLINELOG/group_3.405.962961193'

SQL> 

SQL> alter database clear unarchived  logfile  group 3 ;

Database altered.

SQL> alter database open;

Database altered.

3、說明
我這里是一個ADG,主庫這樣操作會導致GAP,備庫需要增量恢復。

向AI問一下細節(jié)

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

AI