【翻译自mos文章】V$BACKUP_DATAFILE 中显示file#=0 有损坏

本文探讨了在Oracle数据库中查询v$backup_datafile时,file#=0的控制文件显示为损坏的情况。实际上,这是由于RMAN使用这些字段存储自动备份的时间戳和序列信息所导致的,并非真正的损坏。

来源于:
V$BACKUP_DATAFILE Shows Corruptions for File #0 (文档 ID 399113.1)

适用于:
Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.1.0.6 [Release 9.2 to 11.1]
Information in this document applies to any platform.

症状:
当查询v$backup_datafile时,发现对于file#=0的行,其 MARKED_CORRUPT, MEDIA_CORRUPT, or LOGICALLY_CORRUPT 列 有非零值,比如:

SQL> SELECT MARKED_CORRUPT, MEDIA_CORRUPT, LOGICALLY_CORRUPT
      FROM V$BACKUP_DATAFILE WHERE FILE#=0;

 MARKED_CORRUPT MEDIA_CORRUPT LOGICALLY_CORRUPT
 -------------- ------------- -----------------
              0             0                 0
           2006           823                 1

alert中没有损坏的条目,并且dbv工具也没有发现任何datafile上有损坏。

原因:
file#=0 是 控制文件

非零值不表示在控制文件中有损坏,而是:instead it is a result of the underlying fields being used by RMAN for timestamp and sequence information for autobackups, ie. this is intended behaviour.

该问题被提升为bug5520904,在关闭该问题时,被定性为不是一个bug

理想情况下,v$backup_datafile 视图的定义应该排除file#=0,或者rman应该使用一些其他field 来存储timestamp/sequence information--这个可能会在未来的去实现。

解决方案:

当在v$backup_datafile中看到file#=0的非零值 损坏 时,可以安全的忽略。

参考:
BUG:5520904 - RMAN WITH AUTOBACKUP ON RESULS IN CONTROLFILEBACKUP MARKED CORRUPT

25/09/19 01:02:07 INFO input.FileInputFormat: Total input paths to process : 3 25/09/19 01:02:07 INFO mapreduce.JobSubmitter: number of splits:3 25/09/19 01:02:07 INFO Configuration.deprecation: yarn.resourcemanager.system-metrics-publisher.enabled is deprecated. Instead, use yarn.system-metrics-publisher.enabled 25/09/19 01:02:08 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1742282717592_54820905 25/09/19 01:02:08 INFO mapred.YARNRunner: Launch job with jobPriority : 1 25/09/19 01:02:08 INFO impl.YarnClientImpl: Submitted application application_1742282717592_54820905 25/09/19 01:02:08 INFO mapreduce.Job: The url to track the job: http://rm1.offline.hadoop.data.sina.com.cn:9008/proxy/application_1742282717592_54820905/ 25/09/19 01:02:08 INFO mapreduce.Job: Running job: job_1742282717592_54820905 25/09/19 01:02:17 INFO mapreduce.Job: Job job_1742282717592_54820905 running in uber mode : false 25/09/19 01:02:17 INFO mapreduce.Job: map 0% reduce 0% 25/09/19 01:02:31 INFO mapreduce.Job: map 67% reduce 0% 25/09/19 01:02:43 INFO mapreduce.Job: map 78% reduce 0% 25/09/19 01:02:44 INFO mapreduce.Job: map 100% reduce 0% 25/09/19 01:02:51 INFO mapreduce.Job: map 100% reduce 14% 25/09/19 01:02:52 INFO mapreduce.Job: map 100% reduce 45% 25/09/19 01:02:53 INFO mapreduce.Job: map 100% reduce 65% 25/09/19 01:02:54 INFO mapreduce.Job: map 100% reduce 75% 25/09/19 01:02:55 INFO mapreduce.Job: map 100% reduce 82% 25/09/19 01:02:56 INFO mapreduce.Job: map 100% reduce 88% 25/09/19 01:02:57 INFO mapreduce.Job: map 100% reduce 94% 25/09/19 01:02:58 INFO mapreduce.Job: map 100% reduce 96% 25/09/19 01:02:59 INFO mapreduce.Job: map 100% reduce 97% 25/09/19 01:03:02 INFO mapreduce.Job: map 100% reduce 99% 25/09/19 01:03:04 INFO mapreduce.Job: map 100% reduce 100% 25/09/19 01:03:08 INFO mapreduce.Job: Job job_1742282717592_54820905 completed successfully 25/09/19 01:03:08 INFO mapreduce.Job: Counters: 157 File System Counters ADNS: Number of bytes read=0 ADNS: Number of bytes written=0 ADNS: Number of read operations=0 ADNS: Number of large read operations=0 ADNS: Number of write operations=0 DCNS: Number of bytes read=0 DCNS: Number of bytes written=0 DCNS: Number of read operations=0 DCNS: Number of large read operations=0 DCNS: Number of write operations=0 DWNS: Number of bytes read=0 DWNS: Number of bytes written=0 DWNS: Number of read operations=0 DWNS: Number of large read operations=0 DWNS: Number of write operations=0 FILE: Number of bytes read=54467 FILE: Number of bytes written=62792629 FILE: Number of read operations=0 FILE: Number of large read operations=0 FILE: Number of write operations=0 MBNS: Number of bytes read=0 MBNS: Number of bytes written=0 MBNS: Number of read operations=0 MBNS: Number of large read operations=0 MBNS: Number of write operations=0 N-ADXNS: Number of bytes read=0 N-ADXNS: Number of bytes written=0 N-ADXNS: Number of read operations=0 N-ADXNS: Number of large read operations=0 N-ADXNS: Number of write operations=0 NS1-BACKUP: Number of bytes read=4051010 NS1-BACKUP: Number of bytes written=70804 NS1-BACKUP: Number of read operations=912 NS1-BACKUP: Number of large read operations=0 NS1-BACKUP: Number of write operations=600 NS2-BACKUP: Number of bytes read=0 NS2-BACKUP: Number of bytes written=0 NS2-BACKUP: Number of read operations=0 NS2-BACKUP: Number of large read operations=0 NS2-BACKUP: Number of write operations=0 NS3-BACKUP: Number of bytes read=0 NS3-BACKUP: Number of bytes written=0 NS3-BACKUP: Number of read operations=0 NS3-BACKUP: Number of large read operations=0 NS3-BACKUP: Number of write operations=0 NS4-BACKUP: Number of bytes read=0 NS4-BACKUP: Number of bytes written=0 NS4-BACKUP: Number of read operations=0 NS4-BACKUP: Number of large read operations=0 NS4-BACKUP: Number of write operations=0 VIEWFS: Number of bytes read=0 VIEWFS: Number of bytes written=0 VIEWFS: Number of read operations=0 VIEWFS: Number of large read operations=0 VIEWFS: Number of write operations=0 WBMLNS: Number of bytes read=0 WBMLNS: Number of bytes written=0 WBMLNS: Number of read operations=0 WBMLNS: Number of large read operations=0 WBMLNS: Number of write operations=0 WBNS: Number of bytes read=0 WBNS: Number of bytes written=0 WBNS: Number of read operations=0 WBNS: Number of large read operations=0 WBNS: Number of write operations=0 WBXNS: Number of bytes read=0 WBXNS: Number of bytes written=0 WBXNS: Number of read operations=0 WBXNS: Number of large read operations=0 WBXNS: Number of write operations=0 Job Counters Killed reduce tasks=1 Launched map tasks=3 Launched reduce tasks=300 Rack-local map tasks=3 Total time spent by all maps in occupied slots (ms)=147676 Total time spent by all reduces in occupied slots (ms)=4329292 Total time spent by all map tasks (ms)=73838 Total time spent by all reduce tasks (ms)=2164646 Total vcore-milliseconds taken by all map tasks=73838 Total vcore-milliseconds taken by all reduce tasks=2164646 Total megabyte-milliseconds taken by all map tasks=113415168 Total megabyte-milliseconds taken by all reduce tasks=4433195008 Total gcore-seconds taken by all map tasks=0 Total gcore-seconds taken by all reduce tasks=0 Map-Reduce Framework Map input records=109072 Map output records=2046 Map output bytes=77734 Map output materialized bytes=77037 Input split bytes=1089 Combine input records=0 Combine output records=0 Reduce input groups=1914 Reduce shuffle bytes=77037 Reduce input records=2046 Reduce output records=1914 Spilled Records=4092 Shuffled Maps =900 Failed Shuffles=0 Merged Map outputs=900 GC time elapsed (ms)=44702 CPU time spent (ms)=550080 Physical memory (bytes) snapshot=178229309440 Virtual memory (bytes) snapshot=1151441580032 Total committed heap usage (bytes)=344315658240 Blog Mapper input_count=109072 GameHotKeywordsMapMapper TOTAL_map_output=2046 MeidiKeywordsReducer cartoon_cartoon_259_mid_output=1 cartoon_cartoon_263_mid_output=31 cartoon_cartoon_306_mid_output=80 cartoon_cartoon_307_mid_output=1 cartoon_cartoon_311_mid_output=10 cartoon_cartoon_312_mid_output=17 cartoon_cartoon_321_mid_output=1 cartoon_cartoon_322_mid_output=10 cartoon_cartoon_323_mid_output=4 cartoon_cartoon_328_mid_output=8 cartoon_cartoon_338_mid_output=43 cartoon_cartoon_342_mid_output=11 cartoon_cartoon_346_mid_output=91 cartoon_cartoon_349_mid_output=291 cartoon_cartoon_350_mid_output=216 cartoon_cartoon_351_mid_output=58 cartoon_cartoon_352_mid_output=105 cartoon_cartoon_353_mid_output=14 cartoon_cartoon_355_mid_output=133 cartoon_cartoon_358_mid_output=9 cartoon_cartoon_359_mid_output=10 cartoon_cartoon_360_mid_output=6 cartoon_cartoon_363_mid_output=18 cartoon_cartoon_365_mid_output=195 cartoon_cartoon_367_mid_output=131 cartoon_cartoon_368_mid_output=22 cartoon_cartoon_369_mid_output=5 cartoon_cartoon_371_mid_output=57 cartoon_cartoon_372_mid_output=79 cartoon_cartoon_374_mid_output=50 cartoon_cartoon_378_mid_output=1 cartoon_cartoon_379_mid_output=1 cartoon_cartoon_387_mid_output=6 cartoon_cartoon_388_mid_output=1 cartoon_cartoon_391_mid_output=11 cartoon_cartoon_398_mid_output=12 cartoon_cartoon_399_mid_output=10 cartoon_cartoon_400_mid_output=7 cartoon_cartoon_401_mid_output=13 cartoon_cartoon_402_mid_output=2 cartoon_cartoon_403_mid_output=11 cartoon_cartoon_490_mid_output=132 Shuffle Errors BAD_ID=0 CONNECTION=0 IO_ERROR=0 WRONG_LENGTH=0 WRONG_MAP=0 WRONG_REDUCE=0 apache setup value cacheFile=36 File Input Format Counters Bytes Read=0 File Output Format Counters Bytes Written=0
最新发布
09-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值