ITPub博客

首页 > 数据库 > Oracle > Oracle dataguard报错:Error 1017 received logging on to the standby

Oracle dataguard报错:Error 1017 received logging on to the standby

Oracle 作者:zr2095 时间:2016-09-23 15:59:24 0 删除 编辑
1,状态描述:
SQL> SELECT MESSAGE FROM V$DATAGUARD_STATUS;                                                                                                                                                   



MESSAGE
--------------------------------------------------------------------------------
ARC0: Archival started
ARC1: Archival started
ARC2: Archival started
ARC3: Archival started
ARC4: Archival started
ARC5: Archival started
ARC6: Archival started
ARC7: Archival started
ARC8: Archival started
ARC9: Archival started
ARCa: Archival started


MESSAGE
--------------------------------------------------------------------------------
ARCb: Archival started
ARCc: Archival started
ARCd: Archival started
ARCe: Archival started
ARCf: Archival started
ARCg: Archival started
ARCh: Archival started
ARCi: Archival started
ARCi: Becoming the 'no FAL' ARCH
ARC1: Becoming the heartbeat ARCH
Error 1017 received logging on to the standby


MESSAGE
--------------------------------------------------------------------------------
FAL[client, ARC2]: Error 16191 connecting to PD for fetching gap sequence
ARCj: Archival started
Attempt to start background Managed Standby Recovery process
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery not using Real Time Apply
Media Recovery Waiting for thread 1 sequence 28870


28 rows selected.


SQL>  

2,解决方案:将主库的密码文件 copy到备份库,然后重启备份库,解决。


参考文章地址:http://blog.itpub.net/26230597/viewspace-1224676/


3,恢复过程:
再启动从库

STARTUP MOUNT;
再应用redo应用
alter database recover managed standby database disconnect from session;
查看是否有yes
select name,sequence#,applied from v$archived_log;  


再去主库上切换下日志,看下新的24178归档日志是否传输过来,是否应用成YES:
alter system switch logfile;
SQL> alter system switch logfile;                                                                                                                                                              
System altered.
SQL> 


去从库上面执行检查
SQL> select sequence#,applied from v$archived_log;
 SEQUENCE# APPLIED
---------- ---------
     24170 YES
     24169 YES
     24173 YES
     24176 YES
     24177 YES
     24178 IN-MEMORY


2800 rows selected.
再继续检查check下,applied就变成YES了
 SEQUENCE# APPLIED
---------- ---------
     24170 YES
     24169 YES
     24173 YES
     24176 YES
     24177 YES
     24178 YES
2800 rows selected.


停止redo应用
alter database recover managed standby database cancel;
再打开open模式,将从库打开供大家查询数据
alter database open read only;
再起动redo应用
alter database recover managed standby database disconnect from session;



 ----------------------------------------------------------------------------------------------------------------
<版权所有,允许转载,但必须以链接方式注明源地址,否则追究法律责任!>
原博客地址:     http://blog.itpub.net/26230597/viewspace-1413077/
原作者:黄杉 (mchdba)
----------------------------------------------------------------------------------------------------------------

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

请登录后发表评论 登录
全部评论

注册时间:2015-04-15

  • 博文量
    163
  • 访问量
    421344