ORA-01618: redo thread 2 is not enabled - cannot mount

错误现象:
在做数据库从单机到RAC恢复的过程中,1节点正常启动,2节点无法mount,提示如下错误:
  1. SQL> alter database mount;
  2. alter database mount
  3. *
  4. ERROR at line 1:
  5. ORA-01618: redo thread 2 is not enabled - cannot mount
查看错误说明:
  1. [oracle@otdb1 ~]$ oerr ora 1618
  2. 01618, 00000, "redo thread %s is not enabled - cannot mount"
  3. // *Cause: The INIT.ORA parameter "thread" requests a thread that is not
  4. // enabled. A thread must be enabled before it can be mounted.
  5. // *Action: Shutdown the instance, change the INIT.ORA parameter and startup
  6. // mounting a different thread. If the database is open in another
  7. // instance then the thread may be enabled.
在正常启动的1节点查看发现都是thread 1 的日志,没有thread 2的日志。
  1. SQL> select * from v$log;

  2.     GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
  3. ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
  4.          1 1 1 471859200 1 NO CURRENT 1.4430E+13 10-AUG-15
  5.          2 1 0 471859200 1 YES UNUSED 0
  6.          3 1 0 471859200 1 YES UNUSED 0
  7.          4 1 0 471859200 1 YES UNUSED 0
  8.          5 1 0 471859200 1 YES UNUSED 0
  9.          6 1 0 471859200 1 YES UNUSED 0
  10.          7 1 0 471859200 1 YES UNUSED 0
  11.          8 1 0 471859200 1 YES UNUSED 0
  12.          9 1 0 471859200 1 YES UNUSED 0
  13.         10 1 0 471859200 1 YES UNUSED 0
解决方法:
1)在正常启动的节点1为节点2手工添加日志

  1. SQL> alter database add logfile thread 2 ('+DATADG') size 450m;

  2. Database altered.
  3. 。。。。。。。。。。。。。
2)添加完之后再应用日志

  1. SQL> alter database enable thread 2;
  2. Database altered.
应用完日志再在节点2上执行mount

  1. SQL> alter database mount;
  2. Database altered.
正常mount。
因为单机只有1组日志,恢复的时候在1节点操作,所有日志都应用在1节点,2节点就缺少相关日志。
RAC恢复的时候需要注意。


请使用浏览器的分享功能分享到微信等