标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 kfed MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-01110 ORA-01555 ORA-01578 ORA-08103 ORA-600 2131 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-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)
- 操作系统 (102)
- 数据库 (1,670)
- DB2 (22)
- MySQL (73)
- Oracle (1,532)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (21)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (14)
- ORACLE 21C (3)
- Oracle 23ai (7)
- Oracle ASM (65)
- Oracle Bug (8)
- Oracle RAC (52)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (560)
- Oracle安装升级 (91)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (78)
- PostgreSQL (18)
- PostgreSQL恢复 (6)
- SQL Server (27)
- SQL Server恢复 (8)
- TimesTen (7)
- 达梦数据库 (2)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (37)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (20)
-
最近发表
- ORA-600 krse_arc_complete.4
- Oracle 19c 202410补丁(RUs+OJVM)
- ntfs MFT损坏(ntfs文件系统故障)导致oracle异常恢复
- .mkp扩展名oracle数据文件加密恢复
- 清空redo,导致ORA-27048: skgfifi: file header information is invalid
- A_H_README_TO_RECOVER勒索恢复
- 通过alert日志分析客户自行对一个数据库恢复的来龙去脉和点评
- ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的SERVICE_NAME
- ORA-01092 ORA-00604 ORA-01558故障处理
- ORA-65088: database open should be retried
- Oracle 19c异常恢复—ORA-01209/ORA-65088
- ORA-600 16703故障再现
- 数据库启动报ORA-27102 OSD-00026 O/S-Error: (OS 1455)
- .[metro777@cock.li].Elbie勒索病毒加密数据库恢复
- 应用连接错误,初始化mysql数据库恢复
- RAC默认服务配置优先节点
- Oracle 19c RAC 替换私网操作
- 监听报TNS-12541 TNS-12560 TNS-00511错误
- drop tablespace xxx including contents恢复
- Linux 8 修改网卡名称
标签归档:ORA-00604
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-00704 ORA-00604 ORA-01406故障分析
根据客户反馈系统运行的是9.2.0.8版本,但是服务器上面安装有10.2.0.1服务端,由于使用过10.2启动过数据库导致现在9.2.0.8无法启动.
数据库启动报错
Starting up ORACLE RDBMS Version: 9.2.0.8.0. System parameters with non-default values: ………… db_cache_size = 209715200 compatible = 9.2.0.0.0 db_file_multiblock_read_count= 16 fast_start_mttr_target = 300 ………… Thread 1 advanced to log sequence 7517 Thread 1 opened at log sequence 7517 Current log# 1 seq# 7517 mem# 0: F:\ORACLE\ORADATA\ORACLE\REDO01.LOG Successful open of redo thread 1 Tue Apr 25 21:16:20 2017 SMON: enabling cache recovery Tue Apr 25 21:16:20 2017 Errors in file f:\oracle\admin\oracle\udump\oracle_ora_3908.trc: ORA-00704: 引导程序进程失败 ORA-00604: 递归 SQL 层 1 出现错误 ORA-01406: 读取的列值被截断 Tue Apr 25 21:16:20 2017 Error 704 happened during db open, shutting down database USER: terminating instance due to error 704 Tue Apr 25 21:16:20 2017 Errors in file f:\oracle\admin\oracle\bdump\oracle_pmon_2124.trc: ORA-00704: bootstrap process failure Tue Apr 25 21:16:20 2017 Errors in file f:\oracle\admin\oracle\bdump\oracle_reco_2556.trc: ORA-00704: bootstrap process failure Tue Apr 25 21:16:20 2017 Errors in file f:\oracle\admin\oracle\bdump\oracle_smon_628.trc: ORA-00704: bootstrap process failure Tue Apr 25 21:16:21 2017 Errors in file f:\oracle\admin\oracle\bdump\oracle_ckpt_2212.trc: ORA-00704: bootstrap process failure Tue Apr 25 21:16:21 2017 Errors in file f:\oracle\admin\oracle\bdump\oracle_lgwr_2756.trc: ORA-00704: bootstrap process failure Tue Apr 25 21:16:21 2017 Errors in file f:\oracle\admin\oracle\bdump\oracle_dbw0_1756.trc: ORA-00704: bootstrap process failure Instance terminated by USER, pid = 3908 ORA-1092 signalled during: ALTER DATABASE OPEN...
错误比较明显bootstrap$的相关sql在递归的时候报错(ORA-01406)
我们分析alert日志
---9.2.0.1版本运行了很长时间 Mon Apr 13 20:44:29 2009 Starting ORACLE instance (normal) LICENSE_MAX_SESSION = 0 LICENSE_SESSIONS_WARNING = 0 SCN scheme 2 Using log_archive_dest parameter default value LICENSE_MAX_USERS = 0 SYS auditing is disabled Starting up ORACLE RDBMS Version: 9.2.0.1.0. --然后升级到9.2.0.8 Thu Jun 18 17:32:09 2015 Starting ORACLE instance (normal) LICENSE_MAX_SESSION = 0 LICENSE_SESSIONS_WARNING = 0 SCN scheme 2 Using log_archive_dest parameter default value LICENSE_MAX_USERS = 0 SYS auditing is disabled Starting up ORACLE RDBMS Version: 9.2.0.8.0. System parameters with non-default values: ………… Thu Jun 18 17:32:18 2015 SMON: enabling cache recovery Thu Jun 18 17:32:19 2015 Successfully onlined Undo Tablespace 1. Thu Jun 18 17:32:19 2015 SMON: enabling tx recovery Thu Jun 18 17:32:19 2015 Database Characterset is ZHS16GBK Updating 9.2.0.1.0 NLS parameters in sys.props$ -- adding 9.2.0.8.0 NLS parameters. replication_dependency_tracking turned off (no async multimaster replication found) Completed: alter database open ………… Thu Jun 18 17:38:32 2015 Database Characterset is ZHS16GBK Thu Jun 18 17:38:33 2015 ALTER SYSTEM SET _system_trig_enabled=FALSE SCOPE=MEMORY; Thu Jun 18 17:38:33 2015 ALTER SYSTEM SET job_queue_processes=0 SCOPE=MEMORY; Thu Jun 18 17:38:33 2015 ALTER SYSTEM SET aq_tm_processes=0 SCOPE=MEMORY; replication_dependency_tracking turned off (no async multimaster replication found) Completed: ALTER DATABASE OPEN MIGRATE --再升级到10.2.0.1 ksdpec: called for event 13740 prior to event group initialization Starting up ORACLE RDBMS Version: 10.2.0.1.0. System parameters with non-default values: processes = 150 timed_statistics = TRUE sga_max_size = 1610612736 shared_pool_size = 209715200 large_pool_size = 8388608 java_pool_size = 159383552 streams_pool_size = 50331648 control_files = F:\ORACLE\ORADATA\ORACLE\CONTROL01.CTL db_block_size = 8192 db_cache_size = 209715200 compatible = 9.2.0.0.0 ………… Thu Jun 18 19:43:30 2015 Database Characterset is ZHS16GBK Updating 9.2.0.8.0 NLS parameters in sys.props$ -- adding 10.2.0.1.0 NLS parameters. ………… Thu Jun 18 19:43:44 2015 ALTER SYSTEM enable restricted session; MMNL started with pid=12, OS id=5212 Thu Jun 18 19:43:44 2015 ALTER SYSTEM SET _system_trig_enabled=FALSE SCOPE=MEMORY; Thu Jun 18 19:43:44 2015 ALTER SYSTEM SET aq_tm_processes=0 SCOPE=MEMORY; Thu Jun 18 19:43:44 2015 ALTER SYSTEM SET resource_manager_plan='' SCOPE=MEMORY; Thu Jun 18 19:43:44 2015 replication_dependency_tracking turned off (no async multimaster replication found) Completed: ALTER DATABASE OPEN MIGRATE
这里很明显数据库从2009年4月开始9.2.0.1版本开始运行,然后到2015年6月18日升级到9.2.0.8版本,紧接着升级到10.2.0.1(升级8.2.0.8是为升级10.2.0.1的中间过度操作).然后这个库一直使用10.2.0.1版本运行,这次重启不知道什么原因客户以为是9.2.0.8的数据库版本,然后不管怎么样也无法启动成功(这里不知道什么原因win 服务中使用的9.2.0.8的软件,估计被人误操作了).解决该问题,就是把服务切换成10.2.0.1版本数据库正常启动.
再次提醒大家,在oracle恢复的过程中,需要仔细分析日志,日志不会骗人,不要轻信客户的现场描述
ORA-00354 ORA-00353 ORA-00312异常处理
数据库启动报错
WIN平台oracle 9.2.0.6版本数据库redo log block header损坏,ORA-00354 ORA-00353 ORA-00312错误导致数据库无法启动
SQL >alter database open; * ERROR at line 1: ORA-00354: corrupt redo log block header ORA-00353: log corruption near block 1892904 change 281470950178815 ORA-00312: online log 3 thread 1: 'D:\ORACLE\ORADATA\ZOYO\REDO03.LOG'
Sun Jan 24 15:44:05 2016 Database mounted in Exclusive Mode. Completed: alter database mount exclusive Sun Jan 24 15:44:05 2016 alter database open Sun Jan 24 15:44:05 2016 Beginning crash recovery of 1 threads Sun Jan 24 15:44:05 2016 Started redo scan ORA-354 signalled during: alter database open... Shutting down instance: further logons disabled Shutting down instance (immediate) License high water mark = 3 Sun Jan 24 15:44:32 2016 ALTER DATABASE CLOSE NORMAL ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
通过分析,确定损坏的redo03为当前redo,无法使用正常方法打开,加上_allow_resetlogs_corruption参数,尝试打开库,依旧失败
数据库报ORA-600 2662错误
Sun Jan 24 16:26:30 2016 SMON: enabling cache recovery Sun Jan 24 16:26:30 2016 Errors in file d:\oracle\admin\zoyo\udump\zoyo_ora_640.trc: ORA-00600: 内部错误代码,参数: [2662], [0], [31563641], [0], [31563654], [4194721], [], [] Sun Jan 24 16:26:31 2016 Errors in file d:\oracle\admin\zoyo\udump\zoyo_ora_640.trc: ORA-00704: 引导程序进程失败 ORA-00600: 内部错误代码,参数: [2662], [0], [31563641], [0], [31563654], [4194721], [], [] Sun Jan 24 16:26:31 2016 Error 704 happened during db open, shutting down database USER: terminating instance due to error 704 Instance terminated by USER, pid = 640 ORA-1092 signalled during: alter database open resetlogs...
ORA 600 2662的错误处理
根据经验,这个错误只需要推scn即可,可以通过bbed,隐含参数,event,oradebug,修改控制文件等方法进行,推scn之后,数据库报熟悉的ORA-00604 ORA-00607 ORA-600 4194错误,以前我们遇到的block大部分是128,这次报异常block为9.实际中跟版本有关系,在ORACLE 9.2.0.6中该错误为file 1 block 9.大部分版本为128
Sun Jan 24 16:29:39 2016 SMON: enabling cache recovery Sun Jan 24 16:29:39 2016 Errors in file d:\oracle\admin\zoyo\udump\zoyo_ora_3432.trc: ORA-00600: 内部错误代码,参数: [4194], [14], [5], [], [], [], [], [] Sun Jan 24 16:29:39 2016 Doing block recovery for fno: 1 blk: 401 Sun Jan 24 16:29:39 2016 Recovery of Online Redo Log: Thread 1 Group 1 Seq 2 Reading mem 0 Mem# 0 errs 0: D:\ORACLE\ORADATA\ZOYO\REDO01.LOG Doing block recovery for fno: 1 blk: 9 Sun Jan 24 16:29:40 2016 Recovery of Online Redo Log: Thread 1 Group 1 Seq 2 Reading mem 0 Mem# 0 errs 0: D:\ORACLE\ORADATA\ZOYO\REDO01.LOG Sun Jan 24 16:29:40 2016 Errors in file d:\oracle\admin\zoyo\udump\zoyo_ora_3432.trc: ORA-00604: 递归 SQL 层 1 出现错误 ORA-00607: 当更改数据块时出现内部错误 ORA-00600: 内部错误代码,参数: [4194], [14], [5], [], [], [], [], [] Error 604 happened during db open, shutting down database USER: terminating instance due to error 604 Instance terminated by USER, pid = 3432
ORA-00604 ORA-00607 ORA-600 4194分析trace文件
*** 2016-01-24 16:29:40.031 Recovery of Online Redo Log: Thread 1 Group 1 Seq 2 Reading mem 0 Block image after block recovery: buffer tsn: 0 rdba: 0x00400009 (1/9) scn: 0x0000.01e112e1 seq: 0x01 flg: 0x04 tail: 0x12e10e01 frmt: 0x02 chkval: 0xba76 type: 0x0e=KTU UNDO HEADER W/UNLIMITED EXTENTS Extent Control Header ----------------------------------------------------------------- Extent Header:: spare1: 0 spare2: 0 #extents: 6 #blocks: 47 last map 0x00000000 #maps: 0 offset: 4128 Highwater:: 0x00400191 ext#: 4 blk#: 0 ext size: 8 #blocks in seg. hdr's freelists: 0 #blocks below: 0 mapblk 0x00000000 offset: 4 Unlocked Map Header:: next 0x00000000 #extents: 6 obj#: 0 flag: 0x40000000 Extent Map ----------------------------------------------------------------- 0x0040000a length: 7 0x00400011 length: 8 0x00400181 length: 8 0x00400189 length: 8 0x00400191 length: 8 0x00400199 length: 8 TRN CTL:: seq: 0x008e chd: 0x0060 ctl: 0x0024 inc: 0x00000000 nfb: 0x0001 mgc: 0x8002 xts: 0x0068 flg: 0x0001 opt: 2147483646 (0x7ffffffe) uba: 0x00400191.008e.04 scn: 0x0000.01ded29c Version: 0x01 FREE BLOCK POOL:: uba: 0x00400191.008e.04 ext: 0x4 spc: 0x1c3e uba: 0x00000000.002f.21 ext: 0x5 spc: 0x1334 uba: 0x00000000.002e.37 ext: 0x4 spc: 0x788 uba: 0x00000000.0000.00 ext: 0x0 spc: 0x0 uba: 0x00000000.0000.00 ext: 0x0 spc: 0x0 TRN TBL::
从这里可以确定undo segment header中的分配block记录有问题,清除ktuxc.fbp.fbp[N].kuba.kdba相关记录,数据库正常打开
. struct ktuxc kernel transaction undo xaction table control with 15 members . { . struct kscn scn with 3 members . { 04148 ub4 bas = 0X9CD2DE01 = 31380124 04152 ub2 wrp = 0X0000 = 0 04154 cc32 pad = 0X0000 = 0 . } . struct kuba uba with 4 members . { 04156 kdba dba = 0X91014000 = 0x00400191 file 1 block 401 04160 ub2 seq = 0X8E00 = 142 04162 ub1 rec = 0X04 = 4 04163 cc16 pad = 0X00 = 0 . } 04164 sb2 flg = 0X0100 = 1 04166 ub2 seq = 0X8E00 = 142 04168 sb2 nfb = 0X0100 = 1 04170 cc32 pad1 = 0X0000 = 0 04172 ub4 inc = 0X00000000 = 0 04176 sb2 chd = 0X6000 = 96 04178 sb2 ctl = 0X2400 = 36 04180 ub2x mgc = 0X0280 = 0x8002 04182 ub2 ver = 0X0100 = 1 04184 ub2 xts = 0X6800 = 104 04186 cc32 pad2 = 0X0000 = 0 04188 ub4 opt = 0XFEFFFF7F = 2147483646 . ktufb fbp[5] (array with 5 elements) . struct fbp [0] with 3 members . { . struct kuba uba with 4 members . { 04192 kdba dba = 0X91014000 = 0x00400191 file 1 block 401 04196 ub2 seq = 0X8E00 = 142 04198 ub1 rec = 0X04 = 4 04199 cc16 pad = 0X00 = 0 . } 04200 sb2 ext = 0X0400 = 4 04202 sb2 spc = 0X3E1C = 7230 . } . struct fbp [1] with 3 members . { . struct kuba uba with 4 members . { 04204 kdba dba = 0X00000000 = 0x00000000 file 0 block 0 04208 ub2 seq = 0X2F00 = 47 04210 ub1 rec = 0X21 = 33 04211 cc16 pad = 0X00 = 0 . } 04212 sb2 ext = 0X0500 = 5 04214 sb2 spc = 0X3413 = 4916 . } . struct fbp [2] with 3 members . { . struct kuba uba with 4 members . { 04216 kdba dba = 0X00000000 = 0x00000000 file 0 block 0 04220 ub2 seq = 0X2E00 = 46 04222 ub1 rec = 0X37 = 55 04223 cc16 pad = 0X00 = 0 . } 04224 sb2 ext = 0X0400 = 4 04226 sb2 spc = 0X8807 = 1928 . } . struct fbp [3] with 3 members . { . struct kuba uba with 4 members . { 04228 kdba dba = 0X00000000 = 0x00000000 file 0 block 0 04232 ub2 seq = 0X0000 = 0 04234 ub1 rec = 0X00 = 0 04235 cc16 pad = 0X00 = 0 . } 04236 sb2 ext = 0X0000 = 0 04238 sb2 spc = 0X0000 = 0 . } . struct fbp [4] with 3 members . { . struct kuba uba with 4 members . { 04240 kdba dba = 0X00000000 = 0x00000000 file 0 block 0 04244 ub2 seq = 0X0000 = 0 04246 ub1 rec = 0X00 = 0 04247 cc16 pad = 0X00 = 0 . } 04248 sb2 ext = 0X0000 = 0 04250 sb2 spc = 0X0000 = 0 . } . }
Sun Jan 24 16:44:52 2016 SMON: enabling tx recovery Sun Jan 24 16:44:52 2016 Database Characterset is ZHS16GBK replication_dependency_tracking turned off (no async multimaster replication found) Completed: ALTER DATABASE OPEN
发表在 非常规恢复
标签为 ORA-00312, ORA-00353, ORA-00354, ORA-00604, ORA-00607, ORA-600 2662, ORA-600 4194
评论关闭