dbcheck是Rational ClearCase所使用的Raima数据库的一个工具,位于etc/utils/下,它是一个纯粹的数据库工具,可以独立于ClearCase运行,也就可以在任何没装CC的机器上运行,只要上面有Raima数据库的7个文件: vob_db.k0*(key file)和vob_db.d0(data file,数据文件)。实际上,它所检查的也是这7个文件。
dbcheck的语法如下:
db_VISTA Version 3.20
Database Consistency Check Utility
Copyright (C) 1985-1990 Raima Corporation, All Rights Reserved
usage: dbcheck [-options] dbname [dbfile(s)]
options: [-s] [-k] [-dk] [-kd] [-a] [-ts] [-r#] [-p#] [-f#] [-t] [-c]
-s = Perform. complete set consistency check
-k = Perform. key file structure consistency check
-dk = Perform. key access consistency check from data files
-kd = Perform. key data consistency check from key files
-ts = Perform. time stamp checks for records and sets
-a = Does -s -dk -kd -ts
-r# = Report every # percent to stderr
-p# = Number of pages for vista to allocate to its page cache
-f# = Number of open files vista is allowed to have
-t = Print a traceback of the b-tree at the first sign of disorder
-c = Print counts of objects scanned in the check
运行dbcheck需要vob owner或系统管理员权限,并且需要lock vob(或者lock后把db拷贝到另一个目录,这样可以减少lock时间)。在运行时,cd到db所在的目录,下面是各个平台上的例子:
windows:
Unix:
(csh下:
注:vob_db不是缩写或者指代,需要必须按这个写
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21003004/viewspace-566497/ ,如需转载,请注明出处,否则将追究法律责任。