聯系:手機(+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
新聞熱點
疑難解答
圖片精選