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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[Oracle] DG error ORA-16191错误

[复制链接]
跳转到指定楼层
楼主
发表于 2019-7-5 14:08:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
告警日志出现大量的:
[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进程正常,归档日志已经同步




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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-21 03:27 , Processed in 0.121663 second(s), 20 queries .

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

© 2001-2020

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