Oracle提供命令行工具DBV用来检查数据文件的完好性.
那么DBV可以用来检查日志文件么?
答案是不能.
Oracle在文档中这样描述DBV工具:
DBVERIFY is an external command-line utility that performs a physical data structure integrity check. It can be used on offline or online databases, as well on backup files.
DBVERIFY checks are limited to cache-managed blocks (that is, data blocks). Because DBVERIFY is only for use with datafiles, it will not work against control files or redo logs.
再次注意到读文档是有好处的,以前并不知道DBV可以直接用来针对数据段进行检查,引用一个文档中的例子:
这是命令格式:
| dbv USERID=username/password SEGMENT_ID=tsn.segfile.segblock |
假定hr用户具有sysdba权限,执行:
| dbv USERID=hr/hr SEGMENT_ID=1.2.67 |
输出如下:
DBVERIFY - Verification starting : SEGMENT_ID = 1.2.67 |
Oracle官方文档地址:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/dbverify.htm
存此备忘.
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




