Data Guard无法同步报ORA-16047错

一、问题现象

Data Guard无法正常同步, alert log错误信息如下:

LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2

Error 16047 for archive log file 4 to 'tmpeps'

Errors in file /hp/app/oracle/rdbms/diag/rdbms/eps/eps/trace/eps_nsa3_1008.trc:

ORA-16047: DGID mismatch between destination setting and target database

FALserver, ARC3: Error 16047 creating remote archivelog file 'tmpeps'

FALserver, ARC3: FAL archive failed, see trace file.

ARCH: FAL archive failed. Archiver continuing

ORACLE Instance eps - Archival Error. Archiver continuing.

二、原因分析

出现这个错误主要有以下两个原因造成:

( 1)主库的 Log_archive_desc_n参数中 db_unique_name的设置与备库的 db_unique_name不匹配

( 2) Log_archive_config 参数中 Dg_config未设置或者是未包含主备库的 db_unique_name

具体处理步骤如下:

关于第一种可能性,检查如下:

1、检查主库 log_archive_dest_3的参数设置

Show parameter log_archive_dest_3

Name           type          value

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

Log_archive_dest_3  string   service=tmpeps LGWR ASYNC NOAFFIRM valid_for=(online_logfiles,primary_role)db_unique_name=tmpeps

2、检查备库的 db_unique_name参数设置

Show parameter db_unique_name

 Name          type          value

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

db_unique_name  string         tmpeps

    两者匹配,因此不是这个原因造成

关于第二种可能性,检查如下:

1、检查主库 log_archive_config参数设置

Show parameter log_archive_config

Name           type          value

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

Log_archive_config   string     DG_CONFIG=(eps,tmpeps)

2、检查主库 db_unique_name参数设置

    Show parameter db_unique_name

 Name          type          value

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

db_unique_name  string     eps

3、检查备库的 db_unique_name参数

    Show parameter db_unique_name

 Name          type          value

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

db_unique_name  string         tmpeps

4、检查备库的 log_archive_config参数

Show parameter log_archive_config

      Name            type          value

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

log_archive_config   string        

 发现这里没有设置 log_archive_config参数,以下为这个参数的官方解释:

LOG_ARCHIVE_CONFIG enables or disables the sending of redo logs to remote destinations and the receipt of remote redo logs, and specifies the unique database names (DB_UNIQUE_NAME) for each database in the Data Guard configuration.

Values:

DG_CONFIG

Specifies a list of up to 9 unique database names (defined with the DB_UNIQUE_NAME initialization parameter) for all of the databases in the Data Guard configuration.

NODG_CONFIG

Eliminates the list of service provider names previously specified with the DG_CONFIG option.

这个参数如果设置了,就要在 Data Guard环境中所有的数据库都设置

三、解决方法

由于备库没有设置 log_archive_config参数,导致了主库无法与备库进行同步,设置这个参数后,主备同步正常

alter system set log_archive_config="DG_CONFIG=(eps,seps,tmpeps)" scope=both;

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22578826/viewspace-749297/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22578826/viewspace-749297/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值