
Data Consistency, Recovery, and Migration 4-7
Using the tbcheck Commands
tbcheck -cr
Execute tbcheck -cr to validate the OnLine reserved pages that reside at the
beginning of the initial chunk of the root dbspace. These pages contain the
primary OnLine control information. If this command detects errors (not
warnings), perform a data restore from archive. (Refer to page 2-95 for more
details about the reserved pages.)
tbcheck -cc
Execute tbcheck -cc to validate the system catalog for each of the databases
that OnLine manages.Each database contains itsown systemcatalog, which
contains information on the database tables, columns, indexes, views,
constraints, stored procedures, and privileges.
Ifawarningappears afteryouexecutetbcheck-cc,itsonlypurposeistoalert
you that no records of a specific type were found. These warnings do not
indicateanyproblemwithyourdata,yoursystemcatalog,orevenwithyour
database design. For example, the following warning might appear if you
execute tbcheck -cc on a database that has no synonym names defined for
any table:
WARNING: No syssyntable records found.
This messageindicates onlythat no synonym exists for any table; thatis, the
system catalog contains no syssyntable records.
However, if an error message is returned from tbcheck -cc, the situation is
quitedifferent.Tocorrectthesituation, you mustperformadatarestorefrom
archive.
tbcheck -ce
Execute tbcheck -ce to validate the extents in every OnLine database. It is
important that extents do not overlap. If this command detects errors,
perform a data restore from archive.
Komentáře k této Příručce