Reorganising to Remove Corruptions

If your only copy of the database is corrupt, you may be able to recover the situation with the reorganisation utility when only the index file is damaged. In this case, you can try to rebuild the database, by running REORGDB with the -CORRUPT command tail, for example:

REORGDB -DB SALESORD -INDEX -CORRUPT

If the problem is confined to a single logical index, you may be able to remove the corruption by reorganising just that index, for example:

REORGDB -DB SALESORD -BUILD table index_table index_role -CORRUPT

You can do this only where the DYNACHEK utility reports no errors in the primary index of the table.

Should the system crash when reorganising, follow the advice given earlier for the particular reorganisation option.

For more information on rebuilding a corrupt database refer toHelp! My Database is Corrupt (and I don't have a Backup)

As of release 4.623 REORGDB -CORRUPT works in a completely different way, and will attempt (usually successfully) to rebuild a usable database even when the original database is severely damaged.