ITPub博客

首页 > 数据库 > Oracle > 前两天做主备切换的时候出现ORA-16191

前两天做主备切换的时候出现ORA-16191

原创 Oracle 作者:记录每一次错误 时间:2018-12-26 14:31:31 0 删除 编辑

环境是MAA架构,主库是RAC,备库是RAC,做主备切换,主备切换成功后在在备库的alert日志中出现发现新主库二节点的的archivelog能传输至备库,新主库的一节点的archivelog不能传输备库,同时在新的主库一节点的alert告警日志中出现以下报错:

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 'yang1'. Error is 16191.

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用户的密码没有改,看很多朋友发的要把新主库的密码文件传输至备库一份,这也是一种解决思路。

说一下我当时的解决过程

首先进到新的主库的$ORACLE_HOME/dbs下看密码的文件时候发现

数据库的密码文件权限不对,图中属于root用户,root组的密码文件就是当时新的主库密码把密码文件的权限修改完成以后(密码文件应该属于oracle用户和oisntall组),在备库上重新应用了一下日志,发现新的主库的archivelog可以传输至备库。



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

上一篇: ORACLE RAC clusterware
请登录后发表评论 登录
全部评论
性格开朗,有较强的学习能力,对oracle数据库的体系结构,搭建RAC,timesten,goldengate,分布式数据库,dataguard,系统调优有较深入的了解, 尤其是oracle优化,深入学习的主机命令,对数据库的优化,SQL语句的优化有深入的认识,目前正在shell脚本,mysql,以后会有计划学习大数据和python。

注册时间:2018-07-23

  • 博文量
    200
  • 访问量
    475047