After new files are added to primary, rman fails at Standby with ORA-20079: Full Resync From Primary

本文介绍了解决Oracle RMAN从备用服务器进行备份时遇到的同步问题。当主服务器发生结构变化后,尝试从主服务器重新同步会出现连接失败的错误。文章提供了详细的解决方案,包括使用TNS连接字符串和配置DB_UNIQUE_NAME。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

SYMPTOMS

RMAN backups are run from Standby server.  Whenever a structural change is made on the primary , attempts to resync from the primary using db_unique_name  during the standby backup fails:

ORA-20079: full resync from primary database is not done

Doing automatic resync from primary
resyncing from database with DB_UNIQUE_NAME TEB
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of allocate command at 11/23/2013 23:11:00
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03009: failure of partial resync command on default channel at 11/23/2013 23:11:00
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-00942: table or view does not exist

 

Db-unique-name for all databases participating in the Data Guard configuration  has been configured.

CHANGES

 Files have been added at the Primary site

CAUSE

 RMAN is trying to implicitly resync from the Primary using db_unique_name as it is aware that structural changes have been made.

However, RMAN is unable to connect to the primary because no connect string was used when connecting to the standby - in order to resync from another host in a Data Guard configuration , the connection to target must be made with a username, password and alias.  This is documentation Bug 13774434: ORA-17629, ORA-17628 DURING RESYNC CATALOG FROM DB_UNIQUE_NAME ALL;

SOLUTION

Use a TNS connect string when connecting to the standby eg

Primary:  London
Standby:  York

$ rman target / catalog rman/rman@rcat
RMAN> resync catalog from db_unique_name london;

resyncing from database with DB_UNIQUE_NAME LONDON
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of resync from db_unique_name command on default channel at 11/27/2013 15:29:39
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-03113: end-of-file on communication channel
ORA-17629: Cannot connect to the remote database server

rman target  sys/oracle@york catalog rman/rman@rcat
RMAN> resync catalog from db_unique_name london;

resyncing from database with DB_UNIQUE_NAME LONDON
starting full resync of recovery catalog
full resync complete

 

 

Additional Note:

o To do RMAN RESYNC from remote database we need to configure DB_UNIQUE_NAME in RMAN persistent configuration 
  See details below about the remote connection for RMAN operation

Ex.

CONFIGURE DB_UNIQUE_NAME '<db unique name primary>'   CONNECT IDENTIFIER  '<tns to primary>' ;
CONFIGURE DB_UNIQUE_NAME '<db unique name standby>'   CONNECT IDENTIFIER  '<tns to standby>' ;

o Connection must be using valid TNS string as user sys/<password> or <user>/<sys password>

Example:

CONFIGURE DB_UNIQUE_NAME 'London' CONNECT IDENTIFIER  'London';    # Primary as from this sample 
CONFIGURE DB_UNIQUE_NAME 'York'     CONNECT IDENTIFIER  'York'  ;      # Standby as from this sample


#(As of now only SYS or user with SYS password is allowed to connect for switch or resync operation)

Enhancement Request/Bug 18070699 is in place to use other user/password apart from sys password 
to connect to remote database for RMAN operation 

 Bug 18070699 - ALLOW NON-SYS USERNAME GRANTED SYSDBA TO RESYNC DB_UNIQUE_NAME ALL

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值