本文主要是介绍一次ADG无法实时应用日志No standby redo logfiles故障解决,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
rac->单机的ADG同步,搭建好之后,开启实时应用发现报错:
RFS[1]: No standby redo logfiles available for thread 1
RFS[1]: Opened log for thread 1 sequence 900 dbid 1911584814 branch 1038507374
Fri Jun 05 13:20:22 2020
Archived Log entry 46 added for thread 2 sequence 595 rlc 1038507374 ID 0x71f0b52e dest 2:
RFS[3]: No standby redo logfiles available for thread 2
RFS[3]: Opened log for thread 2 sequence 596 dbid 1911584814 branch 1038507374
Fri Jun 05 13:20:22 2020
但是可以确定这里肯定是配置了standby log的.尝试删除重建之后依然无效.检查standby log的状态都是UNASSIGNED,正常应该每个节点有一个为active:
GROUP# DBID THREAD# SEQUENCE# BYTES BLOCKSIZE
---------- ---------------------------------------- ---------- ---------- ---
11 UNASSIGNED 1 0 536870912 512 0 YES UNASSIGNED
12 UNASSIGNED 1 0 536870912 512 0 YES UNASSIGNED
13 UNASSIGNED 1 0 536870912 512 0 YES UNASSIGNED
14 UNASSIGNED 1 0 536870912 512 0 YES UNASSIGNED
21 UNASSIGNED 2 0 536870912 512 0 YES UNASSIGNED
22 UNASSIGNED 2 0 536870912 512 0 YES UNASSIGNED
23 UNASSIGNED 2 0 536870912 512 0 YES UNASSIGNED
24 UNASSIGNED 2 0 536870912 512 0 YES UNASSIGNED
最后检查发现是standby log的大小错误导致.standby log必须和源端的redo日志大小保证一致才行:
源端的redo日志 大小为512M,而我的目标端standby log设置的为500M
查看源端的日志:
SQL> select bytes/1024/1024 from v$log;BYTES/1024/1024
---------------512512512512512512
重建standby log:
alter database add standby logfile thread 1 group 11 ('/u01/oradata/oracle/onlinelog/stand_redo_1_01.log') size 512m reuse;
alter database add standby logfile thread 1 group 12 ('/u01/oradata/oracle/onlinelog/stand_redo_1_02.log') size 512m reuse;
alter database add standby logfile thread 1 group 13 ('/u01/oradata/oracle/onlinelog/stand_redo_1_03.log') size 512m reuse;
alter database add standby logfile thread 1 group 14 ('/u01/oradata/oracle/onlinelog/stand_redo_1_04.log') size 512m reuse;
alter database add standby logfile thread 2 group 21 ('/u01/oradata/oracle/onlinelog/stand_redo_2_01.log') size 512m reuse;
alter database add standby logfile thread 2 group 22 ('/u01/oradata/oracle/onlinelog/stand_redo_2_02.log') size 512m reuse;
alter database add standby logfile thread 2 group 23 ('/u01/oradata/oracle/onlinelog/stand_redo_2_03.log') size 512m reuse;
alter database add standby logfile thread 2 group 24 ('/u01/oradata/oracle/onlinelog/stand_redo_2_04.log') size 512m reuse;
然后重启目标端数据库,并开启应用,恢复正常.
这篇关于一次ADG无法实时应用日志No standby redo logfiles故障解决的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!