Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > 使用dbv和RMAN检查数据文件中的坏块
【标  题】:使用dbv和RMAN检查数据文件中的坏块
【关键字】:dbv,RMAN
【来  源】:http://www.cublog.cn/u/18048/showart.php?id=104531

使用dbv和RMAN检查数据文件中的坏块

Your Ad Here

1.使用dbv检查

D:oradataeygle>dbv file=EYGLE.DBF blocksize=8192

DBVERIFY: Release 10.1.0.4.0 - Production on 星期六 6月 11 17:36:37 2005

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

DBVERIFY - 开始验证: FILE = EYGLE.DBF
页 219 标记为损坏
Corrupt block relative dba: 0x010000db (file 4, block 219)
Bad check value found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x010000db
 last change scn: 0x0000.0005ee6d seq: 0x2 flg: 0x04
 spare1: 0x0 spare2: 0x0 spare3: 0x0
 consistency value in tail: 0xee6d0602
 check value in block header: 0x9779
computed block checksum: 0x6141

页 1258 标记为损坏
Corrupt block relative dba: 0x010004ea (file 4, block 1258)
Bad check value found during dbv:
Data in bad block:
 type: 6 format: 2 rdba: 0x010004ea
 last change scn: 0x0000.00042681 seq: 0x2 flg: 0x06
 spare1: 0x0 spare2: 0x0 spare3: 0x0
 consistency value in tail: 0x26810602
 check value in block header: 0x660b
computed block checksum: 0x9317



DBVERIFY - 验证完成

检查的页总数: 1280
处理的页总数 (数据): 150
失败的页总数 (数据): 0
处理的页总数 (索引): 127
失败的页总数 (索引): 0
处理的页总数 (其它): 1001
处理的总页数 (段)  : 0
失败的总页数 (段)  : 0
空的页总数: 0
标记为损坏的总页数: 2
流入的页总数: 0
Highest block SCN            : 428223 (0.428223)


2.使用RMAN检查坏块
D:oradataeygle>rman target /

恢复管理器: 版本9.2.0.6.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

连接到目标数据库: EYGLE (DBID=1365961916)

RMAN> backup validate datafile 4;

启动 backup 于 11-6月 -05
正在使用目标数据库控制文件替代恢复目录
分配的通道: ORA_DISK_1
通道 ORA_DISK_1: sid=17 devtype=DISK
通道 ORA_DISK_1: 正在启动 full 数据文件备份集
通道 ORA_DISK_1: 正在指定备份集中的数据文件
输入数据文件 fno=00004 name=D:ORADATAEYGLEEYGLE.DBF
通道 ORA_DISK_1: 备份集已完成, 经过时间:00:00:03
完成 backup 于 11-6月 -05

RMAN>


SQL> select * from v$database_block_corruption;

     FILE#     BLOCK#     BLOCKS CORRUPTION_CHANGE# CORRUPTIO
---------- ---------- ---------- ------------------ ---------
         4        219          1                  0 FRACTURED
         4       1258          1                  0 FRACTURED


oracle基本概念和术语:【上一篇】
导出9205库lob数据时遇到的exp-00003错误:【下一篇】
【相关文章】
  • Visual Studio 2005 Express free permanently
  • Performance Management Guide--cpu
  • Performance Management Guide--MEM
  • Performance Management Guide--disk I/O
  • RMAN备份恢复试验
  • Rman Crosscheck删除失效归档
  • Aix下使用rman备份Oracle RAC数据库
  • RMAN(备份与恢复管理器)
  • Oracle数据库RMAN备份与恢复技术
  • 使用 RMAN 备份Oracle数据库
  • 【随机文章】
  • 对话框(三)
  • 用 crontab 每天定时备份 MySQL
  • 深入研究虚函数和vtable
  • B/S实现远程配置SVN
  • 关闭钩子(shutdown hook)的作用
  • 服务器优化——Sysctl、Apache、MySQL
  • 给Windows XP SP2重新起个名字
  • 对未来数字家庭的展望
  • 异常最简单使用方式
  • 04-Preface (07-17-2006)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.