重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 758|回复: 0
打印 上一主题 下一主题

[参考文档] standby database recovery fails with ORA-17627 ORA-17629

[复制链接]
跳转到指定楼层
楼主
发表于 2023-7-16 00:49:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
Standby database recovery fails with these errors:

2020-03-17T18:24:41.713017-04:00  Errors in file /path/<sid>_pr0o_56438.trc:
2020-03-17T18:24:41.713017-04:00  ORA-17627:
2020-03-17T18:24:41.713017-04:00  ORA-17629: Cannot connect to the remote database server


原因:
The standby database is used in Active Data Guard (ADG) mode.

Oracle attempts to use Automatic Block Recover Feature (AMBR) to fix a corrupted block

2020-03-17T17:02:03.893663-04:00  Errors in file /path/trace/<SID>_w005_5726.trc (incident=8458):
2020-03-17T17:02:03.893663-04:00  ORA-01578: ORACLE data block corrupted (file # 4, block # 52160)
2020-03-17T17:02:03.893663-04:00  ORA-01110: data file 4: '<Path and name of datafile>'
2020-03-17T17:04:59.996674-04:00  Errors in file /path/trace/<SID>_tt00_60916.trc:
2020-03-17T17:04:59.996674-04:00  ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648000 bytes is 100.00% used, and has 0 remaining bytes available.



Trace file shows
-------------------

kgfpRubout hdl=0x7fc568ead7c8

OCI error val is 291576348 and errmsg is ''
ORA-17627:
ORA-17629: Cannot connect to the remote database server
SUCCESS: retrieved DB password file location: <path>
kgfpInitEnv2: hdl=0x7fc568ead7c8 env=0x7fc568ead7e0
2020-03-17 18:29:48.059 : [ default][ default]clsvactversion:4: Retrieving Active Version from local storage.

解决方法:
There are several options that could be used to resolve the issue


Option 1 :  Using Service Option in 12c and above


**

** Stop managed recovery on the standby database using :

**

SQL > recover managed standby database cancel

  -- or, in case DG Broker is configured

DGMGRL > edit database "<standby database name>" set state = 'APPLY-OFF';

**

** Restore the data file

**

rman target /

RMAN> shutdown immediate;

RMAN> startup mount ;

RMAN> restore datafile 4 from service '<service name of primary>' ;



**

** Start managed recovery on the standby database using :

**

SQL > recover managed standby database disconnect;

-- or, in case DG Broker is configured

DGMGRL > edit database "<standby database name>" set state = 'APPLY-ON';





Option 2 : Using Backupset from primary



Step 1: On Primary :

RMAN> backup as compressed backupset datafile 4 format '<path/%U>' tag 'corrupt' ;
Step 2: scp this backuppiece to standby

Step 3:On Standby
----------------------

**

** Stop managed recovery on the standby database using :

**

SQL > recover managed standby database cancel

-- or, in case DG Broker is configured

DGMGRL > edit database "<standby database name>" set state = 'APPLY-OFF';

**

** Restore the copied data file

**

RMAN> catalog backuppiece '<name and path>' ;

RMAN> List backup of datafile 4 ;

RMAN> restore datafile 4 ;

RMAN> validate datafile 4 ;

RMAN> select * from v$database_block_corruption ;

**

** Start managed recovery on the standby database using :

**

SQL > recover managed standby database disconnect;

-- or, in case DG Broker is configured

DGMGRL > edit database "<standby database name>" set state = 'APPLY-ON';





Option 3 : Disable AMBR on standby



You can try disabling AMBR and see if managed recovery continues however the block would still be Corrupted

Alter system set "_auto_bmr"=disabled scope=spfile ;

Then restart the Standby database instance

SQL > shutdown immediate;

SQL > startup mount;

SQL > recover managed standby database cancel

-- or, in case DG Broker is configured

DGMGRL > edit database "<standby database name>" set state = 'APPLY-OFF';

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-8 11:10 , Processed in 0.100241 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表