标签云
asm恢复 bbed bootstrap$ dul kcbzib_kcrsds_1 kccpb_sanity_check_2 kcratr_nab_less_than_odr MySQL恢复 obet ORA-00312 ORA-00704 ORA-00742 ORA-01110 ORA-01200 ORA-01555 ORA-01578 ORA-01595 ORA-600 2662 ORA-600 2663 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-600 kcratr_nab_less_than_odr 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 比特币加密文章分类
- MongoDB (1)
- MongoDB恢复 (1)
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (112)
- 数据库 (1,880)
- DB2 (22)
- MySQL (82)
- Oracle (1,705)
- Data Guard (53)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (168)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (8)
- Oracle ASM (72)
- Oracle Bug (8)
- Oracle RAC (56)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (29)
- Oracle备份恢复 (659)
- Oracle安装升级 (108)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (91)
- PostgreSQL (37)
- pdu工具 (7)
- PostgreSQL恢复 (13)
- SQL Server (34)
- SQL Server恢复 (14)
- TimesTen (7)
- 达梦数据库 (5)
- 达梦恢复 (3)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (51)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (34)
- MongoDB (1)
-
最近发表
- Firebird 损坏数据库数据抢救工具—firebirdext
- Oracle 19c 202610补丁(RUs+OJVM)-19.33
- 由于con$.con#值达到极限,触发数据库增加约束报ORA-600 12807错误
- MongoDB 离线提取工具—mongoext
- .bres勒索病毒加密数据库dmp文件可恢复
- ORA-600 krsm_mrp_rebuild_lf_list.lno_mismatch
- 记录一次0丢失的ORA-00354: 损坏重做日志块标头故障恢复
- 不当数据库恢复操作导致一个月数据丢失
- obet快速修复oracle 位图损坏块
- 不太常见的10.2.0.1的oracle redo损坏恢复
- obet forcecopy功能抢救硬件故障中的数据文件
- kcratr_nab_less_than_odr和system坏块故障处理
- 通过obet 恢复system坏块,打开数据库
- obet dbv功能完整说明
- 分享一例运行在aix上的sap系统数据库恢复过程
- OBET-Oracle Block Editor Tool使用说明
- 几乎动用了所有手段的Oracle故障恢复
- Oracle Block Edit Tool (obet) 功能增强–2026.07
- Oracle 19c 202607补丁(RUs+OJVM)-19.32
- Patch_SCN快速修复ORA-01555数据库open故障
分类目录归档:Oracle
ORA-01558: out of transaction ID’s in rollback segment SYSTEM
有客户数据库启动报ORA-01558: out of transaction ID’s in rollback segment SYSTEM无法open成功,而且对应的备库也无法正常open(报同样错误)

对ORA-01558错误分析
[oracle@iZbp1hx0enix3hix1kvyrxZ ~]$ oerr ora 1558 01558, 00000, "out of transaction ID's in rollback segment %s" // *Cause: All the available transaction id's have been used // *Action: Shutdown the instance and restart using other rollback segment(s), // then drop the rollback segment that has no more transaction id's.
官方对于该错误的解释为由于回滚段的事务ID被使用完,无法再分配从而报ORA-01558,解决方法是重启库使用其他回滚段,并删除这个异常回滚段.对于此次故障的报错,这个方法原则上行不通,因为异常的是SYSTEM里面的rollback回滚段(也就是我们通常说的系统回滚段).通过alert日志分析客户这个故障的前因后果。
正常运行的库,突然报该错误
Fri Jun 03 19:37:36 2022 Thread 1 advanced to log sequence 2766146 (LGWR switch) Current log# 3 seq# 2766146 morcl# 0: /oradata/orclr/group_3.310.962631159 Fri Jun 03 19:37:36 2022 LNS: Standby redo logfile selected for thread 1 sequence 2766146 for destination LOG_ARCHIVE_DEST_2 Fri Jun 03 19:37:37 2022 Archived Log entry 3560157 added for thread 1 sequence 2766145 ID 0xefc56f40 dest 1: Fri Jun 03 19:37:58 2022 Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Fri Jun 03 19:38:13 2022 Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM
这个错误一直报了很长时间,等到有时间窗口,客户安排重启操作
Mon Sep 26 14:10:12 2022 Shutting down instance (immediate) Shutting down instance: further logons disabled License high water mark = 205 All dispatchers and shared servers shutdown Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM ALTER DATABASE CLOSE NORMAL ORA-1558 signalled during: ALTER DATABASE CLOSE NORMAL... Mon Sep 26 14:10:22 2022 Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Mon Sep 26 14:10:33 2022 Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Mon Sep 26 14:10:43 2022 Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Mon Sep 26 14:10:53 2022 Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_smon_9974.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Mon Sep 26 14:10:55 2022 Shutting down instance (abort) License high water mark = 205 USER (ospid: 25049): terminating the instance Instance terminated by USER, pid = 25049
正常shutdown immediate执行失败,直接abort方式关闭库,然后尝试重启库
Mon Sep 26 14:12:16 2022 ARC3 started with pid=44, OS id=25978 ARC1: Archival started ARC2: Archival started ARC1: Becoming the 'no FAL' ARCH ARC1: Becoming the 'no SRL' ARCH ARC2: Becoming the heartbeat ARCH ARC3: Archival started ARC0: STARTING ARCH PROCESSES COMPLETE Thread 1 opened at log sequence 2782827 Current log# 1 seq# 2782827 morcl# 0: /oradata/orclr/group_1.296.962631151 Successful open of redo thread 1 MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set Mon Sep 26 14:12:16 2022 SMON: enabling cache recovery Mon Sep 26 14:12:16 2022 NSA2 started with pid=46, OS id=25982 Archived Log entry 3593518 added for thread 1 sequence 2782826 ID 0xefc56f40 dest 1: ARC3: Standby redo logfile selected for thread 1 sequence 2782826 for destination LOG_ARCHIVE_DEST_2 Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_ora_25879.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Errors in file /u01/app/oracle/diag/rdbms/orclr/orclr/trace/orclr_ora_25879.trc: ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM Error 604 happened during db open, shutting down database USER (ospid: 25879): terminating the instance due to error 604 Instance terminated by USER, pid = 25879 ORA-1092 signalled during: ALTER DATABASE OPEN... opiodr aborting process unknown ospid (25879) as a result of ORA-1092 Mon Sep 26 14:12:17 2022 ORA-1092 : opitsk aborting process
数据库重启失败,报ORA-604和ORA-01558错误.
对于这种情况,对于数据库启动过程进行跟踪确认在UPDATE UNDO$的时候无法分配事务,导致无法继续
PARSING IN CURSOR #139696084476000 len=160 dep=1 uid=0 oct=6 lid=0 tim=1664353484223278 hv=1292341136 ad='6ff1ffa8' sqlid='8vyjutx6hg3wh' update /*+ rule */ undo$ set name=:2,file#=:3,block#=:4,status$=:5,user#=:6,undosqn=:7,xactsqn=:8, scnbas=:9,scnwrp=:10,inst#=:11,ts#=:12,spare1=:13 where us#=:1 END OF STMT PARSE #139696084476000:c=5998,e=10708,p=7,cr=53,cu=0,mis=1,r=0,dep=1,og=3,plh=0,tim=1664353484223277 BINDS #139696084476000: Bind#0 oacdty=01 mxl=32(21) mxlc=00 mal=00 scl=00 pre=00 oacflg=18 fl2=0001 frm=01 csi=852 siz=32 off=0 kxsbbbfp=6ff376da bln=32 avl=21 flg=09 value="_SYSSMU14_3733658264$" Bind#1 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d7a68 bln=24 avl=02 flg=05 value=15 Bind#2 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d7a38 bln=24 avl=03 flg=05 value=336 Bind#3 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d7a00 bln=24 avl=02 flg=05 value=5 Bind#4 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d79d0 bln=24 avl=02 flg=05 value=1 Bind#5 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d79a0 bln=24 avl=03 flg=05 value=5747 Bind#6 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d7970 bln=24 avl=04 flg=05 value=22103 Bind#7 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d7938 bln=24 avl=06 flg=05 value=1026171661 Bind#8 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d7680 bln=24 avl=03 flg=05 value=3399 Bind#9 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d7650 bln=24 avl=02 flg=05 value=2 Bind#10 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d7620 bln=24 avl=02 flg=05 value=5 Bind#11 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d75f0 bln=24 avl=02 flg=05 value=2 Bind#12 oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00 oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0 kxsbbbfp=7f0d877d7a98 bln=22 avl=02 flg=05 value=14 EXEC #139696084476000:c=1000,e=1713,p=0,cr=1,cu=2,mis=1,r=0,dep=1,og=3,plh=3078630091,tim=1664353484225072 ERROR #139696084476000:err=1558 tim=1664353484225094 STAT #139696084476000 id=1 cnt=0 pid=0 pos=1 obj=0 op='UPDATE UNDO$ (cr=0 pr=0 pw=0 time=5 us)' STAT #139696084476000 id=2 cnt=1 pid=1 pos=1 obj=34 op='INDEX UNIQUE SCAN I_UNDO1 (cr=1 pr=0 pw=0 time=6 us)' KQRCMT: Write failed with error=604 po=0x6ff375d0 cid=3 diagnostics : cid=3 hash=f2114ab9 flag=2a ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM ORA-00604: error occurred at recursive SQL level 1 ORA-01558: out of transaction ID's in rollback segment SYSTEM
既然报了事务ID不足,那对block进行分析,确实几乎都达到了数据库设计的理论最大值
index state cflags wrap# uel scn dba parent-xid nub stmt_num ------------------------------------------------------------------------------------------------ 0x00 9 0x00 0xfffe 0x0026 0x111f.4d598aae 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x01 9 0x00 0xfffe 0x0054 0x111f.4d598a63 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x02 9 0x00 0xfffe 0x001a 0x111f.4d598a77 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x03 9 0x00 0xfffe 0x005c 0x111f.4d598a7d 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x04 9 0x00 0xfffe 0x003d 0x111f.4d598a4d 0x00400185 0x0000.000.00000000 0x00000001 0x00000000 0x05 9 0x00 0xfffe 0x0061 0x111f.4d598a74 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x06 9 0x00 0xfffe 0x0002 0x111f.4d598a76 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x07 9 0x00 0xfffe 0x001b 0x111f.4d598a90 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x08 9 0x00 0xfffe 0x0011 0x111f.4d598a8c 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x09 9 0x00 0xfffe 0x0042 0x111f.4d598a6e 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x0a 9 0x00 0xfffe 0x0003 0x111f.4d598a7c 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x0b 9 0x00 0xfffe 0x000a 0x111f.4d598a7b 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x0c 9 0x00 0xfffe 0x0005 0x111f.4d598a73 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x0d 9 0x00 0xfffe 0x005d 0x111f.4d598a87 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x0e 9 0x00 0xfffe 0x0050 0x111f.4d598a68 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x0f 9 0x00 0xfffe 0x0047 0x111f.4d598a6a 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x10 9 0x00 0xfffe 0x0033 0x111f.4d598a95 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x11 9 0x00 0xfffe 0x0031 0x111f.4d598a8d 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x12 9 0x00 0xfffe 0x0020 0x111f.4d598a81 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x13 9 0x00 0xfffe 0x0014 0x111f.4d598a85 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x14 9 0x00 0xfffe 0x000d 0x111f.4d598a86 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x15 9 0x00 0xfffe 0x0013 0x111f.4d598a83 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x16 9 0x00 0xfffe 0x003b 0x111f.4d598aa4 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x17 9 0x00 0xfffe 0x005b 0x111f.4d598a70 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x18 9 0x00 0xfffe 0x001f 0x111f.4d598a8a 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x19 9 0x00 0xfffe 0x0010 0x111f.4d598a94 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x1a 9 0x00 0xfffe 0x001c 0x111f.4d598a79 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x1b 9 0x00 0xfffe 0x0027 0x111f.4d598a91 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x1c 9 0x00 0xfffe 0x000b 0x111f.4d598a7a 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x1d 9 0x00 0xfffe 0x0012 0x111f.4d598a80 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x1e 9 0x00 0xfffe 0x0045 0x111f.4d598aba 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x1f 9 0x00 0xfffe 0x0008 0x111f.4d598a8b 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x20 9 0x00 0xfffe 0x0015 0x111f.4d598a82 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x21 9 0x00 0xfffe 0x0038 0x111f.4d598ab2 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x22 9 0x00 0xfffd 0x003e 0x111f.4d598ab4 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x23 9 0x00 0xfffe 0x0028 0x111f.4d598a9e 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x24 9 0x00 0xfffd 0x0060 0x111f.4d598a5e 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x25 9 0x00 0xfffe 0x0021 0x111f.4d598ab0 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x26 9 0x00 0xfffe 0x0025 0x111f.4d598aaf 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x27 9 0x00 0xfffe 0x0019 0x111f.4d598a93 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x28 9 0x00 0xfffe 0x0046 0x111f.4d598a9f 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x29 9 0x00 0xfffe 0x0023 0x111f.4d598a9d 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x2a 9 0x00 0xfffe 0x002c 0x111f.4d598a98 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x2b 9 0x00 0xfffe 0x0040 0x111f.4d598aa7 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x2c 9 0x00 0xfffe 0x0030 0x111f.4d598a99 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x2d 9 0x00 0xfffe 0x003c 0x111f.4d598aab 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x2e 9 0x00 0xfffe 0x0056 0x111f.4d598abf 0x00400189 0x0000.000.00000000 0x00000001 0x00000000 0x2f 9 0x00 0xfffe 0x0037 0x111f.4d598aa2 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x30 9 0x00 0xfffe 0x0034 0x111f.4d598a9a 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x31 9 0x00 0xfffe 0x0007 0x111f.4d598a8f 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x32 9 0x00 0xfffe 0x001e 0x111f.4d598ab9 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x33 9 0x00 0xfffe 0x002a 0x111f.4d598a97 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x34 9 0x00 0xfffe 0x0029 0x111f.4d598a9c 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x35 9 0x00 0xfffd 0x005f 0x111f.4d598a5b 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x36 9 0x00 0xfffe 0x0049 0x111f.4d598ac6 0x00400189 0x0000.000.00000000 0x00000001 0x00000000 0x37 9 0x00 0xfffe 0x0016 0x111f.4d598aa3 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x38 9 0x00 0xfffe 0x0022 0x111f.4d598ab3 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x39 9 0x00 0xfffd 0x0058 0x111f.4d598a52 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x3a 9 0x00 0xfffd 0x0048 0x111f.4d598a57 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x3b 9 0x00 0xfffe 0x002b 0x111f.4d598aa5 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x3c 9 0x00 0xfffe 0x0000 0x111f.4d598aac 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x3d 9 0x00 0xfffd 0x0043 0x111f.4d598a4f 0x00400185 0x0000.000.00000000 0x00000001 0x00000000 0x3e 9 0x00 0xfffe 0x003f 0x111f.4d598ab6 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x3f 9 0x00 0xfffe 0x0032 0x111f.4d598ab7 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x40 9 0x00 0xfffe 0x005a 0x111f.4d598aa8 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x41 9 0x00 0xfffe 0x004b 0x111f.4d598abc 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x42 9 0x00 0xfffd 0x0017 0x111f.4d598a6f 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x43 9 0x00 0xfffd 0x004d 0x111f.4d598a50 0x00400185 0x0000.000.00000000 0x00000001 0x00000000 0x44 9 0x00 0xfffe 0x005e 0x111f.4d598ac2 0x00400189 0x0000.000.00000000 0x00000001 0x00000000 0x45 9 0x00 0xfffe 0x0041 0x111f.4d598abb 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x46 9 0x00 0xfffe 0x002f 0x111f.4d598aa0 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x47 9 0x00 0xfffd 0x0059 0x111f.4d598a6b 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x48 9 0x00 0xfffd 0x0052 0x111f.4d598a58 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x49 9 0x00 0xfffe 0xffff 0x111f.4d598ac7 0x00400189 0x0000.000.00000000 0x00000001 0x00000000 0x4a 9 0x00 0xfffd 0x003a 0x111f.4d598a56 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x4b 9 0x00 0xfffe 0x002e 0x111f.4d598abe 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x4c 9 0x00 0xfffd 0x0024 0x111f.4d598a5d 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x4d 9 0x00 0xfffd 0x0039 0x111f.4d598a51 0x00400185 0x0000.000.00000000 0x00000001 0x00000000 0x4e 9 0x00 0xfffd 0x0001 0x111f.4d598a62 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x4f 9 0x00 0xfffd 0x000e 0x111f.4d598a66 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x50 9 0x00 0xfffd 0x000f 0x111f.4d598a69 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x51 9 0x00 0xfffe 0x0036 0x111f.4d598ac5 0x00400189 0x0000.000.00000000 0x00000001 0x00000000 0x52 9 0x00 0xfffd 0x0035 0x111f.4d598a59 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x53 9 0x00 0xfffd 0x004a 0x111f.4d598a55 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x54 9 0x00 0xfffd 0x0055 0x111f.4d598a64 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x55 9 0x00 0xfffd 0x004f 0x111f.4d598a65 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x56 9 0x00 0xfffe 0x0044 0x111f.4d598ac1 0x00400189 0x0000.000.00000000 0x00000001 0x00000000 0x57 9 0x00 0xfffd 0x004e 0x111f.4d598a60 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x58 9 0x00 0xfffd 0x0053 0x111f.4d598a53 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x59 9 0x00 0xfffd 0x0009 0x111f.4d598a6c 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x5a 9 0x00 0xfffd 0x002d 0x111f.4d598aa9 0x00400188 0x0000.000.00000000 0x00000001 0x00000000 0x5b 9 0x00 0xfffd 0x000c 0x111f.4d598a71 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x5c 9 0x00 0xfffd 0x001d 0x111f.4d598a7f 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x5d 9 0x00 0xfffd 0x0018 0x111f.4d598a88 0x00400187 0x0000.000.00000000 0x00000001 0x00000000 0x5e 9 0x00 0xfffe 0x0051 0x111f.4d598ac3 0x00400189 0x0000.000.00000000 0x00000001 0x00000000 0x5f 9 0x00 0xfffd 0x004c 0x111f.4d598a5c 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x60 9 0x00 0xfffd 0x0057 0x111f.4d598a5f 0x00400186 0x0000.000.00000000 0x00000001 0x00000000 0x61 9 0x00 0xfffd 0x0006 0x111f.4d598a75 0x00400187 0x0000.000.00000000 0x00000001 0x00000000
通过bbed修改相关值,规避掉此类问题
m /x 6c000000 offset 6513 m /x 7c000000 offset 6752 m /x 8c000000 offset 7048
ORA-600 3417故障处理
数据库突然报ORA-600 3417错误
Mon Sep 26 06:42:51 2022 Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl2\trace\orcl2_lgwr_7984.trc (incident=176185): ORA-00600: 内部错误代码, 参数: [3417], [3], [0], [1], [0], [3], [3], [], [], [], [], [] Incident details in: D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl2\incident\incdir_176185\orcl2_lgwr_7984_i176185.trc Mon Sep 26 06:42:54 2022 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\orcl\orcl2\trace\orcl2_lgwr_7984.trc: ORA-00600: 内部错误代码, 参数: [3417], [3], [0], [1], [0], [3], [3], [], [], [], [], [] LGWR (ospid: 7984): terminating the instance due to error 470
节点2异常之后,节点1由于跨节点实例恢复导致异常
Mon Sep 26 06:44:26 2022 Instance recovery: looking for dead threads Beginning instance recovery of 1 threads Submitted all GCS remote-cache requests Post SMON to start 1st pass IR Fix write in gcs resources Reconfiguration complete parallel recovery started with 31 processes Started redo scan Completed redo scan read 887 KB redo, 348 data blocks need recovery Started redo application at Thread 2: logseq 9907, block 1980 Recovery of Online Redo Log: Thread 2 Group 3 Seq 9907 Reading mem 0 Mem# 0: +DATA/orcl/onlinelog/group_3.265.1078882689 Mem# 1: +OCR/orcl/onlinelog/group_3.259.1078882689 Completed redo application of 0.32MB Completed instance recovery at Thread 2: logseq 9907, block 3755, scn 231951271 338 data blocks read, 348 data blocks written, 887 redo k-bytes read Mon Sep 26 06:44:36 2022 Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl1\trace\orcl1_smon_7972.trc (incident=208205): ORA-00600: 内部错误代码, 参数: [3417], [3], [0], [1], [0], [3], [3], [], [], [], [], [] Mon Sep 26 06:44:38 2022 Reconfiguration started (old inc 14, new inc 16) List of instances: 1 2 (myinst: 1) Global Resource Directory frozen Communication channels reestablished Master broadcasted resource hash value bitmaps Non-local Process blocks cleaned out Mon Sep 26 06:44:38 2022 LMS 0: 0 GCS shadows cancelled, 0 closed, 0 Xw survived Mon Sep 26 06:44:38 2022 Use ADRCI or Support Workbench to package the incident. See Note 411.1 at My Oracle Support for error and packaging details. Mon Sep 26 06:44:38 2022 LMS 1: 0 GCS shadows cancelled, 0 closed, 0 Xw survived Mon Sep 26 06:44:38 2022 LMS 2: 0 GCS shadows cancelled, 0 closed, 0 Xw survived Set master node info Submitted all remote-enqueue requests Dwn-cvts replayed, VALBLKs dubious All grantable enqueues granted ORA-600 occurred during recovery, instance will be terminated Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl1\trace\orcl1_smon_7972.trc: ORA-00600: 内部错误代码, 参数: [3417], [3], [0], [1], [0], [3], [3], [], [], [], [], [] System state dump requested by (instance=1,osid=7972 (SMON)),summary=[abnormal instance termination]. SMON (ospid: 7972): terminating the instance due to error 600 Mon Sep 26 06:44:43 2022 ORA-1092 : opitsk aborting process Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl1\trace\orcl1_diag_6956_20220926064442.trc: ORA-00601: ?????? Mon Sep 26 06:44:46 2022 opiodr aborting process unknown ospid (6688) as a result of ORA-1092
再次重启实例无法正常启动报ORA-600 3417错误
Completed: ALTER DATABASE MOUNT Mon Sep 26 08:08:34 2022 alter database open This instance was first to open Picked broadcast on commit scheme to generate SCNs Mon Sep 26 08:08:36 2022 LGWR: STARTING ARCH PROCESSES Mon Sep 26 08:08:36 2022 ARC0 started with pid=39, OS id=5004 ARC0: Archival started LGWR: STARTING ARCH PROCESSES COMPLETE ARC0: STARTING ARCH PROCESSES Mon Sep 26 08:08:37 2022 ARC1 started with pid=38, OS id=3568 Mon Sep 26 08:08:37 2022 ARC2 started with pid=41, OS id=3308 Mon Sep 26 08:08:37 2022 ARC3 started with pid=42, OS id=8180 Mon Sep 26 08:08:37 2022 ARC4 started with pid=43, OS id=7768 Mon Sep 26 08:08:37 2022 ARC5 started with pid=44, OS id=4628 Mon Sep 26 08:08:37 2022 ARC6 started with pid=45, OS id=6920 Mon Sep 26 08:08:37 2022 ARC7 started with pid=46, OS id=7960 ARC1: Archival started ARC2: Archival started ARC3: Archival started ARC4: Archival started ARC5: Archival started ARC6: Archival started ARC1: Becoming the 'no FAL' ARCH ARC1: Becoming the 'no SRL' ARCH ARC2: Becoming the heartbeat ARCH Errors in file D:\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl2\trace\orcl2_lgwr_7924.trc(incident=400186): ORA-00600: ??????, ??: [3417], [3], [0], [1], [0], [3], [3], [], [], [], [], [] ARC7: Archival started ARC0: STARTING ARCH PROCESSES COMPLETE Mon Sep 26 08:08:39 2022 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\orcl\orcl2\trace\orcl2_lgwr_7924.trc: ORA-00600: ??????, ??: [3417], [3], [0], [1], [0], [3], [3], [], [], [], [], [] LGWR (ospid: 7924): terminating the instance due to error 470 Mon Sep 26 08:08:44 2022 ORA-1092 : opitsk aborting process
故障比较明显,数据库两个节点故障之后,启动其中一个节点,已经完成了实例恢复,但是无法open,通过10046进行跟踪发下你open过程没有执行任何语句直接导致win服务异常,然后终止

通过进一步分析确认是redo组异常
SQL> select group#,sequence#,status,thread# from v$log;
GROUP# SEQUENCE# STATUS THREAD#
---------- ---------- ---------------- ----------
1 10837 CURRENT 1
2 0 UNUSED 1
3 9907 CURRENT 2
4 0 UNUSED 2
进一步查询数据文件是否正常
SQL> set pages 10000
SQL> set numw 16
SQL> SELECT status,
2 checkpoint_change#,
3 checkpoint_time,last_change#,
4 count(*) ROW_NUM
5 FROM v$datafile
6 GROUP BY status, checkpoint_change#, checkpoint_time,last_change#
7 ORDER BY status, checkpoint_change#, checkpoint_time;
STATUS CHECKPOINT_CHANGE# CHECKPOINT_TIME LAST_CHANGE# ROW_NUM
------- ------------------ ------------------- ---------------- ----------------
ONLINE 231971314 2022-09-26 06:44:37 231971314 44
SYSTEM 231971314 2022-09-26 06:44:37 231971314 1
SQL> set numw 16
SQL> col CHECKPOINT_TIME for a40
SQL> set lines 150
SQL> set pages 1000
SQL> SELECT status,
2 to_char(checkpoint_time,'yyyy-mm-dd hh24:mi:ss') checkpoint_time,FUZZY,chec
kpoint_change#,
3 count(*) ROW_NUM
4 FROM v$datafile_header
5 GROUP BY status, checkpoint_change#, to_char(checkpoint_time,'yyyy-mm-dd hh
24:mi:ss'),fuzzy
6 ORDER BY status, checkpoint_change#, checkpoint_time;
STATUS CHECKPOINT_TIME FUZ CHECKPOINT_CHANGE#
ROW_NUM
------- ---------------------------------------- --- ------------------ --------
--------
ONLINE 2022-09-26 06:44:37 NO 231971314
45
基于上述情况,对于这个库,可以直接open库,实现数据0丢失
又一例asm disk 加入vg故障
通过asm层面查看

ASMCMD> lsdsk Path /dev/asmdisk/asm-arch01 /dev/asmdisk/asm-data01 /dev/asmdisk/asm-ocr01 /dev/asmdisk/asm-ocr02 /dev/asmdisk/asm-ocr03 dbsrv2-> ls -l /dev/asm* /dev/asm: total 0 /dev/asmdisk: total 0 lrwxrwxrwx 1 root root 6 Sep 14 17:39 asm-arch01 -> ../sdb lrwxrwxrwx 1 root root 6 Sep 14 17:35 asm-data01 -> ../sda lrwxrwxrwx 1 root root 6 Sep 11 09:11 asm-ocr01 -> ../sdc lrwxrwxrwx 1 root root 6 Sep 11 09:11 asm-ocr02 -> ../sdd lrwxrwxrwx 1 root root 6 Sep 11 09:11 asm-ocr03 -> ../sde
对于这类情况,由于客户的系统是ext4,根据这个文件系统特性,每隔2G会有一点破坏,最终数据恢复效果看运气,运气好直接通过元数据恢复出来所有数据文件,然后open库,然后不好可能需要底层碎片等,参见类似恢复:
asm disk被加入vg恢复
asm disk 磁盘部分被清空恢复
文件系统重新分区oracle恢复
删除分区 oracle asm disk 恢复
pvcreate asm disk导致asm磁盘组异常恢复
对于使用asm的客户,在对文件系统进行操作时,一定要注意asm disk,别弄错磁盘(把asm disk磁盘给误操作掉了),适当情况下linux平台可以考虑AFD(ASM FILTER DRIVER)
发表在 Oracle备份恢复
评论关闭



加我微信(17813235971)
加我QQ(107644445)

