dataguard故障ERROR 1017 ORA-16191

来源:互联网 发布:淘宝服装定制店怎么开 编辑:程序博客网 时间:2024/06/06 20:33

dataguard备库没有同步,查V$DATAGUARD_STATUS表发现确实报错了

select  *  from  V$DATAGUARD_STATUSorder by  TIMESTAMP  desc,error_code;



ls  /oradata/ZCDG/archivelog

发现最新的日志根本没有传送到备库上去


再看Alert,每隔1分钟报错错误信息

Error1017 received logging on to the standby

------------------------------------------------------------

Checkthat the primary and standby are using a password file

andremote_login_passwordfile is set to SHARED or EXCLUSIVE,

andthat the SYS password is same in the password files.

      returning error ORA-16191

很明确说明是密码文件的问题

 

我的主库sid=SXZC,备库sid=ZCDG

1.先在主库生成密码文件并备份到备库

$orapwdfile=$ORACLE_HOME/dbs/orapwZCDG password=Syszc*38

$scp $ORACLE_HOME/dbs/orapwZCDG   zcdg:$ORACLE_HOME/dbs/

重起备库,仍然报错!

 

2.又试了几次终于成功了,主库生成密码文件,以主库的SID命名,然后备份到备库后,再改名成备库的SID

$orapwdfile=$ORACLE_HOME/dbs/orapwSXZC password=Syszc*38

$scp $ORACLE_HOME/dbs/orapwSXZC   zcdg:$ORACLE_HOME/dbs/orapwZCDG

 

0 0
原创粉丝点击