ITPub博客

首页 > 数据库 > Oracle > oracle ORA-01157 ORA-01110 ORA-27048(被勒索的情况)

oracle ORA-01157 ORA-01110 ORA-27048(被勒索的情况)

原创 Oracle 作者:wanglinghua0907 时间:2024-01-16 16:48:11 0 删除 编辑

open的时候报错ORA-01157 ORA-01110 ORA-27048

OR'v27048: sk if i: file header Additional i or-mat-ion: 14 formation is inval Errors in file ORA—01157: cannot identify/ lock data file 45 - see OBWR trace file ORA-01110: data file 45: /oradata/his/H1s/datafi1e/01_mf_hisspace_kzf05306_. dbf' ORA-27048: skqfifi: file header information is invalid Additional information: 14 Errors in file /u01/app/orac1e/diag/rdbms/hisdg/his/trace/his_dbwO_36037. trc: ORA-01157: cannot identify/lock data file 46 - see DBWR trace file ORA-01110: data file 46: dbf' ORA-27048: skafifi: file header information is •invalid Additional in%rmathon: 14 Errors in file trc: ORA-01157: cannot identify/lock data file 47 - see OBWR trace file ORA-OIIIO: data file 47: dbf' ORA—27048: skafifi: file header information is invalid Additional information: 14 Errors in file /u01/app/orac1e/diag/rdbms/hisdg/his/trace/his_dbwO_36037.trc: ORA-01157: cannot identify/lock data file 48 - see DBWR trace file ORA-01110: data file 48: dbf • ORA-27048: skafifi: file header information is invalid Additional information: 14 Errors in file trc: ORA-01157: cannot identify/lock data file 49 - see OEWR trace file ORA-OIIIO: data file 49: dbf' ORA-2704S: skqfifi: file header information is invalid Additional on: 14 Errors in file trc: ORA-01157: cannot identify/lock data file 50 - see OBWR trace file ORA-01110: data file 50: dbf • ORA-27048: skafifi: file header information is invalid Additional information: 14 errors in file trc: ORA-01157: cannot identify/lock data file 51 see DBWR trace file ORA-01110: data file 51: /oradata/HISDG/datafi1 dbf' RA-2704S: A 1 tnona In or mat Ion: 14 standby crash Recovery aborted due to error 1110. file /u01/app/oracle/dia trc: Errors 1 n . data file 1: 'JoradataÆ's/system01.dbf' ORA-01110 cannot identify/lock data file 1 - see D8WR trace file ORA-01157 : data file 1: /oradata/hi s/system01. dbf ORA-01110: comp 1 eted stand cr ash Recovery. Errors in file u01/app/orac1 e/di ag/rdbms/hi sdg/his/trace/hi trc: standby database requires recovery ORA-104 58 : cannot identify/lock data file 1 - see DBWR trace file ORA-01157 : data file 1: '/oradata/h*s/system01. dbf' ORA-01110 : ORA-104 58 signal led during: alter database open..

 

ALTER DATABASE OPEN in file / on-el 0RA-e111e: additional canmot Identity/ lock data tile S - see DBWR trace tile data file S: ' /tmp/ dbf' Skgtiti: tile header information is Information:

问题原因:

数据文件的0号块(OS块信息)被更改导致。


模拟报错:

1.查看0号块信息

方法一、(bvi)

查看bb01.dbf文件的0开始到96字节(其实看前32字节就行,后面的无关紧要)

bvi -b 0 -s 96 /tmp/soft/app/oracle/oradata/WLH/datafile/bb01.dbf


方法二、(bbed)

过程省略,见bbed文档

bbed修改数据文件


查看

dump /v file 5 block 0 count 32 offset 0

BBED> dump IV file 5 block a count 32 offset e File: /tmp/soft/app/orac1e/oradata/WLH/datafi1e/bbB1 . dbf (5) BIOCk: a Offsets: eaa2eeaa eeaaceff eeeaeoea 6"3eeaa eneoeea ee19eoe bytes per line> e to 31 eeaeo 7d7C7b7a Dba : exeueeeea • •Yl{z


2.修改0号块信息(offset 29-32)


3.重启数据库

shutdown immediate;

startup;


查看alert日志:

ORA-OI 157 : ORA-allle: ORA-27e48: Additional ORA-MI 57 : A AS cannot identify/ lock data file 5 - see D8WR trace file data file 5: ' /tmp/soft/app/orac1e/oradata/WLH/datafi1e/bb01 skgfifi: file header information is invalid . dbf' information: 11 e mp so app orac e lag r cannot identify/lock data file race w _ora_ see DBWR trace file

报错模拟完成


修复

1.将29-32改回即可

bvi查看

bvi -b 0 -s 96 /tmp/soft/app/oracle/oradata/WLH/datafile/bb01.dbf


0号块关键为29-32字节,下面为常规11g,其他版本自行bvi或者bbed查询

00 A2 00 00 00 00 C0 FF 00 00 00 00 00 00 00 00 E6 F4 00 00 00 20 00 00 80 0E 00 00 7D 7C 7B 7A


------------------------------------------

部分大神的说法是需要建同样大小的数据文件,这样下面2部分的值也会完全一样,此时,直接dd或者bbed copy即可。

eøøecøff øeeøeeøe øøøøøøøø 1 esf8eeee ee2eeøee 8e82eeee 7d7c7b7a 1

方法一、(DD)

dd if=o1_mf_users_k76kdpw2_.dbf of=bb01.dbf bs=32 count=1 conv=notrunc

方法二、(bbed)

BBED>copy file 7 block 0 to file 4 block 0



参考:
好记忆不如烂笔头abc/张文胜


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69980685/viewspace-3004113/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle ACE、sql server、oceanbase数据库专家,拥有7年以上的大型数据库运维经验,主方向oracle,擅长故障排除、诊断,大体量(TB)迁移,异常故障修复等。拥有丰富主导大型项目经验。服务行业包括:运营商、银行、金融业、政府单位、医疗、制造业、高校等等。

注册时间:2020-07-31

  • 博文量
    116
  • 访问量
    88783