阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

Oracle DataGuard 报密码文件错误排查

124次阅读
没有评论

共计 1023 个字符,预计需要花费 3 分钟才能阅读完成。

环境主库 rac 11.2 备库单机 11.2:

现象:主库双节点其中一个日志节点文件可以传到备库,另外一个节点报密码文件错误:
 
 2019-04-20 09:33:10.223000 +08:00
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
————————————————————
PING[ARC2]: Heartbeat failed to connect to standby ‘app’. Error is 16191.
2019-04-02 09:35:51.412000 +08:00

查看主库密码是否区分大小写:
SQL> show parameter sec_case_sensitive_logon

NAME                    TYPE    VALUE
———————————— ———– ——————————
sec_case_sensitive_logon        boolean    TRUE

因此手动重建密码文件,注意指定 ignorecase=y 忽略密码验证时区分大小写:
orapwd file=orapsid password=password#123 entries=10 force=y ignorecase=y

重建后同步正常,密码文件错误消失,如果不指定 ignorecase=y,任然报同样的错误。

Oracle 11g 默认情况下,密码文件如果不指定 ignorecase 的话,会区分大小写,如果指定 ignorecase=y,则 Oracle 会忽略密码验证时密码的大小写。

更多 Oracle 相关信息见 Oracle 专题页面 https://www.linuxidc.com/topicnews.aspx?tid=12

 

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-22发表,共计1023字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中