ORA-00742 ORA-00312 恢复---惜分飞

有客户反馈,断电之后数据库启动报ORA-00742和ORA-00312,无法正常open
 

ORA-742-ORA-312


我们远程上去尝试open库结果也报同样错误

[oracle@oldhis oradata]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 10 09:40:03 2024

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> recover database;

Media recovery complete.

SQL> alter database open;

alter database open

*

ERROR at line 1:

ORA-00742: Log read detects lost write in thread %d sequence %d block %d

ORA-00312: online log 3 thread 1: '/oradata/shrdh/redo03.log'

SQL> select group#,status from v$log;

    GROUP# STATUS

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

         1 INACTIVE

         3 CURRENT

         2 INACTIVE

因为recover已经成功,但是依旧报ORA-742错误,尝试查询scn相关信息

SQL> set pages 10000

set numw 16

SELECT status,

checkpoint_change#,

checkpoint_time,last_change#,

count(*) ROW_NUM

FROM v$datafile

GROUP BY status, checkpoint_change#, checkpoint_time,last_change#

ORDER BY status, checkpoint_change#, checkpoint_time;

set numw 16

col CHECKPOINT_TIME for a40

set lines 150

set pages 1000

SELECT status,

to_char(checkpoint_time,'yyyy-mm-dd hh24:mi:ss') checkpoint_time,FUZZY,checkpoint_change#,

count(*) ROW_NUM

FROM v$datafile_header

GROUP BY status, checkpoint_change#, to_char(checkpoint_time,'yyyy-mm-dd hh24:mi:ss'),fuzzy

ORDER BY status, checkpoint_change#, checkpoint_time;

SQL> SQL>   2    3    4    5    6    7 

STATUS  CHECKPOINT_CHANGE# CHECKPOIN     LAST_CHANGE#          ROW_NUM

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

ONLINE          1279351848 26-MAR-24       1279351848               19

SYSTEM          1279351848 26-MAR-24       1279351848                1

SQL> SQL> SQL> SQL> SQL> SQL> SQL>   2    3    4    5    6 

STATUS  CHECKPOINT_TIME                          FUZ CHECKPOINT_CHANGE#          ROW_NUM

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

ONLINE  2024-03-26 00:05:45                      NO          1279351848               20

基于这样的情况,我们判断数据库直接open成功

SQL> recover database using backup controlfile;

ORA-00279: change 1279351848 generated at 03/26/2024 00:05:45 needed for thread 1

ORA-00289: suggestion : /oradata/arch/shrdh/shrdh_1_12984_974767526.arc

ORA-00280: change 1279351848 for thread 1 is in sequence #12984

Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

/oradata/shrdh/redo03.log

Log applied.

Media recovery complete.

SQL> alter database open resetlogs;

Database altered.

后面比较不幸,数据库报ORA-600 4194错误导致数据库异常

Wed Apr 10 09:43:08 2024

ALTER DATABASE RECOVER  database using backup controlfile 

Media Recovery Start

 started logmerger process

Parallel Media Recovery started with 4 slaves

ORA-279 signalled during: ALTER DATABASE RECOVER  database using backup controlfile  ...

Wed Apr 10 09:43:24 2024

ALTER DATABASE RECOVER    LOGFILE '/oradata/shrdh/redo03.log' 

Media Recovery Log /oradata/shrdh/redo03.log

Media Recovery Complete (shrdh)

Completed: ALTER DATABASE RECOVER    LOGFILE '/oradata/shrdh/redo03.log' 

alter database open resetlogs

RESETLOGS after complete recovery through change 1279351849

Clearing online redo logfile 1 /oradata/shrdh/redo01.log

Clearing online log 1 of thread 1 sequence number 12982

Clearing online redo logfile 1 complete

Clearing online redo logfile 2 /oradata/shrdh/redo02.log

Clearing online log 2 of thread 1 sequence number 12983

Clearing online redo logfile 2 complete

Clearing online redo logfile 3 /oradata/shrdh/redo03.log

Clearing online log 3 of thread 1 sequence number 12984

Clearing online redo logfile 3 complete

Resetting resetlogs activation ID 1820377766 (0x6c80c2a6)

Online log /oradata/shrdh/redo01.log: Thread 1 Group 1 was previously cleared

Online log /oradata/shrdh/redo02.log: Thread 1 Group 2 was previously cleared

Online log /oradata/shrdh/redo03.log: Thread 1 Group 3 was previously cleared

Wed Apr 10 09:43:34 2024

Setting recovery target incarnation to 2

Wed Apr 10 09:43:34 2024

Assigning activation ID 2011515185 (0x77e54931)

Thread 1 opened at log sequence 1

  Current log# 1 seq# 1 mem# 0: /oradata/shrdh/redo01.log

Successful open of redo thread 1

Wed Apr 10 09:43:34 2024

MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set

Wed Apr 10 09:43:34 2024

SMON: enabling cache recovery

[25089] Successfully onlined Undo Tablespace 2.

Undo initialization finished serial:0 start:1273646224 end:1273646494 diff:270 (2 seconds)

Dictionary check beginning

Dictionary check complete

Verifying file header compatibility for 11g tablespace encryption..

Verifying 11g file header compatibility for tablespace encryption completed

SMON: enabling tx recovery

Database Characterset is ZHS16GBK

No Resource Manager plan active

replication_dependency_tracking turned off (no async multimaster replication found)

Errors in file /u01/app/oracle/diag/rdbms/shrdh/shrdh/trace/shrdh_smon_21704.trc  (incident=84296):

ORA-00600: internal error code, arguments: [4194], [], [], [], [], [], [], [], [], [], [], []

Incident details in: /u01/app/oracle/diag/rdbms/shrdh/shrdh/incident/incdir_84296/shrdh_smon_21704_i84296.trc

Use ADRCI or Support Workbench to package the incident.

See Note 411.1 at My Oracle Support for error and packaging details.

Starting background process QMNC

Wed Apr 10 09:43:35 2024

QMNC started with pid=24, OS id=25340

LOGSTDBY: Validating controlfile with logical metadata

LOGSTDBY: Validation complete

Block recovery from logseq 1, block 61 to scn 1279351933

Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0

  Mem# 0: /oradata/shrdh/redo01.log

Block recovery stopped at EOT rba 1.99.16

Block recovery completed at rba 1.99.16, scn 0.1279351933

Block recovery from logseq 1, block 61 to scn 1279351919

Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0

  Mem# 0: /oradata/shrdh/redo01.log

Block recovery completed at rba 1.87.16, scn 0.1279351922

Errors in file /u01/app/oracle/diag/rdbms/shrdh/shrdh/trace/shrdh_smon_21704.trc:

ORA-01595: error freeing extent (2) of rollback segment (7))

ORA-00600: internal error code, arguments: [4194], [], [], [], [], [], [], [], [], [], [], []

Completed: alter database open resetlogs

Wed Apr 10 09:43:37 2024

Errors in file /u01/app/oracle/diag/rdbms/shrdh/shrdh/trace/shrdh_m000_25343.trc  (incident=84392):

ORA-00600: internal error code, arguments: [4194], [], [], [], [], [], [], [], [], [], [], []

Incident details in: /u01/app/oracle/diag/rdbms/shrdh/shrdh/incident/incdir_84392/shrdh_m000_25343_i84392.trc

Use ADRCI or Support Workbench to package the incident.

See Note 411.1 at My Oracle Support for error and packaging details.

Wed Apr 10 09:43:37 2024

Starting background process CJQ0

Wed Apr 10 09:43:37 2024

CJQ0 started with pid=29, OS id=25357

Starting background process SMCO

Wed Apr 10 09:43:37 2024

SMCO started with pid=30, OS id=25360

Wed Apr 10 09:43:38 2024

Flush retried for xcb 0x115b42d28, pmd 0x1148dea70

Block recovery from logseq 1, block 61 to scn 1279351933

Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0

  Mem# 0: /oradata/shrdh/redo01.log

Block recovery completed at rba 1.99.16, scn 0.1279351934

Errors in file /u01/app/oracle/diag/rdbms/shrdh/shrdh/trace/shrdh_pmon_21679.trc  (incident=84208):

ORA-00600: internal error code, arguments: [4194], [], [], [], [], [], [], [], [], [], [], []

Incident details in: /u01/app/oracle/diag/rdbms/shrdh/shrdh/incident/incdir_84208/shrdh_pmon_21679_i84208.trc

Use ADRCI or Support Workbench to package the incident.

See Note 411.1 at My Oracle Support for error and packaging details.

Errors in file /u01/app/oracle/diag/rdbms/shrdh/shrdh/trace/shrdh_pmon_21679.trc:

ORA-00600: internal error code, arguments: [4194], [], [], [], [], [], [], [], [], [], [], []

PMON (ospid: 21679): terminating the instance due to error 472

Wed Apr 10 09:43:47 2024

Instance terminated by PMON, pid = 21679

报错比较明显,对undo进行处理即可.

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/624496.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Yolo-world使用

1、安装 python pip install ultralytics 前往官网下载模型&#xff1a;https://docs.ultralytics.com/models/yolo-world/#key-features 我这里使用yolov8s-world.pt举例 最简单的使用示例 if __name__ __main__:model YOLO(model/yolov8s-world.pt)results model.pre…

Blender2.83 下载地址及安装教程

Blender是一款开源的3D计算机图形软件&#xff0c;广泛应用于动画制作、游戏开发、建模、渲染等领域。它提供了一套强大的工具和功能&#xff0c;让用户能够进行三维建模、动画制作和视觉效果的创作。 Blender支持多种文件格式的导入和导出&#xff0c;使用户能够与其他软件进…

JMeter控制器数据库获取一组数据后遍历输出

目录 1、测试计划中添加Mysql Jar包 2、添加线程组 3、添加 jdbc connection configuration 4、添加JDBC Request&#xff0c;从数据库中获取数据 5.获取数据列表&#xff0c;提取所有goodsName信息 6.通过添加控制器遍历一组数据 6.1 方式一&#xff1a;循环控制器方式 …

微信小程序订阅消息授权弹窗问题整理

文档 小程序订阅消息&#xff08;用户通过弹窗订阅&#xff09;开发指南 | 微信开放文档 1.报错10004 errCode: 10004errMsg: "requestSubscribeMessage:fail Invalid template id" 真机调试也不行 wx.requestSubscribeMessage({tmplIds: result,// 用户同意与否…

大数据平台搭建2024(二)

二&#xff1a;Hive安装 只在node01上操作 1 安装MySQL 8.0 最小化安装需要安装这个 yum install -y wget1-1 下载MySQL的yum源 wget http://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm检查是否安装成功 rpm -qpl mysql80-community-release-el7-7.n…

c++ 中文转拼音的封装, char 类型 不支持 中文 已解决

在日常业务中&#xff0c;需要进行中文转拼音的检索。已便实现对应的 模糊搜索。 使用方法 std::string res "我是中国人";char* result new char[res.length() 1];for (int i 0; i < res.length(); i){result[i] res[i];}result[res.length()] \0;std::str…

(六) 盘古UI,深度封装flexbox,轻松实现各种tag类型,让快速开发更自由!

(六) 盘古UI,深度封装flexbox,PanguFlexBoxView轻松实现各种tag类型,让快速开发更自由! 盘古UI,较为全面的自定义UI框架,帮助你绝对的快速开发!(长期维护中) demo地址,点击查看github 盘古PanguFlexBoxView 可以实现各种tag类型的UI需求,包含颜色和点击选中等! 1, 样例展示…

普通人如何零基础进入AIGC大模型人形机器人赛道,自学攻略,应用转化项目案例

要进入人形机器人赛道&#xff0c;普通人需要了解和掌握一系列的技能和知识&#xff0c;包括机器人设计、编程、电子工程、机械工程以及团队合作和项目管理。以下是一个详细的指南&#xff0c;帮助你从零基础开始&#xff0c;逐步进入这个充满挑战和机遇的领域。 基础教育和技能…

4月16号总结

java学习 网络编程 1.网络分层 网络分层是将网络通信划分为不同的逻辑层次&#xff0c;每一层负责特定的功能&#xff0c;从而实现网络通信的模块化和标准化。常用的网络分层模型包括OSI&#xff08;开放系统互联&#xff09;模型和TCP/IP模型。 特点和作用&#xff1a; 分…

网络安全学习路线-超详细

零基础小白&#xff0c;到就业&#xff01;入门到入土的网安学习路线&#xff01; 在各大平台搜的网安学习路线都太粗略了。。。。看不下去了&#xff01; 建议的学习顺序&#xff1a; 一、网络安全学习普法&#xff08;心里有个数&#xff0c;要进去坐几年&#xff01;&#x…

浅谈Java的synchronized 锁以及synchronized 的锁升级

在Java中&#xff0c;synchronized关键字用于实现线程间的同步&#xff0c;确保同一时刻只有一个线程能够访问被同步的代码块或方法。当一个线程获得synchronized锁定后&#xff0c;其他试图访问同一锁的线程将被阻塞&#xff0c;直到锁被释放。 synchronized锁有两种基本形式…

计算机系列之操作系统的系统

2、大话操作系统的启动 当按下开机键时&#xff0c;BIOS 就会开始执行 ​ BIOS 就是放在主板上 ROM 里面的一段程序。 ​ ROM Read Only Memory&#xff08;只能读取的内存&#xff09; ​ 所以 BIOS 在出厂的时候就可以直接写死在 ROM 里面。 ​ 每次开机的时候&#xff…