ORA-16401: archivelog rejected by RFS

无线出单系统邮件告警10.111.20.1

1.     报错

SYS > ! oerr ora 16041

16041, 00000, "Remote File Server fatal error"

// *Cause:  The Remote File Server (RFS) process at a redo transport

//          destination encountered a fatal error and was no longer

//          available. Further redo transmission to this destination may not be

//          possible.

// *Action: Refer to the appropriate RFS trace file located at the redo

//          transport destination for details regarding the error encountered

//          and take corrective action.

远程传输错误,RFS服务器,与参数fal_server,fal_client参数有关

2.     搜索百度

通常此问题是由于主库的fal_client参数与备库的log_archive_dest_n中的service参数不匹配造成的。

3.     查询参数

Primary

--查询DG成员

SQL> show parameter config

log_archive_config          rac,dgwless,wxcdrac

--减少自己本身,可能存在两个DG成员

--查询主库db_unique_name

SQL> show parameter db_unique_name

db_unique_name                wxcdrac

--查询主库归档参数

SQL> show parameter archive

NAME                 VALUE

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

log_archive_dest_2   service=dgwless  LGWR ASYNC va

lid_for=(online_logfiles,prima

ry_role) db_unique_name=dgwless

log_archive_dest_3   SERVICE=RAC LGWR ASYNC VALID_F

OR=(ONLINE_LOGFILES,PRIMARY_RO

LE) db_unique_name=rac

--查询归档线程参数状态,以上归档线程3对应的参数可以过滤,因为此DG可能已被废弃

--除非是人为或者误操作置为defer,否则基本判断问题,排除此DG

log_archive_dest_state_2             ENABLE

log_archive_dest_state_3             DEFER

--查询主库fal参数

SQL> show parameter fal

NAME                                 TYPE        VALUE

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

fal_client                           string      wxcdrac2

fal_server                           string      dgwless

--通过主库参数,查询备库IP地址

SQL> host tnsping dgwless

Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.135.101.23)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = dgwless)))

OK (90 msec)

--连接备库后,查询验证主备关系

SQL> select dbid,name, database_role,open_mode,FLASHBACK_ON  from v$database;

DBID NAME            DATABASE_ROL OPEN_MODE  FLASHBACK_ON

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

2283108100 RAC             PRIMARY      READ WRITE NO

SQL> select dbid,name, database_role,open_mode,FLASHBACK_ON  from v$database;

DBID NAME            DATABASE_ROL OPEN_MODE  FLASHBACK_ON

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

2283108100 RAC             PHYSICAL STANDBY   MOUNTED    NO

--standby

SQL> show parameter fal

NAME          VALUE

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

fal_client    dgwless

fal_server    wxcdrac  --发现与主库fal_client参数不同

--查询备库归档参数

log_archive_dest_1   location=/picclife/app/oracle/archdg/

log_archive_dest_2   SERVICE=WXCDRAC LGWR ASYNC VAL  --发现tns也与主库fal_client不同

ID_FOR=(ONLINE_LOGFILES,PRIMAR

Y_ROLE) db_unique_name=wxcdrac

--主库fal_client 在11g已被弃用,按照道理将主库fal_client与备库log_archvie_service不同,无异常,查询版本,

当前10G

Enterprise Edition Release 10.2.0.3.0

--查询主库集群状态

wxcdrac2:/home/oracle$ export ORACLE_SID=+ASM1

wxcdrac2:/home/oracle$ cat .profile

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs_1

wxcdrac2:/home/oracle$ cd $ORA_CRS_HOME/bin

wxcdrac2:/picclife/app/oracle/product/10.2.0/crs_1/bin$

wxcdrac2:/picclife/app/oracle/product/10.2.0/crs_1/bin$ crs_stat -t

Name           Type           Target    State     Host

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

ora.wxcdrac.db application    ONLINE    ONLINE    wxcdrac1

ora....c1.inst application    ONLINE    ONLINE    wxcdrac1

ora....c2.inst application    ONLINE    ONLINE    wxcdrac2

ora....SM1.asm application    ONLINE    ONLINE    wxcdrac1

ora....C1.lsnr application    ONLINE    ONLINE    wxcdrac1

ora....ac1.gsd application    ONLINE    ONLINE    wxcdrac1

ora....ac1.ons application    ONLINE    ONLINE    wxcdrac1

ora....ac1.vip application    ONLINE    ONLINE    wxcdrac1

ora....SM2.asm application    ONLINE    ONLINE    wxcdrac2

ora....C2.lsnr application    ONLINE    ONLINE    wxcdrac2

ora....ac2.gsd application    ONLINE    ONLINE    wxcdrac2

ora....ac2.ons application    ONLINE    ONLINE    wxcdrac2

ora....ac2.vip application    ONLINE    ONLINE    wxcdrac2

4.     查询日志

--备库日志

Wed Aug  8 01:59:19 2018

Redo Shipping Client Connected as PUBLIC

-- Connected User is Valid

RFS[2586]: Assigned to RFS process 29818962

RFS[2586]: Identified database type as 'physical standby'

Primary database is in MAXIMUM PERFORMANCE mode

Primary database is in MAXIMUM PERFORMANCE mode

RFS[2586]: Successfully opened standby log 15: '/picclife/app/oracle/oradata/dgwless/std02_1.log'

Wed Aug  8 02:04:42 2018

RFS[2579]: Archivelog thread 2 sequence 3661 cannot be reused

Wed Aug  8 02:04:42 2018

Errors in file /picclife/app/oracle/admin/dgwless/udump/dgwless_rfs_13238468.trc:

ORA-16401: archivelog rejected by RFS

Redo Shipping Client Connected as PUBLIC

-- Connected User is Valid

--查询trace文件

KCRRSNPS

Identified standby redo log 12 for implicit mid-log reconnect

*** 2018-08-08 02:04:42.324

*** 2018-08-08 02:04:42.324 61287 kcrr.c

RFS[2579]: Archivelog thread 2 sequence 3661 cannot be reused

This problem can occur as the result of multiple primary and/or

standby database(s) trying to archive to this standby database.

This is not allowed, since successfully completed archivelogs

would be overwritten.

ORA-16401: archivelog rejected by RFS

*** 2018-08-08 02:13:43.562

Dispatching RFS shutdown notification

以上备库查询得到的信息是,归档接受出现网络问题,但不明确

查询主库Alert日志

--查询邮件告警所在的数据库Alert日志

SQL> show parameter background_dump_dest

NAME                  VALUE

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

background_dump_dest  /picclife/app/oracle/admin/wxcdrac/bdump

Wed Aug  8 01:02:57 2018

LNS: Standby redo logfile selected for thread 1 sequence 3993 for destination LOG_ARCHIVE_DEST_2

Wed Aug  8 01:03:32 2018

Starting control autobackup

Control autobackup written to SBT_TAPE device

comment 'API Version 2.0,MMS Version 10.0.0.116',

media 'V_89405_737884'

handle 'c-2283108100-20180808-01'

Wed Aug  8 01:08:19 2018

Errors in file /picclife/app/oracle/admin/wxcdrac/bdump/wxcdrac1_arc2_10682458.trc:

ORA-16401: archivelog rejected by RFS

Wed Aug  8 01:11:58 2018

ARC0: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (3135)

ARC0: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned

Wed Aug  8 01:11:58 2018

Errors in file /picclife/app/oracle/admin/wxcdrac/bdump/wxcdrac1_arc0_11337924.trc:

ORA-03135: connection lost contact

FAL[server, ARC0]: Error 3135 creating remote archivelog file 'dgwless'

FAL[server, ARC0]: FAL archive failed, see trace file.

Wed Aug  8 01:11:58 2018

Errors in file /picclife/app/oracle/admin/wxcdrac/bdump/wxcdrac1_arc0_11337924.trc:

ORA-16055: FAL request rejected

ARCH: FAL archive failed. Archiver continuing

Wed Aug  8 01:11:58 2018

ORACLE Instance wxcdrac1 - Archival Error. Archiver continuing.

*** 2018-08-08 01:08:19.693

Error 16401 creating standby archive log file at host 'dgwless'

ORA-16401: archivelog rejected by RFS

--从以上的信息还是未明确发现由于参数问题导致的报错

5.     搜索MOS

1183143.1

ORA-16401: ARCHIVELOG REJECTED BY RFS error occurs when incorrect naming convention for fal_client parameter is set.

Version 10.2.0.4 to 11.1.0.7 [Release 10.2 to 11.1]

配置主备不一致的fal_client时会发生此错误

***** Primary *****

log_archive_config DG_CONFIG=(p1ncm1,p1ncm2)

log_archive_dest_1 location=/u99/ORACLE/p1ncm1/archive valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=p1ncm1

log_archive_dest_2 service=p1ncm2_dgfal.csm.fub.com optional reopen=60 valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=p1ncm2

fal_client p1ncm1_fc.csm.fub.com

fal_server p1ncm2_fs.csm.fub.com

********* Standby ********

log_archive_config DG_CONFIG=(p1ncm1,p1ncm2)

log_archive_dest_1 location=/u99/ORACLE/p1ncm2/archive valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=p1ncm2

log_archive_dest_2 service=p1ncm1_dgfal.csm.fub.com optional reopen=60 valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=p1ncm1

fal_client p1ncm2_fc.csm.fub.com

fal_server p1ncm1_fs.csm.fub.com

SOLUTION

standby

alter system set fal_client=p1ncm2_dgfal.csm.fub.com scope=both sid='*';

6.     处理

-修改主库的fal_client参数,与备库保持一致

--修改前需要进行验证

SQL> host tnsping wxcdrac2

SQL> host tnsping wxcdrac

SQL> alter system set fal_client=wxcdrac;

--第二次,在其它客户遇到同样报错,问题是tnsping 主库fal_client不通,端口错误。

7.     补充说明

MOS ID 288074.1

Versions 11.2, 12.1  对于11g12c而言,很可能此消息是一个提示作用

Error:  ORA-16401 archive log rejected by Remote File Server (RFS)

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

Cause:  An attempt was made to re-archive an existing archive log.

Action: See alert log and trace file for more details. No action is necessary.

This is an informational statement provided to record the event for

diagnostic purposes.

Versions 9.2, 10.1, 10.2, 11.1

Error:  ORA-16401 archivelog rejected by RFS  对于10g而言,此报错,很可能为fal_client参数配置错误

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

Cause:  An attempt was made to re-archive an existing archivelog. This usually

happens because either a multiple primary database or standby

database(s) or both are trying to archive to this standby database.

Action: See alert log and trace file for more details. No action is necessary;

this is an informational statement provided to record the event for

diagnostic purposes.

ORA-16401: archivelog rejected by RFS的更多相关文章

  1. DG备库磁盘空间满导致无法创建归档

    上周五去某客户那里做数据库巡检.是window 2008系统上10g的一套NC系统的库,已经配置了DG,可是巡检时发现数据库报错: Tue Nov 11 10:13:57 2014 LNS: Stan ...

  2. Oracle Ora 错误解决方案合集

    注:本文来源于 < Oracle学习笔记 --- Oracle ORA错误解决方案 > ORA-00001: 违反唯一约束条件 (.)错误说明:当在唯一索引所对应的列上键入重复值时,会触发 ...

  3. Oracle 错误总结及问题解决 ORA

    参考地址 ORA-00001: 违反唯一约束条件 (.)错误说明:当在唯一索引所对应的列上键入重复值时,会触发此异常.ORA-00017: 请求会话以设置跟踪事件ORA-00018: 超出最大会话数O ...

  4. Oracle ORA

    ORA-00001: 违反唯一约束条件 (.) 错误说明:当在唯一索引所对应的列上键入重复值时,会触发此异常. ORA-00017: 请求会话以设置跟踪事件 ORA-00018: 超出最大会话数 OR ...

  5. Oracle 设置archivelog错误解决方案

    在Oracle 数据库的实际应用中,开启archivelog模式是必不可少的,但是在设置archivelog的过程中,可能因为不小心出现错误,导致数据库无法启动,本案例就是一种情况. 误操作现象: 设 ...

  6. Oracle Logminer 分析重做日志RedoLog和归档日志ArchiveLog

    在实际开发过程中,有时我们很有可能需要某个表的操作痕迹,或通过记录的SQL语句进行有目的性的数据恢复(此时POINT-IN-TIME恢复已经满足不了更细的粒度).或仅仅是查看: 据说Oracle8i之 ...

  7. [转帖]sqlnet.ora常用参数

    sqlnet.ora常用参数 注﹕在修改sqlnet.ora文件之后重新启动监听﹐修改才能生效﹗﹗﹗ oracle网络设置主要包括三个文件,sqlnet.ora\ lisnter.ora\ tnsna ...

  8. ORA错误查询手册

    ORA-00910: 指定した長さがデータ型に対して長すぎます 原因: データ型CHARまたはRAWに対して指定した長さは.2000を超える値または4000を超える値であるため無効です. 処置: 指定 ...

  9. 【ORA】ORA-00257 archiver error. 错误的处理方法

    今天连接数据库,结果报错,ora-00257查看 [oracle@exam oracle]$ oerr ora 00257 00257, 00000, "archiver error. Co ...

随机推荐

  1. 用http请求thrift服务端出现了内存溢出的情况

    记一次内存溢出的分析经历 - Janti - 博客园 https://www.cnblogs.com/superfj/p/8474288.html 说在前面的话 朋友,你经历过部署好的服务突然内存溢出 ...

  2. hystrix流程图收藏

    最近在看张开涛的亿级流量的书,学习了一个新的防雪崩的功能hystrix,在学习这个功能的过程中,看了一些网站也温习了一些知识,例如double_check locking功能,还有cache的击穿作为 ...

  3. Angular 中的数据交互(get jsonp post)

    一.Angular get 请求数据 Angular5.x 以后 get.post 和和服务器交互使用的是 HttpClientModule 模块. 1.在 app.module.ts 中引入 并注入 ...

  4. 论文翻译 DOTA:A Large-scale Dataset for Object Detection in Aerial Images

      简介:武大遥感国重实验室-夏桂松和华科电信学院-白翔等合作做的一个航拍图像数据集 摘要: 目标检测是计算机视觉领域一个重要且有挑战性的问题.虽然过去的十几年中目标检测在自然场景已经有了较重要的成就 ...

  5. Jupyter Notebook 远程连接配置(转载)

    转载博客的Jupyter Notebook远程连接配置方法. 0 - 参考资料 https://www.jianshu.com/p/08f276d48669?utm_campaign=maleskin ...

  6. jenkins参数化构建&HTML报告

    背景: 每次构建项目时都需要去修改一下配置,然后保存,再去立即构建.这样修改容易修改出错误,影响到执行脚本,且每次都要去修改配置,不容易修改,操作也比较麻烦.所以决定将Jenkins修改为参数化构建. ...

  7. linuxan安装redis出现Newer version of jemalloc required错误

    linux安装redis执行make命令时出现问题 解决方法 make MALLOC=libc 如果要指定安装文件夹 使用命令:make PREFIX  = /usr/local/redis(文件夹路 ...

  8. iOS的推送证书过期的处理

    1.删除MAC上钥匙串访问中对应的推送证书.<根据过期日期看> 2.登录苹果开发者后台,revoke删除已过期推送证书(貌似会自己消失不用删除,具体记不清了...),然后为对应App ID ...

  9. [转]Postgres-XL 10r1英文文档

    Postgres-XL 是一个完全满足ACID的.开源的.可方便进行水平扩展的.多租户安全的.基于PostgreSQL的数据库解决方案. Postgres-XL 可非常灵活的应用在各类场景中,比如: ...

  10. 设置Android模拟器的窗口大小

    Android SDK 中两个位置可以设置Android模拟器的窗口大小 1.设置Android模拟器的分辨率 Android Virtual Device Manager中创建AVD时,窗口中部Re ...