错误现象:
在做数据库从单机到RAC恢复的过程中,1节点正常启动,2节点无法mount,提示如下错误:
-
SQL> alter database mount;
-
alter database mount
-
*
-
ERROR at line 1:
-
ORA-01618: redo thread 2 is not enabled - cannot mount
查看错误说明:
-
[oracle@otdb1 ~]$ oerr ora 1618
-
01618, 00000, "redo thread %s is not enabled - cannot mount"
-
// *Cause: The INIT.ORA parameter "thread" requests a thread that is not
-
// enabled. A thread must be enabled before it can be mounted.
-
// *Action: Shutdown the instance, change the INIT.ORA parameter and startup
-
// mounting a different thread. If the database is open in another
-
// instance then the thread may be enabled.
在正常启动的1节点查看发现都是thread 1 的日志,没有thread 2的日志。
-
SQL> select * from v$log;
-
-
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
-
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
-
1 1 1 471859200 1 NO CURRENT 1.4430E+13 10-AUG-15
-
2 1 0 471859200 1 YES UNUSED 0
-
3 1 0 471859200 1 YES UNUSED 0
-
4 1 0 471859200 1 YES UNUSED 0
-
5 1 0 471859200 1 YES UNUSED 0
-
6 1 0 471859200 1 YES UNUSED 0
-
7 1 0 471859200 1 YES UNUSED 0
-
8 1 0 471859200 1 YES UNUSED 0
-
9 1 0 471859200 1 YES UNUSED 0
-
10 1 0 471859200 1 YES UNUSED 0
解决方法:
1)在正常启动的节点1为节点2手工添加日志
-
SQL> alter database add logfile thread 2 ('+DATADG') size 450m;
-
-
Database altered.
-
。。。。。。。。。。。。。
2)添加完之后再应用日志
-
SQL> alter database enable thread 2;
-
-
Database altered.
应用完日志再在节点2上执行mount
-
SQL> alter database mount;
-
-
Database altered.
正常mount。
因为单机只有1组日志,恢复的时候在1节点操作,所有日志都应用在1节点,2节点就缺少相关日志。
RAC恢复的时候需要注意。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/205377/viewspace-1767253/
,如需转载,请注明出处,否则将追究法律责任。