标签云
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,671)
- DB2 (22)
- MySQL (73)
- Oracle (1,533)
- 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安装升级 (92)
- 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)
-
最近发表
- Kylin Linux 安装19c
- 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恢复
分类目录归档:Oracle备份恢复
ORA-600 16703故障再现
从第一次发现ORA-600 16703(警告:互联网中有oracle介质被注入恶意程序导致—ORA-600 16703)至今已经7年多时间了,最近依旧有客户中招,提醒各位注意该问题
Sat Sep 14 21:43:29 2024 MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set Sat Sep 14 21:43:29 2024 SMON: enabling cache recovery Errors in file D:\ORACLE\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\trace\orcl_ora_6264.trc (incident=8561): ORA-00600: 内部错误代码, 参数: [16703], [1403], [20], [], [], [], [], [], [], [], [], [] Incident details in: D:\ORACLE\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\incident\incdir_8561\orcl_ora_6264_i8561.trc Sat Sep 14 21:43:31 2024 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:\ORACLE\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\trace\orcl_ora_6264.trc: ORA-00704: 引导程序进程失败 ORA-00704: 引导程序进程失败 ORA-00600: 内部错误代码, 参数: [16703], [1403], [20], [], [], [], [], [], [], [], [], [] Errors in file D:\ORACLE\APP\ADMINISTRATOR\diag\rdbms\orcl\orcl\trace\orcl_ora_6264.trc: ORA-00704: 引导程序进程失败 ORA-00704: 引导程序进程失败 ORA-00600: 内部错误代码, 参数: [16703], [1403], [20], [], [], [], [], [], [], [], [], [] Error 704 happened during db open, shutting down database USER (ospid: 6264): terminating the instance due to error 704 Instance terminated by USER, pid = 6264 ORA-1092 signalled during: alter database open... opiodr aborting process unknown ospid (6264) as a result of ORA-1092
由于此类故障出现较多,破坏性加大,对其进行了深入的研究,在没有破坏现场的情况下,通过对tab$进行直接重建,实现数据库完美恢复(数据0丢失,数据库无需逻辑迁移[原库直接可用])
以前关于此类报错的文章:
10g数据库遭遇ORA-600 16703
12C数据库遭遇ORA-600 16703
ORA-600 kzrini:!uprofile处理
ORA-600 16703故障解析—tab$表被清空
近期又遇到ORA-600 16703和ORA-702故障
ORA-00600: internal error code, arguments: [16703], [1403], [4] 原因
tab$异常被处理之后报ORA-600 13304故障处理
最近遇到几起ORA-600 16703故障(tab$被清空),请引起重视
ORA-600 16703直接把orachk备份表插入到tab$恢复
警告:互联网中有oracle介质被注入恶意程序导致—ORA-600 16703
aix平台tab$被删除可能出现ORA-600 [16703], [1403], [28]错误
ORA-00600: internal error code, arguments: [16703], [1403], [4] 故障处理
ORA-00600: internal error code, arguments: [16703], [1403], [32]
ORA-600 16703故障,客户找人恢复数据库,数据库被进一步恶意破坏—ORA-00704 ORA-00922
尽可能不要从互联网下载Oracle安装介质和Patch,避免被注入恶意脚本,并检查已经存在的安装介质的sha256码
drop tablespace xxx including contents恢复
最近接到一个客户恢复请求,对系统的核心业务表空间发起了drop tablespace xxx including contents 操作,导致该表空间被删除,客户在删除表空间操作之前使用expdp导出了一份元数据.
客户在咨询我的同时,也咨询了其他人,有人给客户答复是可以通过修改字典(以为有导出的元数据就可以逆向想改文件回去),然后把数据文件拷贝过去,实现恢复,成功概率65%[只能说是真牛]
对于这个客户的故障,这个思路不可能成功,原因有:
1)客户的系统中有部分字典信息已经彻底丢失,无法通过闪回找回来,因此无法对于字典逆向dml操作完成修改
2)drop tbs这个操作涉及的字典操作非常多,而且也非常复杂,在我的认知中,国内不一定有人完全在短时间内梳理清楚相互关系,完成逆向dml操作
3)他们咨询的人不是圈子中恢复大牛(因为圈子不大,大牛也不可能给他们出这种恢复方案)
4)数据文件复制到新库,完全不是同一个库的,要大量修改文件头信息,我估计他们在这一步都不能成功
果然不出所料,他们做了一个测试,结果库起不来
这个客户只是drop tablespace including contents 没有加上and datafiles,因此所有数据文件都还在
所以这个恢复相对比较简单,直接使用dul之类工具扫描数据文件获取到实际数据.结合客户导出的元数据和通过一些途径恢复出来的dataobj#信息,进行整合,实现数据接近完美恢复,可以业务直接启动成功,其中几个大表的lbo字段数据恢复情况
类似这样的drop tablespace恢复案例我们经历过很多,但是这个是恢复效果最好的(1.所有数据文件没有丢失;2.在删除表空间之前元数据导出了一份;3.通过找删除记录,awr中表,历史的dmp等方法找出来所有表的dataobj#),以前的一些表空间删除恢复案例:
ASM删除表空间恢复
drop tablesapce 数据恢复
oracle drop tablespace 恢复最后一招
分享运气超级好的一次drop tablespace 数据恢复
ORA-600 krhpfh_03-1210故障处理
rac数据库多个节点均处于open状态,数据查询正常,但是应用入库有些时候会失败报类似ORA-01187: cannot read from file because it failed verification tests错误:
故障最初原因是由于有坏盘,换盘之后,有两个节点数据实例crash
Mon Aug 19 21:16:47 2024 Read of datafile '+DATA/xifenfei99.dbf' (fno 1399) header failed with ORA-01207 Rereading datafile 1399 header failed with ORA-01207 Errors in file /u01/app/oracle/diag/rdbms/xff/xff5/trace/xff5_ckpt_75779.trc: ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode ORA-01122: database file 1399 failed verification check ORA-01110: data file 1399: '+DATA/xifenfei99.dbf' ORA-01207: file is more recent than control file - old control file Errors in file /u01/app/oracle/diag/rdbms/xff/xff5/trace/xff5_ckpt_75779.trc: ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode ORA-01122: database file 1399 failed verification check ORA-01110: data file 1399: '+DATA/xifenfei99.dbf' ORA-01207: file is more recent than control file - old control file CKPT (ospid: 75779): terminating the instance due to error 1242 Mon Aug 19 21:16:47 2024 System state dump requested by (instance=5, osid=75779 (CKPT)), summary=[abnormal instance termination]. System State dumped to trace file /u01/app/oracle/diag/rdbms/xff/xff5/trace/xff5_diag_75725.trc Mon Aug 19 21:16:52 2024 ORA-1092 : opitsk aborting process Mon Aug 19 21:16:53 2024 ORA-1092 : opitsk aborting process Mon Aug 19 21:16:53 2024 License high water mark = 131 Termination issued to instance processes. Waiting for the processes to exit Mon Aug 19 21:17:02 2024 Instance termination failed to kill one or more processes Instance terminated by CKPT, pid = 75779 Mon Aug 19 21:17:03 2024 USER (ospid: 33495): terminating the instance Termination issued to instance processes. Waiting for the processes to exit Mon Aug 19 21:17:13 2024 Instance termination failed to kill one or more processes Instance terminated by USER, pid = 33495
但是数据库人工启动成功,查询所有数据文件均处于online状态
可是有部分入库进程非常慢大量等待在enq:HW – contention
所有数据库节点alert日志偶尔报ORA-01186: file 1399 failed verification tests等错
Tue Aug 20 21:30:02 2024 Read of datafile '+DATA/xifenfei99.dbf' (fno 1399) header failed with ORA-01207 Rereading datafile 1399 header failed with ORA-01207 Errors in file /u01/app/oracle/diag/rdbms/xff/xff1/trace/xff1_dbw0_43828.trc: ORA-01186: file 1399 failed verification tests ORA-01122: database file 1399 failed verification check ORA-01110: data file 1399: '+DATA/xifenfei99.dbf' ORA-01207: file is more recent than control file - old control file File 1399 not verified due to error ORA-01122 Read of datafile '+DATA/xifenfei99.dbf' (fno 1399) header failed with ORA-01207 Rereading datafile 1399 header failed with ORA-01207 Errors in file /u01/app/oracle/diag/rdbms/xff/xff1/trace/xff1_dbw0_43828.trc: ORA-01186: file 1399 failed verification tests ORA-01122: database file 1399 failed verification check ORA-01110: data file 1399: '+DATA/xifenfei99.dbf' ORA-01207: file is more recent than control file - old control file File 1399 not verified due to error ORA-01122
基于这种情况,初步判断:
1. 是由于该集群本身多节点(6个节点),只要有节点是open状态,其他节点关闭再启动依旧可以正常启动,但是无法写入数据到报ORA-01207错误的数据文件中(可以读取数据).
2. 如果所有节点关闭关闭,然后数据库无法正常启动会报ORA-01207: file is more recent than control file错误
这样的情况,根据以往经验,ORA-01207: file is more recent than control file通过重建ctl即可恢复,先关闭所有节点,然后尝试启动一个节点
SQL> alter database open; alter database open * ERROR at line 1: ORA-01122: database file 1399 failed verification check ORA-01110: data file 1399: '+DATA/xifenfei99.dbf' ORA-01207: file is more recent than control file - old control file
alter database open Wed Aug 21 14:14:22 2024 SUCCESS: diskgroup REDO was mounted Wed Aug 21 14:14:22 2024 NOTE: dependency between database xff and diskgroup resource ora.REDO.dg is established Wed Aug 21 14:14:27 2024 Errors in file /u01/app/oracle/diag/rdbms/xff/xff1/trace/xff1_ora_47884.trc: ORA-01122: database file 1399 failed verification check ORA-01110: data file 1399: '+DATA/xifenfei99.dbf' ORA-01207: file is more recent than control file - old control file ORA-1122 signalled during: alter database open...
和预期的一样,重试重建ctl,然后数据库报ORA-00600 [krhpfh_03-1210]错误
SQL> shutdown immediate; ORA-01109: database not open Database dismounted. ORACLE instance shut down. SQL> startup nomount pfile='/tmp/xff/pfile'; ORACLE instance started. Total System Global Area 1.3255E+11 bytes Fixed Size 2244832 bytes Variable Size 9.7442E+10 bytes Database Buffers 3.4897E+10 bytes Redo Buffers 208654336 bytes SQL> @rectl Control file created. SQL> SQL> SQL> SQL> recover database; ORA-00283: recovery session canceled due to errors ORA-01610: recovery using the BACKUP CONTROLFILE option must be done SQL> recover database using backup controlfile; ORA-00283: recovery session canceled due to errors ORA-00600: internal error code, arguments: [krhpfh_03-1210], [fno =], [1399], [fhcpc =], [274968], [fhccc =], [274983], [], [], [], [], [] ORA-01110: data file 1399: '+DATA/xifenfei99.dbf'
这里的提示是有fhcpc和fhccc值不对导致,通过bbed查看相关值
BBED> set file 1399 FILE# 1399 BBED> p kcvfhccc ub4 kcvfhccc @148 0x00043227 ===>274983(10进制) BBED> p kcvfhcpc ub4 kcvfhcpc @140 0x00043218 ===>274968(10进制)
报错比较明显通过bbed修改这两个值
BBED> m /x 2a390400 offset 148 Warning: contents of previous BIFILE will be lost. Proceed? (Y/N) y File: /tmp/xff/1399.dbf.header (1399) Block: 1 Offsets: 148 to 659 Dba:0x5dc00001 ------------------------------------------------------------------------ 2a390400 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0c000000 0f004441 5441315f 5442535f 45515f30 31000000 00000000 00000000 00000000 78010000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 cfebdd33 01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 419333df 81001c0a 6ab13046 06000000 c1520400 02000000 10000000 7e000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0d000d00 0d000100 00000000 00000000 <32 bytes per line> BBED> m /x 2b390400 offset 140 File: /tmp/xff/1399.dbf.header (1399) Block: 1 Offsets: 140 to 651 Dba:0x5dc00001 ------------------------------------------------------------------------ 2b390400 e6ef524d 2a390400 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0c000000 0f004441 5441315f 5442535f 45515f30 31000000 00000000 00000000 00000000 78010000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 cfebdd33 01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 419333df 81001c0a 6ab13046 06000000 c1520400 02000000 10000000 7e000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0d000d00 0d000100 <32 bytes per line>
修改好这些值之后,recover database和open数据库成功,检查字典正常,业务读写也正常,完成本次恢复任务
SQL> @hcheck HCheck Version 07MAY18 on 21-AUG-2024 15:13:02 ---------------------------------------------- Catalog Version 11.2.0.3.0 (1102000300) db_name: XFF Catalog Fixed Procedure Name Version Vs Release Timestamp Result ------------------------------ ... ---------- -- ---------- -------------- ------ .- LobNotInObj ... 1102000300 <= *All Rel* 08/21 15:13:02 PASS .- MissingOIDOnObjCol ... 1102000300 <= *All Rel* 08/21 15:13:02 PASS .- SourceNotInObj ... 1102000300 <= *All Rel* 08/21 15:13:02 PASS .- OversizedFiles ... 1102000300 <= *All Rel* 08/21 15:13:02 PASS .- PoorDefaultStorage ... 1102000300 <= *All Rel* 08/21 15:13:02 PASS .- PoorStorage ... 1102000300 <= *All Rel* 08/21 15:13:02 PASS .- TabPartCountMismatch ... 1102000300 <= *All Rel* 08/21 15:13:02 PASS .- OrphanedTabComPart ... 1102000300 <= *All Rel* 08/21 15:13:03 PASS .- MissingSum$ ... 1102000300 <= *All Rel* 08/21 15:13:03 PASS .- MissingDir$ ... 1102000300 <= *All Rel* 08/21 15:13:03 PASS .- DuplicateDataobj ... 1102000300 <= *All Rel* 08/21 15:13:03 PASS .- ObjSynMissing ... 1102000300 <= *All Rel* 08/21 15:13:03 PASS .- ObjSeqMissing ... 1102000300 <= *All Rel* 08/21 15:13:03 PASS .- OrphanedUndo ... 1102000300 <= *All Rel* 08/21 15:13:03 PASS .- OrphanedIndex ... 1102000300 <= *All Rel* 08/21 15:13:03 PASS .- OrphanedIndexPartition ... 1102000300 <= *All Rel* 08/21 15:13:03 PASS .- OrphanedIndexSubPartition ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- OrphanedTable ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- OrphanedTablePartition ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- OrphanedTableSubPartition ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- MissingPartCol ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- OrphanedSeg$ ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- OrphanedIndPartObj# ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- DuplicateBlockUse ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- FetUet ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- Uet0Check ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- SeglessUET ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- BadInd$ ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- BadTab$ ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- BadIcolDepCnt ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- ObjIndDobj ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- TrgAfterUpgrade ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- ObjType0 ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- BadOwner ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- StmtAuditOnCommit ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- BadPublicObjects ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- BadSegFreelist ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- BadDepends ... 1102000300 <= *All Rel* 08/21 15:13:04 PASS .- CheckDual ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- ObjectNames ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- BadCboHiLo ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- ChkIotTs ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- NoSegmentIndex ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- BadNextObject ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- DroppedROTS ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- FilBlkZero ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- DbmsSchemaCopy ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- OrphanedObjError ... 1102000300 > 1102000000 08/21 15:13:05 PASS .- ObjNotLob ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- MaxControlfSeq ... 1102000300 <= *All Rel* 08/21 15:13:05 PASS .- SegNotInDeferredStg ... 1102000300 > 1102000000 08/21 15:13:06 PASS .- SystemNotRfile1 ... 1102000300 > 902000000 08/21 15:13:06 PASS .- DictOwnNonDefaultSYSTEM ... 1102000300 <= *All Rel* 08/21 15:13:07 PASS .- OrphanTrigger ... 1102000300 <= *All Rel* 08/21 15:13:07 PASS .- ObjNotTrigger ... 1102000300 <= *All Rel* 08/21 15:13:07 PASS --------------------------------------- 21-AUG-2024 15:13:07 Elapsed: 5 secs --------------------------------------- Found 0 potential problem(s) and 0 warning(s) PL/SQL procedure successfully completed. Statement processed. Complete output is in trace file: /u01/app/oracle/diag/rdbms/xff/xff1/trace/xff1_ora_70961_HCHECK.trc