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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

12c R2 RAC环境打开备库提示ORA-10458

[复制链接]
跳转到指定楼层
楼主
发表于 2017-8-4 17:46:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
12c R2 RAC环境打开备库报错
打开备库报错
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/u01/app/oracle/oradata/sztech/datafile/system01.dbf'

查看alter日志
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
------------------------------------------------------------
FAL[client, ARC2]: Error 16191 connecting to SZTECH for fetching gap sequence
2017-08-04T17:08:44.850713+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
------------------------------------------------------------


主库查询v$archive_dest
SQL> select dest_name,status,error from v$archive_dest

DEST_NAME                      STATUS             ERROR
------------------------------ ------------------ -----------------------------------------------------------------
LOG_ARCHIVE_DEST_1             VALID
LOG_ARCHIVE_DEST_2             ERROR              ORA-01033: ORACLE initialization or shutdown in progress



判断是备库的密码文件不对,在主库用sysdba的身份连接备库失败
[oracle@rac01 oracle]$ sqlplus sys/oracle@sztechdg as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Fri Aug 4 17:00:32 2017

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied


Enter user-name:


解决办法:拷贝主库的密码文件至备库,密码文件的命名方式为orapwSID,注意12c的密码文件是放在ASM磁盘上的。在grid用户下使用cp命令拷贝到本地

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-28 16:20 , Processed in 0.111751 second(s), 20 queries .

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

© 2001-2020

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