ITPub博客

首页 > 数据库 > Oracle > 11g physical standby ora-16191:无法传输归档日志

11g physical standby ora-16191:无法传输归档日志

原创 Oracle 作者:sdusun 时间:2019-05-20 07:27:05 0 删除 编辑

在配置和使用Data Guard的过程中经常会遇到Ora-16191错误。

ORA-16191: 主日志传送客户机没有登录到备用数据库

[@more@]

1 在主库查询:
SQL> select status, error from v$archive_dest
2 where dest_id=2;

STATUS ERROR
------------------ ------------------------------------------------
ERROR ORA-16191: 主日志传送客户机没有登录到备用数据库


2 查alert,并根据alert信息去找相应的trace文件,得到如下内容:
*** 2008-08-19 13:11:34.984 1095 krsh.c
Error 1017 received logging on to the standby
------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
------------------------------------------------------------
Error 16191 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
Error 16191 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
ORA-16191: Primary log shipping client not logged on standby
*** 2008-08-19 13:11:34.984 1095 krsh.c
PING[ARCh]: Heartbeat failed to connect to standby 'standby'. Error is 16191.
*** 2008-08-19 13:11:34.984 26884 kcrr.c
kcrrfail: dest:2 err:16191 force:0 blast:1

3 原因分析及解决方法:
3.1
问题出在口令文件上;重建口令文件后一定要重启主库和备库(有时候只重启备库就够了)。

3.2
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.

3.3 如果还有问题
那就把主库的口令文件PWDprimary.ora拷到备库,并改名为PWDstandby.ora(悲苦的oracle_sid=standby)
重启主库and/or备库。

可以看到所有的断档日志都传送过来了。It is work!

4
适用于10g/11g standby

By SUN
2008-8-19

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

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

注册时间:2005-09-13

  • 博文量
    116
  • 访问量
    118267