The JADE Database utility Operation menu Reindex Files command enables you to repair damaged file indexes and perform free-space garbage collection serially.
The reindex file operation reads objects from a database (.dat) file serially and recreates them in a work (.reo) file, establishing and maintaining the indexes in the new file. If no errors are encountered, the reorganization work file is instantiated.
When a file is reindexed, any free-space in the file is consolidated, which provides an alternative mechanism to offline compaction for garbage collecting free-space in files.
In a post-recovery scenario, file reindexing is packaged and executed in the form of a replayable reorganization in which updates are disallowed. A journal switch is performed before starting a reindexing transaction, to provide a convenient journal boundary to facilitate a roll-forward recovery to splice out the reindexing transaction, if required, as a result of a mishap.
The value of the
As post-recovery automatic file reindex operations are journalled for replay:
Roll-forward recovery replays any completed automatic reindex operations encountered during forward redo processing. Attempts to terminate recovery within an incomplete reindexing transaction are not permitted (the recovery fails with an exception).
Roll-forward recovery does not attempt to perform automatic reindexing as a post-recovery action, because any index corruption detected during roll-forward recovery is an indication of a potentially more-widespread issue that should not be masked. Such corruption would not be a result of a torn index block, as roll-forward recovery is supposed to be applied to a stable checked backup.
If roll-forward recovery encounters an error updating an index, recovery terminates with a fatal exception.
The SDS secondary tracking process replays all automatic reindex transactions that completed successfully on the primary database. This also applies to any database files in a full or mapped extent RPS database that were reindexed on the primary database.
Initiating a file reindex operation on an SDS secondary database is not permitted.
To disable the automatic reindexing of database files, set the value of the