ORA-16401 archivelog rejected by RFS 解决方法

之前做DataGuard做了一次Switchover切换,之后standby库就报如下错误:

ThuJul2908:03:292010

Errorsinfile/dba/oracle/admin/newccs/udump/newccs_rfs_19602.trc:

ORA-16401:archivelogrejectedbyRFS

ThuJul2908:03:292010

Errorsinfile/dba/oracle/admin/newccs/bdump/newccs_arc0_19519.trc:

ORA-16401:archivelogrejectedbyRFS

ThuJul2908:03:332010

MediaRecoveryLog/u01/newccs_archive/1_34801_692846987.dbf

ThuJul2908:05:182010

MediaRecoveryWaitingforthread1sequence34802

ThuJul2908:25:222010

RFS[2]:Successfullyopenedstandbylog4:'/u02/oradata/newccs/redo04.log'

ThuJul2908:25:242010

Errorsinfile/dba/oracle/admin/newccs/udump/newccs_rfs_19559.trc:

ORA-16401:archivelogrejectedbyRFS

ThuJul2908:25:242010

Errorsinfile/dba/oracle/admin/newccs/bdump/newccs_arc1_19521.trc:

ORA-16401:archivelogrejectedbyRFS

ThuJul2908:25:242010

MediaRecoveryLog/u01/newccs_archive/1_34802_692846987.dbf

ThuJul2908:26:462010

MediaRecoveryWaitingforthread1sequence34803

查询了一下错误代码:

ORA-16401:

archivelogrejectedbyRFS

Cause:

Anattemptwasmadetore-archiveanexistingarchivelog.Thisusuallyhappensbecauseeitheramultipleprimarydatabaseorstandbydatabase(s)orbotharetryingtoarchivetothisstandbydatabase.

Action:

Seealertlogandtracefileformoredetails.Noactionisnecessary;thisisaninformationalstatementprovidedtorecordtheeventfordiagnosticpurposes.

导致这个错误的原因是重复的归档文件,但是这个不影响对归档文件的Apply,可以忽略这个错误。

虽说可以忽略,但是还是想研究下原因。检查了相关参数,发现备库的log_archive_dest_2归档目录也设置成了备库。而且standby_archive_dest参数的位置和log_archive_dest_1也相同。这个就是导致这个错误的原因。因为主库先将归档文件放到归档目录,然后备份的log_archive_dest_2也将归档放到这个目录,于是重复,故报错。

根据这个分析有两种解决方法:

(1)修改log_archive_dest_2参数

(2)修改standby_archive_dest参数,如果修改这个参数,还是会产生归档文件,这样还是会占用磁盘空间,所以建议用第一种方法解决。

SQL>showparameterlog_archive_dest_

NAMETYPEVALUE

-----------------------------------------------------------------------------

log_archive_dest_1stringlocation=/u01/newccs_archive

log_archive_dest_10string

log_archive_dest_2stringSERVICE=NEWCCS_ST

log_archive_dest_3string

SQL>showparameterstandby_

NAMETYPEVALUE

-----------------------------------------------------------------------------

standby_archive_deststring/u01/newccs_archive

standby_file_managementstringAUTO

SQL>altersystemsetlog_archive_dest_2='';

Systemaltered.

SQL>showparameterlog_archive_dest_

NAMETYPEVALUE

-----------------------------------------------------------------------------

log_archive_dest_1stringlocation=/u01/newccs_archive

log_archive_dest_10string

log_archive_dest_2string

log_archive_dest_3string

log_archive_dest_4string

log_archive_dest_5string

log_archive_dest_6string

log_archive_dest_7string

log_archive_dest_8string

log_archive_dest_9string

SQL>

------------------------------------------------------------------------------

Bloghttp://blog.csdn.net/tianlesoftware

网上资源:http://tianlesoftware.download.csdn.net

相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx

DBA1群:62697716();DBA2群:62697977

DBA3群:63306533;聊天群:40132017

<!--EndFragment-->

你可能感兴趣的:(hive)