資料庫壞塊觸發ORA-00600 [13013] [5001] [423] 從而導致資料庫實例崩潰

来源:https://www.cnblogs.com/Roobbin/archive/2023/02/09/17104708.html
-Advertisement-
Play Games

環境概述 操作系統:WIN2019 ORACLE版本:19.17.0.0.0 故障現象 客戶反饋資料庫經常用著用著就連不上,通過查看alert日誌發現是資料庫實例崩潰。具體信息如下 2023-02-09T03:04:36.619773+08:00 Errors in file D:\APP\ADMI ...


環境概述

操作系統:WIN2019
ORACLE版本:19.17.0.0.0

故障現象

客戶反饋資料庫經常用著用著就連不上,通過查看alert日誌發現是資料庫實例崩潰。具體信息如下

2023-02-09T03:04:36.619773+08:00
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\his\his\trace\his_smon_9116.trc  (incident=114022):
ORA-00600: internal error code, arguments: [13013], [5001], [423], [12633689], [5], [12633689], [17], [], [], [], [], []
Incident details in: D:\APP\ADMINISTRATOR\diag\rdbms\his\his\incident\incdir_114022\his_smon_9116_i114022.trc
2023-02-09T03:04:37.994869+08:00
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
2023-02-09T03:04:38.010412+08:00
Non-fatal internal error happened while SMON was doing logging scn->time mapping.
SMON encountered 10 out of maximum 100 non-fatal internal errors.
2023-02-09T03:04:38.775992+08:00
Dumping diagnostic data in directory=[cdmp_20230209030438], requested by (instance=1, osid=9116 (SMON)), summary=[incident=114022].
2023-02-09T03:09:39.269309+08:00
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\his\his\trace\his_smon_9116.trc  (incident=114023):
ORA-00600: internal error code, arguments: [13013], [5001], [423], [12633689], [5], [12633689], [17], [], [], [], [], []
Incident details in: D:\APP\ADMINISTRATOR\diag\rdbms\his\his\incident\incdir_114023\his_smon_9116_i114023.trc
2023-02-09T03:09:40.675580+08:00
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
2023-02-09T03:09:40.691188+08:00
Non-fatal internal error happened while SMON was doing logging scn->time mapping.
SMON encountered 11 out of maximum 100 non-fatal internal errors.
2023-02-09T03:09:41.347488+08:00
Dumping diagnostic data in directory=[cdmp_20230209030941], requested by (instance=1, osid=9116 (SMON)), summary=[incident=114023].
2023-02-09T03:14:22.329332+08:00
PL/SQL package SYS.DBMS_BACKUP_RESTORE version  is not current
PL/SQL package SYS.DBMS_RCVMAN version 19.03.00.00 is too old
2023-02-09T03:14:41.925792+08:00
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\his\his\trace\his_smon_9116.trc  (incident=114024):
ORA-00600: internal error code, arguments: [13013], [5001], [423], [12633689], [5], [12633689], [17], [], [], [], [], []
Incident details in: D:\APP\ADMINISTRATOR\diag\rdbms\his\his\incident\incdir_114024\his_smon_9116_i114024.trc
2023-02-09T03:14:43.316412+08:00
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
2023-02-09T03:14:43.332041+08:00
Non-fatal internal error happened while SMON was doing logging scn->time mapping.
SMON encountered 12 out of maximum 100 non-fatal internal errors.
2023-02-09T03:14:43.910201+08:00
Dumping diagnostic data in directory=[cdmp_20230209031443], requested by (instance=1, osid=9116 (SMON)), summary=[incident=114024].
2023-02-09T03:19:44.527920+08:00
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\his\his\trace\his_smon_9116.trc  (incident=114025):
ORA-00600: internal error code, arguments: [13013], [5001], [423], [12633689], [5], [12633689], [17], [], [], [], [], []
Incident details in: D:\APP\ADMINISTRATOR\diag\rdbms\his\his\incident\incdir_114025\his_smon_9116_i114025.trc
2023-02-09T03:20:05.624807+08:00
Warning: VKTM detected a forward time drift. 
Time drifts can result in unexpected behavior such as time-outs. 
Please see the VKTM trace file for more details:
D:\APP\ADMINISTRATOR\diag\rdbms\his\his\trace\his_vktm_3748.trc
2023-02-09T03:20:08.665424+08:00
PMON (ospid: 1716): terminating the instance due to ORA error 474
2023-02-09T03:20:08.712297+08:00
Cause - 'Instance is being terminated due to fatal process death (pid: 20, ospid: 9116, SMON)'
2023-02-09T03:20:08.743541+08:00
System state dump requested by (instance=1, osid=1716 (PMON)), summary=[abnormal instance termination].
System State dumped to trace file D:\APP\ADMINISTRATOR\diag\rdbms\his\his\trace\his_diag_808.trc
2023-02-09T03:20:25.485187+08:00
Instance terminated by PMON, pid = 1716

通過上面日誌可以看出來423這個對象存在問題,導致smon意外終止

參數解釋

ORA-00600: internal error code, arguments: [13013], [5001], [423], [12633689], [5], [12633689], [17], [], [], [], [], []

通過ORA-600報錯參數收集對象信息,  ORA-600 [13013]參數說明如下:
-----------------------------------------------------------------------------------------
ORA-600 [13013] [a] [b] [c] [d] [e] [f]

Arg [a] Passcount
Arg [b] Data Object number
Arg [c] Tablespace Relative DBA of block containing the row to be updated
Arg [d] Row Slot number
Arg [e] Relative DBA of block being updated (should be same as [c])
Arg [f] Code
------------------------------------------------------------------------------------------

Arg[b]對應的是資料庫對象ID

解決方法

#定位問題
SQL> select object_name,object_type,owner from dba_objects where data_object_id="423";
OBJECT_NAME        OBJECT_TYPE                            OWNER
---------------  -------------------------------------- ---------------
SMON_SCN_TO_TIME_AUX   CLUSTER                              SYS
#使用validate 檢驗表關聯對象的可用性
SQL> Analyze cluster sys.smon_scn_to_time_aux validate structure;

Table analyzed.

SQL> Analyze table sys.smon_scn_time validate structure online;

Table analyzed.

SQL> Analyze table sys.smon_scn_time validate structure cascade online;
Analyze table sys.smon_scn_time validate structure cascade online
*
ERROR at line 1:
ORA-01499: table/index cross reference failure - see trace file
#解決辦法
SQL> drop index SYS.SMON_SCN_TIME_TIM_IDX;
SQL> drop index SYS.SMON_SCN_TIME_SCN_IDX;
SQL> CREATE UNIQUE INDEX SYS.SMON_SCN_TIME_TIM_IDX ON SYS.SMON_SCN_TIME(TIME_MP) tablespace sysaux;
SQL> CREATE UNIQUE INDEX SYS.SMON_SCN_TIME_SCN_IDX ON SYS.SMON_SCN_TIME(SCN) tablespace sysaux;

#再次驗證,對象已恢復正常。
SQL>  Analyze table SYS.SMON_SCN_TIME validate structure cascade online ; 

Table analyzed.

通過查看報錯之前的日誌可以發現,資料庫3號文件存在壞塊

2023-02-09T03:00:15.435555+08:00
Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\his\his\trace\his_m003_6096.trc  (incident=114030):
ORA-01578: ORACLE data block corrupted (file # ORA-01578: ORACLE data block corrupted (file # 3, block # 183896)
ORA-01110: data file 3: 'D:\APP\ADMINISTRATOR\ORADATA\HIS\DATAFILE\O1_MF_SYSAUX_KPMDGX61_.DBF'
, block # )
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 D:\APP\ADMINISTRATOR\diag\rdbms\his\his\trace\his_m003_6096.trc  (incident=114031):
ORA-01578: ORACLE data block corrupted (file # 3, block # 82310)
ORA-01110: data file 3: 'D:\APP\ADMINISTRATOR\ORADATA\HIS\DATAFILE\O1_MF_SYSAUX_KPMDGX61_.DBF'

檢測數據文件是否存在壞塊

dbv

dbv file=D:\APP\ADMINISTRATOR\ORADATA\HIS\DATAFILE\O1_MF_SYSAUX_KPMDGX61_.DBF

DBVERIFY: Release 19.0.0.0.0 - Production on 星期四 2月 9 10:52:03 2023

Copyright (c) 1982, 2022, Oracle and/or its affiliates.  All rights reserved.

DBVERIFY - 開始驗證: FILE = D:\APP\ADMINISTRATOR\ORADATA\HIS\DATAFILE\O1_MF_SYSAUX_KPMDGX61_.DBF
頁 65861 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c10145 (file 3, block 65861)
Fractured block found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x00c10145
 last change scn: 0x0000.0000.00dfdef6 seq: 0x1 flg: 0x06
 spare3: 0x0
 consistency value in tail: 0xb9c00601
 check value in block header: 0x95af
 computed block checksum: 0x673673760 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c12020 (file 3, block 73760)
Fractured block found during dbv:
Data in bad block:
 type: 32 format: 2 rdba: 0x00c12020
 last change scn: 0x0000.0000.00e8f1c5 seq: 0x1 flg: 0x04
 spare3: 0x0
 consistency value in tail: 0xda9e2015
 check value in block header: 0xc548
 computed block checksum: 0x2b4f76384 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c12a60 (file 3, block 76384)
Fractured block found during dbv:
Data in bad block:
 type: 32 format: 2 rdba: 0x00c12a60
 last change scn: 0x0000.0000.00dfdb00 seq: 0x7 flg: 0x04
 spare3: 0x0
 consistency value in tail: 0x8bb82001
 check value in block header: 0x376b
 computed block checksum: 0x50be82310 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c14186 (file 3, block 82310)
Fractured block found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x00c14186
 last change scn: 0x0000.0000.00e8183b seq: 0x1 flg: 0x06
 spare3: 0x0
 consistency value in tail: 0xbf200601
 check value in block header: 0x1f15
 computed block checksum: 0xa71b82318 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c1418e (file 3, block 82318)
Fractured block found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x00c1418e
 last change scn: 0x0000.0000.00de0ca8 seq: 0x1 flg: 0x06
 spare3: 0x0
 consistency value in tail: 0xa4f40601
 check value in block header: 0xcdc7
 computed block checksum: 0xa85c82342 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c141a6 (file 3, block 82342)
Fractured block found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x00c141a6
 last change scn: 0x0000.0000.00e866f1 seq: 0x1 flg: 0x06
 spare3: 0x0
 consistency value in tail: 0x30f60601
 check value in block header: 0x37b9
 computed block checksum: 0x30482350 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c141ae (file 3, block 82350)
Fractured block found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x00c141ae
 last change scn: 0x0000.0000.00dd30f6 seq: 0x1 flg: 0x06
 spare3: 0x0
 consistency value in tail: 0x776f0601
 check value in block header: 0xfbca
 computed block checksum: 0x479982406 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c141e6 (file 3, block 82406)
Fractured block found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x00c141e6
 last change scn: 0x0000.0000.00e6bb63 seq: 0x1 flg: 0x06
 spare3: 0x0
 consistency value in tail: 0x183b0601
 check value in block header: 0x42c
 computed block checksum: 0xcf3482414 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c141ee (file 3, block 82414)
Fractured block found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x00c141ee
 last change scn: 0x0000.0000.00e8183b seq: 0x1 flg: 0x06
 spare3: 0x0
 consistency value in tail: 0xbb630601
 check value in block header: 0x3dbf
 computed block checksum: 0xa03494625 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c171a1 (file 3, block 94625)
Fractured block found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x00c171a1
 last change scn: 0x0000.0000.00e78ae0 seq: 0x1 flg: 0x06
 spare3: 0x0
 consistency value in tail: 0x17860601
 check value in block header: 0x981f
 computed block checksum: 0x9d66105985 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c19e01 (file 3, block 105985)
Fractured block found during dbv:
Data in bad block:
 type: 32 format: 2 rdba: 0x00c19e01
 last change scn: 0x0000.0000.00e85de4 seq: 0x1 flg: 0x04
 spare3: 0x0
 consistency value in tail: 0xe79d2001
 check value in block header: 0x18be
 computed block checksum: 0xba79107649 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c1a481 (file 3, block 107649)
Fractured block found during dbv:
Data in bad block:
 type: 32 format: 2 rdba: 0x00c1a481
 last change scn: 0x0000.0000.00dfdf39 seq: 0x2 flg: 0x04
 spare3: 0x0
 consistency value in tail: 0x7b882001
 check value in block header: 0x407
 computed block checksum: 0xa4b2107729 流入 - 很可能是介質損壞
Corrupt block relative dba: 0x00c1a4d1 (file 3, block 107729)
Fractured block found during dbv:
Data in bad block:
 type: 
              
您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • ​ 一、前言 萬物皆有源頭,大家學習單片機的源頭操作就是通過GPIO口點燈,GPIO作為STM32最基礎的外設,也是大家最先接觸的外設。當然,看似基礎的GPIO,不僅僅是簡單的設置好IO口,讓燈亮起就一了百了,瞭解清楚GPIO的使用特性,根本原理、運行機制對我們在涉及到GPIO的相關設計操作上會應用 ...
  • 問題描述 啟動腳本第一行提示line 1: #!/bin/sh: No such file or directory 看著都難受,有強迫症必須修複它 log [weblogic@hz-dzswj-sc-x sh]$ ./start_bszm-web.sh ./start_bszm-web.sh: l ...
  • FCoE FCoE是一種融合網路技術,其目的是將FC幀封裝到乙太網幀中,實現乙太網鏈路與光纖鏈路通信的功能。 SAN一般指存儲區域網路,FC SAN 有光纖組網,IP SAN由乙太網電纜組網。 LAN一般指區域網,乙太網組網。 通常情況下業務前端面向普通用戶都是採用乙太網提供服務,在業務的後端由於龐 ...
  • 1.美國FCC認證新要求 繼2022年11月25日FCC發佈了FCC 22-84法規禁止授權被認為對美國國家安全構成威脅的通信和視頻監控設備後,2023年1月24日FCC又發佈了KDB 986446 D01 Covered Equipment v01 guidance,明確要求TCB不得向被製裁清單 ...
  • 作者:vivo 互聯網運維團隊- Hou Dengfeng 本文主要介紹使用shell實現一個簡易的Docker。 一、目的 在初接觸Docker的時候,我們必須要瞭解的幾個概念就是Cgroup、Namespace、RootFs,如果本身對虛擬化的發展沒有深入的瞭解,那麼很難對這幾個概念有深入的理解 ...
  • MySQL基礎查詢練習 前提準備 使用ddl語句創建資料庫 student表格: create table student( id int PRIMARY KEY COMMENT 'id主鍵', `name` varchar(20) COMMENT '名稱', gender TINYINT(2) C ...
  • 表: 查詢語句 -- 查詢姓“猴”的學生名單 SELECT * from student WHERE 姓名 like "猴%"; -- 查詢姓“孟”老師的個數 SELECT COUNT(教師姓名) FROM teacher WHERE 教師姓名 LIKE "孟%"; -- 查詢課程編號為“0002” ...
  • 一:背景 1. 講故事 在面試中我相信有很多朋友會被問到 truncate 和 delete 有什麼區別 ,這是一個很有意思的話題,本篇我就試著來回答一下,如果下次大家遇到這類問題,我的答案應該可以幫你成功度過吧。 二:區別詳解 1. 思考 從巨集觀角度來說, delete 是 DML 語句, tru ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...