搜索
首页数据库mysql教程Oracle 10g 裸设备数据文件恢复,ORA-19501、ORA-27063

Oracle10g 裸设备数据文件恢复,ORA-19501、ORA-27063

环境说明:
OS:aix 6.1
DB:Oracle 10gR2  裸设备

使用rman备份整个数据库备份失败,,提示71数据文件失败,单独备份这个数据文件
$ rman target /

Recovery Manager: Release 10.2.0.1.0 - Production on Thu Nov 7 09:14:31 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

connected to target database: ORCL (DBID=1237792397, not open)

RMAN>  backup as copy datafile 71 format '/backup_dir/in71_%U';

Starting backup at 07-NOV-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=1086 devtype=DISK
channel ORA_DISK_1: starting datafile copy
input datafile fno=00071 name=/dev/rdata_03
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/07/2013 09:18:10
ORA-19501: read error on file "/dev/rdata_03", blockno 178305 (blocksize=8192)
ORA-27063: number of bytes read/written is incorrect
IBM AIX RISC System/6000 Error: 5: I/O error
Additional information: -1
Additional information: 1048576

RMAN> backup check logical validate datafile 71;

Starting backup at 07-NOV-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00071 name=/dev/rdata_03
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/07/2013 09:47:03
ORA-19501: read error on file "/dev/rdata_03", blockno 178305 (blocksize=8192)
ORA-27063: number of bytes read/written is incorrect
IBM AIX RISC System/6000 Error: 5: I/O error
Additional information: -1
Additional information: 1048576

查询坏块个数
SQL> select * from  v$database_block_corruption;

no rows selected

没有查询到逻辑坏块,猜测为物理坏块,数据库层面还认为是好的数据库造成了读的时候提示I/O error


检查71号文件的数据块个数
SQL> select bytes/8192 from v$datafile where file#=71;

BYTES/8192
----------
  1280000
 
 
验证裸设备是否可以读
$ dbv file=/dev/rdata_03 blocksize=8192

DBVERIFY: Release 10.2.0.1.0 - Production on Thu Nov 7 09:48:08 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

DBVERIFY - Verification starting : FILE = /dev/rdata_03

DBV-00102: File I/O error on FILE (/dev/rdata_03) during verification read operation (-2)

 

找出坏块,使用Oracle自带的工具
$ dbv file=/dev/rdata_03 blocksize=8192

DBVERIFY: Release 10.2.0.1.0 - Production on Thu Nov 7 09:48:08 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

DBVERIFY - Verification starting : FILE = /dev/rdata_03

DBV-00102: File I/O error on FILE (/dev/rdata_03) during verification read operation (-2)
同时在另一个窗口中查看
$ ps -ef | grep dbv                   
  oracle  598170  593980  38 09:57:42  pts/1  0:00 dbv file=/dev/rdata_03 blocksize=8192
  oracle 1712282  581750  0 09:57:46  pts/0  0:00 grep dbv
$ truss -faieo /tmp/strace.out -p 598170


598170: klseek(5, 746045440, 0, 0x0FFFFFFFFFFF9530)    = 0
...skipping...
598170: kread(5, " ( 0\011 ???D 5 ??.., 8192)    = 8192
598170: klseek(5, 1461190656, 0, 0x0FFFFFFFFFFF9530)    = 0
598170: kread(5, " ( 0\011 ???D 5 ??.., 8192)    Err#5  EIO
598170: kwrite(2, "\n D B V - 0 0 1 0 2 :  ", 12)      = 12
598170: kwrite(2, " F i l e  I / O  e r r".., 24)    = 24
598170: kwrite(2, " / d e v / r d a t a _ c".., 15)    = 15
598170: kwrite(2, " )  d u r i n g  ", 9)              = 9
598170: kwrite(2, " v e r i f i c a t i o n".., 17)    = 17
598170: kwrite(2, "  o p e r a t i o n  (", 12)      = 12
598170: kwrite(2, " -", 1)                              = 1
598170: kwrite(2, " 2", 1)                              = 1
598170: kwrite(2, " )", 1)                              = 1
598170: kwrite(2, "\n", 1)                              = 1
598170: close(5)                                        = 0
598170: close(4)                                        = 0
598170: kfcntl(1, F_GETFL, 0x00000000101A2087)          = 67110914
598170: kfcntl(2, F_GETFL, 0x00000000101A2087)          = 67110914
598170: _exit(1)
...skipping...
598170: kread(5, " ( 0\011 ???D 5 ??.., 8192)    = 8192
598170: klseek(5, 1461190656, 0, 0x0FFFFFFFFFFF9530)    = 0
598170: kread(5, " ( 0\011 ???D 5 ??.., 8192)    Err#5  EIO
598170: kwrite(2, "\n D B V - 0 0 1 0 2 :  ", 12)      = 12
598170: kwrite(2, " F i l e  I / O  e r r".., 24)    = 24
598170: kwrite(2, " / d e v / r d a t a _ c".., 15)    = 15
598170: kwrite(2, " )  d u r i n g  ", 9)              = 9
598170: kwrite(2, " v e r i f i c a t i o n".., 17)    = 17
598170: kwrite(2, "  o p e r a t i o n  (", 12)      = 12
598170: kwrite(2, " -", 1)                              = 1
598170: kwrite(2, " 2", 1)                              = 1
598170: kwrite(2, " )", 1)                              = 1
598170: kwrite(2, "\n", 1)                              = 1
598170: close(5)                                        = 0
598170: close(4)                                        = 0
598170: kfcntl(1, F_GETFL, 0x00000000101A2087)          = 67110914
598170: kfcntl(2, F_GETFL, 0x00000000101A2087)          = 67110914
598170: _exit(1)
找到开始的坏块
1461190656/8192=178368
说明第一个坏块为178368,验证最后的坏块,最大的数据块是1280000

$ dbv file=/dev/rdata_03 blocksize=8192 start=1461190656

DBVERIFY: Release 10.2.0.1.0 - Production on Thu Nov 7 10:10:58 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


DBV-00102: File I/O error on FILE (/dev/rdata_03) during start read operation (-2)

$ dbv file=/dev/rdata_03 blocksize=8192 start=194719

DBVERIFY: Release 10.2.0.1.0 - Production on Thu Nov 7 10:52:56 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

DBVERIFY - Verification starting : FILE = /dev/rdata_03


DBVERIFY - Verification complete

声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
在MySQL中使用视图的局限性是什么?在MySQL中使用视图的局限性是什么?May 14, 2025 am 12:10 AM

mysqlviewshavelimitations:1)他们不使用Supportallsqloperations,限制DatamanipulationThroughViewSwithJoinSorsubqueries.2)他们canimpactperformance,尤其是withcomplexcomplexclexeriesorlargedatasets.3)

确保您的MySQL数据库:添加用户并授予特权确保您的MySQL数据库:添加用户并授予特权May 14, 2025 am 12:09 AM

porthusermanagementInmysqliscialforenhancingsEcurityAndsingsmenting效率databaseoperation.1)usecReateusertoAddusers,指定connectionsourcewith@'localhost'or@'%'。

哪些因素会影响我可以在MySQL中使用的触发器数量?哪些因素会影响我可以在MySQL中使用的触发器数量?May 14, 2025 am 12:08 AM

mysqldoes notimposeahardlimitontriggers,butacticalfactorsdeterminetheireffactective:1)serverConfiguration impactactStriggerGermanagement; 2)复杂的TriggerSincreaseSySystemsystem load; 3)largertablesslowtriggerperfermance; 4)highConconcConcrencerCancancancancanceTigrignecentign; 5); 5)

mysql:存储斑点安全吗?mysql:存储斑点安全吗?May 14, 2025 am 12:07 AM

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

mySQL:通过PHP Web界面添加用户mySQL:通过PHP Web界面添加用户May 14, 2025 am 12:04 AM

通过PHP网页界面添加MySQL用户可以使用MySQLi扩展。步骤如下:1.连接MySQL数据库,使用MySQLi扩展。2.创建用户,使用CREATEUSER语句,并使用PASSWORD()函数加密密码。3.防止SQL注入,使用mysqli_real_escape_string()函数处理用户输入。4.为新用户分配权限,使用GRANT语句。

mysql:blob和其他无-SQL存储,有什么区别?mysql:blob和其他无-SQL存储,有什么区别?May 13, 2025 am 12:14 AM

mysql'sblobissuitableForStoringBinaryDataWithInareLationalDatabase,而alenosqloptionslikemongodb,redis和calablesolutionsoluntionsoluntionsoluntionsolundortionsolunsolunsstructureddata.blobobobsimplobissimplobisslowderperformandperformanceperformancewithlararengelitiate;

mySQL添加用户:语法,选项和安全性最佳实践mySQL添加用户:语法,选项和安全性最佳实践May 13, 2025 am 12:12 AM

toaddauserinmysql,使用:createUser'username'@'host'Indessify'password'; there'showtodoitsecurely:1)choosethehostcarecarefullytocon trolaccess.2)setResourcelimitswithoptionslikemax_queries_per_hour.3)usestrong,iniquepasswords.4)Enforcessl/tlsconnectionswith

MySQL:如何避免字符串数据类型常见错误?MySQL:如何避免字符串数据类型常见错误?May 13, 2025 am 12:09 AM

toAvoidCommonMistakeswithStringDatatatPesInMysQl,CloseStringTypenuances,chosethirtightType,andManageEngencodingAndCollat​​ionsEttingsefectery.1)usecharforfixed lengengters lengengtings,varchar forbariaible lengength,varchariable length,andtext/blobforlabforlargerdata.2 seterters seterters seterters seterters

See all articles

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

WebStorm Mac版

WebStorm Mac版

好用的JavaScript开发工具

mPDF

mPDF

mPDF是一个PHP库,可以从UTF-8编码的HTML生成PDF文件。原作者Ian Back编写mPDF以从他的网站上“即时”输出PDF文件,并处理不同的语言。与原始脚本如HTML2FPDF相比,它的速度较慢,并且在使用Unicode字体时生成的文件较大,但支持CSS样式等,并进行了大量增强。支持几乎所有语言,包括RTL(阿拉伯语和希伯来语)和CJK(中日韩)。支持嵌套的块级元素(如P、DIV),

螳螂BT

螳螂BT

Mantis是一个易于部署的基于Web的缺陷跟踪工具,用于帮助产品缺陷跟踪。它需要PHP、MySQL和一个Web服务器。请查看我们的演示和托管服务。

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

功能强大的PHP集成开发环境