Oracle:DG error ORA-16191错误

告警日志出现大量的:
[oracle@primary trace]$ tail -f alert_orcl.log
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

看到这样的告警,感觉是主备库的sys密码不一致导致的,所以:
当初搭建DG时,在主备两端通过 orapwd file=orapworcl password=oracle 生成
现将DG端密码文件删掉,从生产端scp密码文件到DG端,问题解决
[oracle@standby dbs]$ rm -rf orapworcl
[oracle@primary dbs]$ scp orapworcl oracle@192.168.186.88:/u01/app/base/product/11.2.0/db_1/dbs/
oracle@192.168.186.88's password:
orapworcl 100% 1536 1.5KB/s 00:00
验证生产端:
SQL> select database_role from v$database;

DATABASE_ROLE

PRIMARY

SQL> alter system set log_archive_dest_state_2 = DEFER scope=both;

System altered.

SQL> alter system set log_archive_dest_state_2 = ENABLE scope=both;

System altered.

SQL> select max(sequence#) from v$archived_log;

MAX(SEQUENCE#)

20

SQL> select dest_name,status,error from v$archive_dest where dest_id=1 or dest_id=2;

DEST_NAME STATUS ERROR
---------
LOG_ARCHIVE_DEST_1 VALID
LOG_ARCHIVE_DEST_2 VALID

验证DG端:
SQL> select database_role from v$database;

DATABASE_ROLE

PHYSICAL STANDBY

SQL> select max(sequence#) from v$archived_log;

MAX(SEQUENCE#)

20

SQL> select process,pid,status from v$managed_standby;

PROCESS PID STATUS
---------
ARCH 2400 CONNECTED
ARCH 2402 CONNECTED
ARCH 2404 CONNECTED
ARCH 2406 CONNECTED
RFS 2611 IDLE
RFS 2613 IDLE
RFS 2615 IDLE

7 rows selected.
RFS进程正常,归档日志已经同步

转载于:https://my.oschina.net/u/3635497/blog/3072401

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值