首页 > 数据库 >备库open数据库时报错ORA-10458、ORA-16191

备库open数据库时报错ORA-10458、ORA-16191

时间:2023-02-02 21:33:04浏览次数:50  
标签:备库 database leo orcl151 oracle dbs 10458 ORA

问题描述:备库open数据库时报错ORA-10458、ORA-16191,如下所示:
系统:centos 7.9
数据库:oracle 11.2.0.4
主机名:主库leo-oel150 +备库leo-oel151
1、异常重现
SYS@orcl151> alter database open;
alter database open
*
ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01152: file 4 was not restored from a sufficiently old backup
ORA-01110: data file 4: '/u01/app/oracle/oradata/orcl151/users01.dbf'

告警日志:
2023-02-02 17:17:29.041000 +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
------------------------------------------------------------
FAL[client, ARC3]: Error 16191 connecting to ORCL150 for fetching gap sequence
2023-02-02 17:18:28.011000 +08:00
Standby crash recovery failed to bring standby database to a consistent
point because needed redo hasn't arrived yet.
MRP: Wait timeout: thread 1 sequence# 0
Standby Crash Recovery aborted due to error 16016.
Errors in file /u01/app/oracle/diag/rdbms/orcl151/orcl151/trace/orcl151_ora_24425.trc:
ORA-16016: archived log for thread 1 sequence# 28 unavailable
Recovery interrupted!
Completed Standby Crash Recovery.
2、问题分析
根据trace日志报错ORA-16191,想起此前在主库对sys密码进行过修改,虽然后面有将其改回原密码,不过初步判断该异常跟此变动有关系.
3、解决过程
--主库操作
[oracle@leo-oel150 dbs]$ pwd
/u01/app/oracle/product/11.2.0/db_1/dbs
[oracle@leo-oel150 dbs]$ scp orapworcl150 [email protected]:/u01/app/oracle/product/11.2.0/db_1/dbs
[email protected]'s password:
orapworcl150 100% 1536 930.2KB/s 00:00
--备库操作
[oracle@leo-oel151 dbs]$ pwd
/u01/app/oracle/product/11.2.0/db_1/dbs
[oracle@leo-oel151 dbs]$ mv orapworcl151 orapworcl151bak
[oracle@leo-oel151 dbs]$ mv orapworcl150 orapworcl151
[oracle@leo-oel151 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Thu Feb 2 20:27:34 2023

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

Connected to an idle instance.

SYS@orcl151> startup mount;
ORACLE instance started.

Total System Global Area 1586708480 bytes
Fixed Size 2253624 bytes
Variable Size 989859016 bytes
Database Buffers 587202560 bytes
Redo Buffers 7393280 bytes
Database mounted.
SYS@orcl151> alter database recover managed standby database using current logfile disconnect from session;

Database altered.

SYS@orcl151> alter database recover managed standby database cancel;

Database altered.

SYS@orcl151> alter database open;

Database altered.

SYS@orcl151> alter database recover managed standby database using current logfile disconnect from session;

Database altered.

说明:备库成功open.

标签:备库,database,leo,orcl151,oracle,dbs,10458,ORA
From: https://blog.51cto.com/u_12991611/6033871

相关文章

  • Oracle查询
    --恢复表FLASHBACKTABLE"Student"TOBEFOREDROP;FLASHBACKTABLE"Grade"TOBEFOREDROP;--给字段起别名select"GradeID"as年纪编号,"GradeIdName"as"年纪名称"......
  • Oracle增删改
    --相表中插入一条数据INSERTINTO"Grade"("GradeID","GradeIdName")values(1,'20级中职');--如果按序插入,可以省略字段列表INSERTINTO"Grade"values(2,'19级中职');--插......
  • Oracle系统常见进程有哪些,作用是什么?
    转至:https://vip.kingdee.com/article/336895665106415104?isKnowledge=2&productLineId=8Oracle系统常见进程如下: 五个必须的ORACLE后台进程SMON、PMON、DBWn、CKPT......
  • gp执行存储过程报错could not temporarily connect to one or more segments
    收到业务侧反馈有一个存储过程无法执行在启动一分钟左右,会报错。如图所示报错信息couldnottemporarilyconnecttooneormoresegments翻译过来是“暂时无法连接到......
  • Oracle特定属性(列)去除重复数据
    Oracle根据特定属性(列)去除重复数据1、distinct关键字的用法:distinct关键字后面的字段组合去重distinct必须selectdistinctidfromtest结果;根据id去重selectdis......
  • Oracle约束、注释、序列
    一、添加约束的语法:altertable表名addconstraint约束名约束类型约束说明1、添加主键:1.1、添加单一主键altertable表名addconstraintpk_***primarykey(字......
  • 亿佰特SX1280的lora模块关于WIFI干扰优势解析
    SX1280的LORA模式在关于WIFI干扰的情况下相交于传统调制方式具有极大的优势。与用于共存的传统调制技术相比,LoRa物理层的使用为我们提供了一些潜在的额外性能好处,并对带内和......
  • Oracle 临时表
    --会话级临时表是指临时表的数据只在会话生命周期中存在,当用户退出会话的时候,Oracle自动清除临时表中的数据createglobaltemporarytabletmp_Preserve_student(stu_i......
  • Oracle 函数listagg
    --可以实现将多列记录聚合为一列记录,实现数据的压缩--基本语法:listagg(xxx,xxx)withingroup(orderbyxxx)--selectid,name,sex,scorefromstudentorderbyid......
  • oracle查看表是否被锁
    原文地址:https://www.cnblogs.com/liuzhenguo/p/12857875.html转自https://blog.csdn.net/wangchuanmei/article/details/80017108Oracle数据库操作中,我们有时会用到锁表......