ITPub博客

首页 > 数据库 > Oracle > Oracle工具DBVERIFY: Offline Database Verification Utility

Oracle工具DBVERIFY: Offline Database Verification Utility

原创 Oracle 作者:xing2999 时间:2012-04-20 21:40:28 0 删除 编辑


参考文档:
官网


DBVERIFY的作用:物理数据结构的完整性检验。仅对数据文件适用,对控制文件或日志文件不起作用。


Using DBVERIFY to Validate Disk Blocks of a Single Datafile



语法图



参数详解


USERID 指定用户名和密码,该参数仅在验证ASM文件时需要用到。


FILE 要验证的数据库文件


START 开始验证的数据块地址。默认从数据文件的第一个数据块开始。


END 结束验证的数据块地址。默认是数据文件的最后一个数据块。


BLOCKSIZE
BLOCKSIZE is required only if the file to be verified does not have a block size of 2 KB. If the file does not have block size of 2 KB and you do not specify BLOCKSIZE, you will receive the error DBV-00103.


LOGFILE 记录验证数据文件的过程信息。


FEEDBACK 以点号(.)的形式显示验证的进程。点号的个数=当前数据文件数据块的个数/FEEDBACK的值。


HELP 提供帮助


PARFILE 指定参数文件。


简单的DBVERIFY输出

% dbv FILE=t_db1.dbf FEEDBACK=100

.

.

.

DBVERIFY - Verification starting : FILE = t_db1.dbf

................................................................................

DBVERIFY - Verification complete

Total Pages Examined : 9216

Total Pages Processed (Data) : 2044

Total Pages Failing (Data) : 0

Total Pages Processed (Index): 733

Total Pages Failing (Index): 0

Total Pages Empty : 5686

Total Pages Marked Corrupt : 0

Total Pages Influx : 0


Notes:

Pages = Blocks

Total Pages Examined = 数据文件含有的总块数

Total Pages Processed = 被检验的块数 (formatted blocks)

Total Pages Failing (Data) = 检验失败的数据块块数

Total Pages Failing (Index) = 检验失败的索引块块数

Total Pages Marked Corrupt = 标记为坏块的块数

Total Pages Influx = 流入的块总数

number of blocks that are being read and written to at the same time. If the database is open when DBVERIFY is run, DBVERIFY reads blocks multiple times to get a consistent image. But because the database is open, there may be blocks that are being read and written to at the same time (INFLUX). DBVERIFY cannot get a consistent image of pages that are in flux.

[@more@]


Using DBVERIFY to Validate a Segment

通过这种模式,你可以指定一张表的段或索引的段来进行检验。It checks to make sure that a row chain pointer is within the segment being verified.检验的时候,必须以具有SYSDBA全限的用户登录。


语法图




SEGMENT_ID 指定你需要检验的段。由
tablespace ID number (tsn), segment header file number (segfile)和segment header block number (segblock)组成。查询SYS_USER_SEGS即可获得相关组成部分的信息,分别对应字段TABLESPACE_ID, HEADER_FILE和HEADER_BLOCK。只有SYSDBA权限的用户才可查询SYS_USER_SEGS。


其他的参数意义同上。

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

上一篇: SQL优化
请登录后发表评论 登录
全部评论

注册时间:2010-09-29

  • 博文量
    42
  • 访问量
    148197