标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-00742 ORA-01110 ORA-01555 ORA-01578 ORA-01595 ORA-08103 ORA-600 2131 ORA-600 2662 ORA-600 3020 ORA-600 4000 ORA-600 4137 ORA-600 4193 ORA-600 4194 ORA-600 16703 ORA-600 kcbzib_kcrsds_1 ORA-600 KCLCHKBLK_4 ORA-15042 ORA-15196 ORACLE 12C oracle dul ORACLE PATCH Oracle Recovery Tools oracle加密恢复 oracle勒索 oracle勒索恢复 oracle异常恢复 Oracle 恢复 ORACLE恢复 ORACLE数据库恢复 oracle 比特币 OSD-04016 YOUR FILES ARE ENCRYPTED 勒索恢复 比特币加密文章分类
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (103)
- 数据库 (1,763)
- DB2 (22)
- MySQL (76)
- Oracle (1,605)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (166)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (8)
- Oracle ASM (69)
- Oracle Bug (8)
- Oracle RAC (54)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (588)
- Oracle安装升级 (97)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (86)
- PostgreSQL (30)
- pdu工具 (6)
- PostgreSQL恢复 (9)
- SQL Server (32)
- SQL Server恢复 (13)
- TimesTen (7)
- 达梦数据库 (3)
- 达梦恢复 (1)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (39)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (22)
-
最近发表
- .sstop勒索加密数据库恢复
- 解决一次硬件恢复之后数据文件0kb的故障恢复case
- Error in invoking target ‘libasmclntsh19.ohso libasmperl19.ohso client_sharedlib’问题处理
- ORA-01171: datafile N going offline due to error advancing checkpoint
- linux环境oracle数据库被文件系统勒索加密为.babyk扩展名溯源
- ORA-600 ksvworkmsgalloc: bad reaper
- ORA-600 krccfl_chunk故障处理
- Oracle Recovery Tools恢复案例总结—202505
- ORA-600 kddummy_blkchk 数据库循环重启
- 记录一次asm disk加入到vg通过恢复直接open库的案例
- CHECKDB 发现了 N 个分配错误和 M 个一致性错误
- 达梦数据库dm.ctl文件异常恢复
- Oracle Recovery Tools修复ORA-00742、ORA-600 ktbair2: illegal inheritance故障
- 可能是 tempdb 空间用尽或某个系统表不一致故障处理
- 11.2.0.4库中遇到ORA-600 kcratr_nab_less_than_odr报错
- [MY-013183] [InnoDB] Assertion failure故障处理
- Oracle 19c 202504补丁(RUs+OJVM)-19.27
- Oracle Recovery Tools修复ORA-600 6101/kdxlin:psno out of range故障
- pdu完美支持金仓数据库恢复(KingbaseES)
- 虚拟机故障引起ORA-00310 ORA-00334故障处理
分类目录归档:数据库
断电引起的ORA-08102: 未找到索引关键字, 对象号 39故障处理
最近有客户在虚拟化平台运行oracle,由于机房掉电,导致oracle数据库无法正常启动,通过第三方恢复,oracle被强制拉起,但是无法进行ddl操作,比如创建表报ORA-08102: 未找到索引关键字, 对象号 39, 文件 1, 块 122448 (2) 错误
通过obj#确认具体对象为i_obj#(也就是obj$对象上的一个index)

由于这类对象属于数据库的底层核心对象,无法直接rebulid他们,根据以往经验,可以通过bbed对其进行修复,或者参考类似文章进行重建:
分享I_OBJ4 ORA-8102故障恢复案例
使用bbed 修复I_OBJ4 index 报ORA-8102错误
通过bbed修改obj$中dataobj$重现I_OBJ4索引报ORA-08102错误
bootstrap$核心index(I_OBJ1,I_USER1,I_FILE#_BLOCK#,I_IND1,I_TS#,I_CDEF1等)异常恢复—ORA-00701错误解决
这个问题解决之后,该客户还有另外一个问题需要解决(不然数据库运行一段时间之后就会crash)
Wed Dec 18 09:13:03 2024 Errors in file E:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\trace\orcl_smon_2536.trc (incident=1105672): ORA-00600: 内部错误代码, 参数: [13013], [5001], [268], [8459081], [1], [8459081], [3], [], [], [], [], [] Incident details in: E:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\incident\incdir_1105672\orcl_smon_2536_i1105672.trc Use ADRCI or Support Workbench to package the incident. See Note 411.1 at My Oracle Support for error and packaging details. Non-fatal internal error happenned while SMON was doing logging scn->time mapping. SMON encountered 1 out of maximum 100 non-fatal internal errors.
这个问题本质就是SMON_SCN_TIME表的异常导致(一般13013是由于表和index不一致导致),对于这类问题处理,参考:
关于SMON_SCN_TIME若干问题说明
处理完上述两个明显故障之后,然后使用expdp不落地方式把客户数据迁移到新库,完成本次恢复任务
ORA-00227: corrupt block detected in control file
由于服务器断电,导致oracle数据库无法正常启动,recover报ORA-00353 ORA-00312错
SQL> recover datafile 1; ORA-00283: recovery session canceled due to errors ORA-00368: checksum error in redo log block ORA-00353: log corruption near block 8 change 237896529 time 12/03/2024 22:03:32 ORA-00312: online log 1 thread 1: 'E:\ORADATA\xifenfei\REDO01.LOG'
报错提示比较明显,是由于oracle恢复需要的redo损坏,导致无法进行正常恢复,这种情况下,只能尝试强制打开库
SQL> recover database until cancel; ORA-00279: change 237857808 generated at 12/03/2024 07:06:31 needed for thread 1 ORA-00289: suggestion : C:\ORACLE\PRODUCT\10.2.0.3\DB_1\RDBMS\ARC20892_0929553713.001 ORA-00280: change 237857808 for thread 1 is in sequence #20892 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} cancel ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below ORA-01194: file 1 needs more recovery to be consistent ORA-01110: data file 1: 'E:\ORADATA\xifenfei\SYSTEM01.DBF' ORA-01112: media recovery not started SQL> alter database open resetlogs; alter database open resetlogs * ERROR at line 1: ORA-01092: ORACLE instance terminated. Disconnection forced
对于这种ORA-01092错误,需要查看alert日志确认具体报错原因
Tue Dec 17 22:03:59 2024 alter database open resetlogs RESETLOGS is being done without consistancy checks. This may result in a corrupted database. The database should be recreated. RESETLOGS after incomplete recovery UNTIL CHANGE 237857808 Resetting resetlogs activation ID 2015910641 (0x78285af1) Tue Dec 17 22:04:00 2024 Setting recovery target incarnation to 2 Tue Dec 17 22:04:00 2024 Advancing SCN to 16106127360 according to _minimum_giga_scn Tue Dec 17 22:04:00 2024 Assigning activation ID 2274407914 (0x8790b5ea) Thread 1 opened at log sequence 1 Current log# 1 seq# 1 mem# 0: E:\ORADATA\xifenfei\REDO01.LOG Successful open of redo thread 1 Tue Dec 17 22:04:01 2024 MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set Tue Dec 17 22:04:01 2024 SMON: enabling cache recovery Tue Dec 17 22:04:01 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\udump\xifenfei_ora_816.trc: ORA-00704: bootstrap process failure ORA-39700: database must be opened with UPGRADE option Tue Dec 17 22:04:01 2024 Error 704 happened during db open, shutting down database USER: terminating instance due to error 704 Tue Dec 17 22:04:01 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_pmon_2472.trc: ORA-00704: bootstrap process failure Tue Dec 17 22:04:01 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_reco_2576.trc: ORA-00704: bootstrap process failure Tue Dec 17 22:04:01 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_smon_2584.trc: ORA-00704: bootstrap process failure Tue Dec 17 22:04:02 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_ckpt_2216.trc: ORA-00704: bootstrap process failure Tue Dec 17 22:04:02 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_lgwr_1556.trc: ORA-00704: bootstrap process failure Tue Dec 17 22:04:02 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_dbw0_1528.trc: ORA-00704: bootstrap process failure Tue Dec 17 22:04:02 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_psp0_2896.trc: ORA-00704: bootstrap process failure Tue Dec 17 22:04:02 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_mman_904.trc: ORA-00704: bootstrap process failure Tue Dec 17 22:04:02 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_dbw1_1732.trc: ORA-00704: bootstrap process failure Instance terminated by USER, pid = 816 ORA-1092 signalled during: alter database open resetlogs...
由于对oracle粗心对于oracle版本判断失误,导致打开数据库失败,使用正确版本打开数据库发现ctl有报错,导致打开依旧失败(这种错误一般比较少见,大部分ctl异常都是在oracle mount状态无法成功)
Tue Dec 17 22:10:48 2024 Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0 Mem# 0: E:\ORADATA\xifenfei\REDO01.LOG Tue Dec 17 22:10:48 2024 Completed redo application Tue Dec 17 22:10:48 2024 Completed crash recovery at Thread 1: logseq 1, block 3, scn 16106147363 0 data blocks read, 0 data blocks written, 1 redo blocks read Tue Dec 17 22:10:48 2024 Read from controlfile member 'E:\ORADATA\xifenfei\CONTROL01.CTL' has found a corrupted block (blk# 432, seq# 132194) Hex dump of (file 0, block 432) in trace file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_lgwr_2728.trc Corrupt block relative dba: 0x000001b0 (file 0, block 432) Fractured block found during control file block read Data in bad block: type: 0 format: 0 rdba: 0x00000000 last change scn: 0x0000.00000000 seq: 0x0 flg: 0x00 spare1: 0x0 spare2: 0x0 spare3: 0x0 consistency value in tail: 0x03e71501 check value in block header: 0x0 block checksum disabled Hex dump of (file 0, block 432) in trace file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_lgwr_2728.trc Corrupt block relative dba: 0x000001b0 (file 0, block 432) Fractured block found during control file block read Data in bad block: type: 0 format: 0 rdba: 0x00000000 last change scn: 0x0000.00000000 seq: 0x0 flg: 0x00 spare1: 0x0 spare2: 0x0 spare3: 0x0 consistency value in tail: 0x03e71501 check value in block header: 0x0 block checksum disabled Tue Dec 17 22:10:48 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_lgwr_2728.trc: ORA-00202: control file: 'E:\ORADATA\xifenfei\CONTROL01.CTL' Tue Dec 17 22:10:48 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_lgwr_2728.trc: ORA-00227: corrupt block detected in control file: (block 432, # blocks 1) ORA-00202: control file: 'E:\ORADATA\xifenfei\CONTROL01.CTL' LGWR: terminating instance due to error 227 Tue Dec 17 22:10:48 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_pmon_2056.trc: ORA-00227: corrupt block detected in control file: (block , # blocks ) Tue Dec 17 22:10:49 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_dbw0_1636.trc: ORA-00227: corrupt block detected in control file: (block , # blocks ) Tue Dec 17 22:10:49 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_reco_2468.trc: ORA-00227: corrupt block detected in control file: (block , # blocks ) Tue Dec 17 22:10:49 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_smon_2996.trc: ORA-00227: corrupt block detected in control file: (block , # blocks ) Tue Dec 17 22:10:49 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_ckpt_2292.trc: ORA-00227: corrupt block detected in control file: (block , # blocks ) Tue Dec 17 22:10:49 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_dbw1_508.trc: ORA-00227: corrupt block detected in control file: (block , # blocks ) Tue Dec 17 22:10:49 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_mman_1728.trc: ORA-00227: corrupt block detected in control file: (block , # blocks ) Tue Dec 17 22:10:49 2024 Errors in file c:\oracle\product\10.2.0\admin\xifenfei\bdump\xifenfei_psp0_1724.trc: ORA-00227: corrupt block detected in control file: (block , # blocks ) Instance terminated by LGWR, pid = 2728
重建ctl,打开数据库成功,导出数据,完成本次恢复任务
手工删除19c rac
在某些时候,需要删除掉手工删除19c RAC,重新安装,以下是比较简便的操作(root用户操作)
source /home/grid/.bash_profile crsctl stop crs systemctl disable oracle-ohasd systemctl stop oracle-ohasd systemctl disable oracle-tfa.service systemctl stop oracle-tfa rm -rf /etc/oracle rm -rf /etc/ora* rm -rf /u01 rm -rf /tmp/CVU* rm -rf /tmp/.oracle rm -rf /var/tmp/.oracle rm -f /etc/init.d/init.ohasd rm -f /etc/systemd/system/oracle-ohasd.service rm -f /etc/systemd/system/oracle-tfa.service dd if=/dev/zero of=/dev/asm_ocr1 bs=1024 count=1 dd if=/dev/zero of=/dev/asm_ocr2 bs=1024 count=1 dd if=/dev/zero of=/dev/asm_ocr3 bs=1024 count=1
发表在 ORACLE 19C, Oracle RAC
评论关闭