签到成功

知道了

CNDBA社区CNDBA社区

DG一次故障记录--ORA-16191 ORA-01017 and ORA-16000 shipping the logs to Standby database

2018-07-05 15:37 2699 0 原创 Oracle 故障处理
作者: Expect-乐

问题描述

主库日志:http://www.cndba.cn/Expect-le/article/2881http://www.cndba.cn/Expect-le/article/2881http://www.cndba.cn/Expect-le/article/2881

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
------------------------------------------------------------


从日志上看,本以为是一个很简单的问题,但是检查了配置参数,重建了密码。问题依旧存在,这时只能求助MOS文档:
ORA-16191 ORA-01017 and ORA-16000 shipping the logs to Standby database (文档 ID 2129339.1)
文章中提到引起该问题可能的原因是备库中一个隐藏参数“_system_trig_enabled”引起的,该参数控制了备库登录是否使用触发器,默认:TRUE。

解决方法

在备库上修改隐藏参数为FALSEhttp://www.cndba.cn/Expect-le/article/2881

http://www.cndba.cn/Expect-le/article/2881

查看参数值:http://www.cndba.cn/Expect-le/article/2881

SELECT I.KSPPINM NAME,
       I.KSPPDESC DESCRIPTION,
       CV.KSPPSTVL VALUE,
       CV.KSPPSTDF ISDEFAULT
  FROM SYS.X$KSPPI I, SYS.X$KSPPCV CV
WHERE I.INST_ID = USERENV('Instance')
   AND CV.INST_ID = USERENV('Instance')
   AND I.INDX = CV.INDX
   AND I.KSPPINM LIKE '_system_trig_enabled'
ORDER BY REPLACE(I.KSPPINM, '_', '');
NAME                   DESCRIPTION              VALUE     ISDEFAULT
------------------------------ ------------------------------ ---------- ---------
_system_trig_enabled           are system triggers enabled    TRUE     TRUE

修改参数:

ALTER SYSTEM SET "_system_trig_enabled"=FALSE;

验证

主库
http://www.cndba.cn/Expect-le/article/2881

从库:
日志

http://www.cndba.cn/Expect-le/article/2881
http://www.cndba.cn/Expect-le/article/2881http://www.cndba.cn/Expect-le/article/2881

SQL> select sequence,applied from (select sequence# sequence,applied from v$archived_log order by sequence# desc) where rownum <=10;
  SEQUENCE APPLIED
---------- ---------
       23413 YES
       23412 YES
       23411 YES
       23410 YES
       23409 YES
       23408 YES
       23407 YES
       23406 YES
       23405 YES
       23404 YES
10 rows selected.

版权声明:本文为博主原创文章,未经博主允许不得转载。

ORA-16191 ORA-01017 ORA-16000

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
Expect-乐

Expect-乐

关注

Without the continuous bitter cold, there can be no fragrant plum blossom

  • 336
    原创
  • 6
    翻译
  • 100
    转载
  • 41
    评论
  • 访问:1572055次
  • 积分:1957
  • 等级:核心会员
  • 排名:第4名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ