Product Documentation

c-treeACE V11.0 Update Guide

Previous Topic

Next Topic

Verify Data and Index File Integrity

Situations arise where it can be desirable to perform a full data and index file integrity check. After a total system outage for example. Or a major application upgrade might want to confirm that all data remains intact. A new verification utility function has been introduced providing this ability.

ctVerifyFile() (ctVerifyFile, ctVerifyFile), will verify c-treeACE data and index integrity in . It is used by the new included ctvfyfil utility.

In addition, a file verification utility has been added based on this API function. This makes it easy to script integrity checks as needed.

The ctvfyfil Utility

The ctvfyfil utility calls the ctVerifyFile() (ctVerifyFile, ctVerifyFile) function. (See function for details.) The utility can be run in standalone and in client/server mode.

Usage

ctvfyfil [<option> ...] <file name>

where <option> is one or more of the following:

  • <page size> - Use the specified page size
  • -chkdat - Read data file only (default)
  • -chkdatkeys - Read data file and check keys in index
  • -chkdeletedspace - Check deleted space
  • -chkidx - Read index file
  • -chkidxrec - Read index file and check records in data file
  • -chkidxint - Additional index checks
  • -excl - Open the file in exclusive mode
  • -int - Interactive mode: stop on each error
  • -index=<N> - Check only the Nth index (N=1,2,...)

The example below shows the utility run on a file called mark.dat with the page size set to 8192:

ctvfyfil -8192 mark.dat

See ctVerifyFile() (ctVerifyFile, ctVerifyFile) API for complete details and usage.

TOCIndex