- 最后登录
- 2017-5-4
- 在线时间
- 81 小时
- 威望
- 999
- 金钱
- 2391
- 注册时间
- 2013-9-11
- 阅读权限
- 150
- 帖子
- 1124
- 精华
- 5
- 积分
- 999
- UID
- 1220
|
1#
发表于 2017-4-12 19:42:59
|
查看: 2016 |
回复: 1
环境:软件 oracle 10.1.0.4.2 系统 linux
最近刚接手的一个库,没有备份,用rman备份时候报ORA-19501错误
后来查着说是有坏块,用dbv检查没有坏块,用rman检查有坏块,搞不懂
怎么回事,有查过有说是假坏块的,但是情况又不完全相同,跪求大神们出手
相救!!!!!如果能解决,还会追加悬赏。(求解决方法,最好能把原理或者
原因也说下)
以下是一些内容
RMAN> run {
2> backup database format '/infra/flash_recovery_area/ORCL/backupset/%U.dbf';
3> }
Starting backup at 01-AUG-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=296 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00046 name=/infra/oradata/ORCL/datafile/o1_mf_esbigtbl_1q6k0sp9_.dbf
input datafile fno=00002 name=/infra/oradata/ORCL/datafile/o1_mf_undotbs1_1q6jqcko_.dbf
input datafile fno=00063 name=/infra/oradata/ORCL/datafile/o1_mf_content__1q6k05ym_.dbf
input datafile fno=00038 name=/infra/oradata/ORCL/datafile/o1_mf_rtc_tran_1q6jrmdp_.dbf
input datafile fno=00044 name=/infra/oradata/ORCL/datafile/o1_mf_rtc_im_d_1q6jmwh1_.dbf
input datafile fno=00009 name=/infra/oradata/ORCL/datafile/o1_mf_ias_meta_1q6jmw5f_.dbf
input datafile fno=00034 name=/infra/oradata/ORCL/datafile/o1_mf_rtc_docu_1q6jxrqh_.dbf
input datafile fno=00062 name=/infra/oradata/ORCL/datafile/o1_mf_content__1q6k1spm_.dbf
input datafile fno=00064 name=/infra/oradata/ORCL/datafile/o1_mf_content__1q6jr6nb_.dbf
input datafile fno=00007 name=/infra/oradata/ORCL/datafile/o1_mf_portal_i_1q6jyy6o_.dbf
input datafile fno=00019 name=/infra/oradata/ORCL/datafile/o1_mf_orabpel_1q6jvror_.dbf
input datafile fno=00048 name=/infra/oradata/ORCL/datafile/o1_mf_esfreqtb_1q6k1glg_.dbf
input datafile fno=00015 name=/infra/oradata/ORCL/datafile/o1_mf_b2b_rt_1q6jwkjp_.dbf
input datafile fno=00016 name=/infra/oradata/ORCL/datafile/o1_mf_b2b_dt_1q6jwc6d_.dbf
input datafile fno=00042 name=/infra/oradata/ORCL/datafile/o1_mf_rtc_repo_1q6jxkbj_.dbf
input datafile fno=00023 name=/infra/oradata/ORCL/datafile/o1_mf_olts_att_1q6k1dmp_.dbf
input datafile fno=00022 name=/infra/oradata/ORCL/datafile/o1_mf_uddisys__1q6jy8l9_.dbf
input datafile fno=00014 name=/infra/oradata/ORCL/datafile/o1_mf_wcrsys_t_1q6jz4bp_.dbf
input datafile fno=00006 name=/infra/oradata/ORCL/datafile/o1_mf_portal_d_1q6jzf3o_.dbf
input datafile fno=00018 name=/infra/oradata/ORCL/datafile/o1_mf_b2b_lob_1q6jz845_.dbf
input datafile fno=00047 name=/infra/oradata/ORCL/datafile/o1_mf_esfreqid_1q6k1q3m_.dbf
input datafile fno=00053 name=/infra/oradata/ORCL/datafile/o1_mf_esperftb_1q6k0j48_.dbf
input datafile fno=00057 name=/infra/oradata/ORCL/datafile/o1_mf_cwsys_ma_1q6k09o7_.dbf
input datafile fno=00066 name=/infra/oradata/ORCL/datafile/o1_mf_ic_metri_1q6k0v7c_.dbf
input datafile fno=00033 name=/infra/oradata/ORCL/datafile/o1_mf_rtc_arch_1q6k11tf_.dbf
input datafile fno=00027 name=/infra/oradata/ORCL/datafile/o1_mf_olts_svr_1q6k14m8_.dbf
input datafile fno=00011 name=/infra/oradata/ORCL/datafile/o1_mf_disco_pt_1q6k1r44_.dbf
input datafile fno=00051 name=/infra/oradata/ORCL/datafile/o1_mf_esnews_1q6k1nrp_.dbf
input datafile fno=00029 name=/infra/oradata/ORCL/datafile/o1_mf_rtc_look_1q6k1vd4_.dbf
input datafile fno=00041 name=/infra/oradata/ORCL/datafile/o1_mf_rtc_tran_1q6k1xrm_.dbf
input datafile fno=00069 name=/infra/oradata/ORCL/datafile/PROJECT_STAT.dbf
channel ORA_DISK_1: starting piece 1 at 01-AUG-13
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/01/2013 15:48:46
ORA-19501: read error on file "/infra/oradata/ORCL/datafile/o1_mf_content__1q6k05ym_.dbf", blockno 15233 (blocksize=8192)
ORA-27072: File I/O error
Linux Error: 2: No such file or directory
Additional information: 15232
经检查,/infra/oradata/ORCL/datafile/o1_mf_content__1q6k05ym_.dbf物理上存在
[oracle@infra bin]$ oerr ora 1950
01950, 00000, "no privileges on tablespace '%s'"
// *Cause: User does not have privileges to allocate an extent in the
// specified tablespace.
// *Action: Grant the user the appropriate system privileges or grant the user
// space resource on the tablespace.
[oracle@infra bin]$ oerr ora 27072
27072, 00000, "File I/O error"
// *Cause: read/write/readv/writev system call returned error, additional
// information indicates starting block number of I/O
// *Action: check errno
用dbv检查没有坏块
[oracle@infra bin]$ dbv file=/infra/oradata/ORCL/datafile/o1_mf_content__1q6k05ym_.dbf blocksize=8192
DBVERIFY: Release 10.1.0.4.2 - Production on Thu Aug 1 16:26:07 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
DBVERIFY - Verification starting : FILE = /infra/oradata/ORCL/datafile/o1_mf_content__1q6k05ym_.dbf
DBVERIFY - Verification complete
Total Pages Examined : 15258
Total Pages Processed (Data) : 13427
Total Pages Failing (Data) : 0
Total Pages Processed (Index): 20
Total Pages Failing (Index): 0
Total Pages Processed (Other): 1707
Total Pages Processed (Seg) : 0
Total Pages Failing (Seg) : 0
Total Pages Empty : 104
Total Pages Marked Corrupt : 0
Total Pages Influx : 0
Highest block SCN : 1978186924 (0.1978186924)
用如下方法备份检查,还是报相同错误,说明确实存在坏块
RMAN> run {
2> backup validate datafile 63 format '/infra/flash_recovery_area/ORCL/backupset/%U.dbf';
3> }
Starting backup at 01-AUG-13
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=367 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00063 name=/infra/oradata/ORCL/datafile/o1_mf_content__1q6k05ym_.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/01/2013 16:32:35
ORA-19501: read error on file "/infra/oradata/ORCL/datafile/o1_mf_content__1q6k05ym_.dbf", blockno 15233 (blocksize=8192)
ORA-27072: File I/O error
Additional information: 15232
RMAN> backup check logical validate datafile 63;
Starting backup at 01-AUG-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=00063 name=/infra/oradata/ORCL/datafile/o1_mf_content__1q6k05ym_.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/01/2013 17:42:10
ORA-19501: read error on file "/infra/oradata/ORCL/datafile/o1_mf_content__1q6k05ym_.dbf", blockno 15233 (blocksize=8192)
ORA-27072: File I/O error
Additional information: 15232
SQL> SELECT OWNER, SEGMENT_NAME, SEGMENT_TYPE, TABLESPACE_NAME, A.PARTITION_NAME
2 FROM DBA_EXTENTS A
3 WHERE FILE_ID = &FILE_ID
4 AND &BLOCK_ID BETWEEN BLOCK_ID AND BLOCK_ID + BLOCKS - 1;
Enter value for file_id: 63
old 3: WHERE FILE_ID = &FILE_ID
new 3: WHERE FILE_ID = 63
Enter value for block_id: 15233
old 4: AND &BLOCK_ID BETWEEN BLOCK_ID AND BLOCK_ID + BLOCKS - 1
new 4: AND 15233 BETWEEN BLOCK_ID AND BLOCK_ID + BLOCKS - 1
OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME
------------------------------ -------------------------------------------------- ------------------ ------------------------------
PARTITION_NAME
------------------------------
CONTENT DR$IFS_TEXT$I TABLE CONTENT_IFS_CTX_K
|
|