Deactivate Indexes
Go Up to Restoring a database using IBConsole
Option values are True and False.
Normally, InterBase rebuilds indexes when a database is restored. If the database contained duplicate values in a unique index when it was backed up, restoration fails. Duplicate values can be introduced into a database if indexes were temporarily made inactive (for example, to allow insertion of many records or to rebalance an index).
To enable restoration to succeed in this case, set the Deactivate Indexes option to True. This makes indexes inactive and prevents them from rebuilding. Then eliminate the duplicate index values, and re-activate indexes through ALTER INDEX
in isql
.
A unique index cannot be activated using the ALTER INDEX
statement; a unique index must be dropped and then created again. For more information about activating indexes, see the Language Reference.
- Tip: The Deactivate Indexes option is also useful for bringing a database online more quickly. Data access is slower until indexes are rebuilt, but the database is available. After the database is restored, users can access it while indexes are reactivated.
This function corresponds to the -inactive
option of gbak
.