oracle RFS[16]: No standby redo logfiles available for thread 1-LMLPHP

可能一、

standby redo部分损坏,重建

查看
select group#, thread#, sequence#, bytes, archived, status from v$standby_log;

关mrp
alter database recover managed standby database cancel;

改standby_file_management状态
alter system set standby_file_management=‘MANUAL’ scope=both;

删standby redo
alter database drop standby logfile group 7;

建新的standby redo(reuse:指定了如果standby redo log文件已经存在,是否可以覆盖它。如果不指定这个参数,那么当standby redo log文件已经存在时,命令会失败)
alter database add standby logfile thread 1 group 8 ‘/U01/app/oracle/fra/test/onlinelog/standbylog08.log’ size 100m reuse;

改standby_file_management状态
alter system set standby_file_management=‘AUTO’ scope=both;

开mrp
alter database recover managed standby database using current logfile disconnect from session;

可能二、

1.比对主库redo和备库standb redo的 thread、大小、blocksize

大小、thread
redo
select member,group# from vKaTeX parse error: Expected 'EOF', got '#' at position 22: …e; select group#̲,thread#,SEQUEN…log;

standby redo
select group#, thread#, sequence#, bytes,BLOCKSIZE , status from v$standby_log;

standby redo 同个thread,最少2个,可以轮换。

blocksize
blocksize正常是512
影响的因素:系统、存储物理扇区
系统:
oracle RFS[16]: No standby redo logfiles available for thread 1-LMLPHP

物理扇区:
oracle RFS[16]: No standby redo logfiles available for thread 1-LMLPHP

物理扇区4096,那建redo就可以指定blocksize了。
alter database add standby logfile thread 9 ‘/tmp/soft/app/oracle/oradata/WLH/onlinelog/sta_redo05.log’ size 1073741824 blocksize 4096;

alter database add logfile thread 9 ‘/tmp/soft/app/oracle/oradata/WLH/onlinelog/sta_redo05.log’ size 1073741824 blocksize 4096;

注意:
如果主库同个thread,既有512,又有4096
oracle RFS[16]: No standby redo logfiles available for thread 1-LMLPHP

要开实时应用的话,备库需要blocksize 4096、512的standby redo 都有才行,不然会报错
RFS[16]: No standby redo logfiles available for thread 1

01-10 19:01