联系:手机(+86 13429648788) QQ(107644445)QQ咨询惜分飞
标题:dul无法加载bootstrap实现unload table/user恢复
作者:惜分飞
最近有朋友误操作引起了非常大的事故,差点吃了官司.在做数据库迁移的时候,远程误操作删除了原库的system等几个数据库初始安装的文件,而且该磁盘空间使用率非常高,还有少量写入.
最后结果比较悲剧,通过文件系统层面无法直接恢复出来数据文件,而且该库无任何有效备份,又没有表名,列名等信息,无奈之下只能通过底层io block重组来恢复数据文件,可是悲剧又一次发生,这个磁盘上以前也有一份system等文件,最后经过多方重组恢复出来一份相对理想的数据文件.
但是第三方公司通过这样重组出来的数据文件和未被删除的业务文件恢复出来的数据大量有问题,依旧需要我们进一步分析恢复处理.
这篇文章主要描述了dul在无法加载bootstrap命令之后通过一些方法依旧可以正常使用unload table/user 等命令实现数据尽可能恢复.你要知道几百张表没有表名/列名要把他们区分出来那是什么样的工作量……
在dul中配置system文件
D:/xifenfei/system01.dbfD:/TEMP/recover/dul/bak>dulData UnLoader: 11.2.0.0.4 - Internal Only - on Wed Sep 28 17:01:56 2016with 64-bit io functionsCopyright (c) 1994 2016 Bernard van Duijnen All rights reserved.Strictly Oracle Internal Use OnlyDUL> show datafiles;Sorry, no valid data files found in control.txt
使用默认的dul中数据文件配置方法,让dul自己发现数据文件方法不可行
随意表空间号和文件号dul识别
0 0 D:/xifenfei/system01.dbfD:/TEMP/recover/dul/bak>dulData UnLoader: 11.2.0.0.4 - Internal Only - on Wed Sep 28 17:00:27 2016with 64-bit io functionsCopyright (c) 1994 2016 Bernard van Duijnen All rights reserved.Strictly Oracle Internal Use OnlyDUL: Warning: File Type mismatch 1 != 8DUL: Warning: D:/xifenfei/system01.dbf Header tablespace number 3!= 0DUL: Warning: D:/xifenfei/system01.dbf Header relative file number 1 != 0Found db_id = 2948357999Found db_name = XIFENFEIDUL: Warning: Found mismatch while checking file D:/xifenfei/system01.dbfDUL: Warning: DUL osd_parameter or control.dul configuration errorDUL: Warning: Given file number(0) in control file does not match file# in dba(1)
通过这个识别我们可以知道system的表空间号为3,文件号为1
再次配置system让dul识别
3 1 D:/xifenfei/system01.dbfD:/TEMP/recover/dul/bak>dulData UnLoader: 11.2.0.0.4 - Internal Only - on Wed Sep 28 17:03:46 2016with 64-bit io functionsCopyright (c) 1994 2016 Bernard van Duijnen All rights reserved.Strictly Oracle Internal Use OnlyDUL: Warning: File Type mismatch 1 != 8Found db_id = 2948357999Found db_name = XIFENFEIDUL> show datafiles;ts# rf# start blocks offs open err file name3 1 0 320257 0 1 0 D:/xifenfei/system01.dbf
新闻热点
疑难解答
图片精选