Validity Conditions
Go Up to Restoring a database using IBConsole
Option values are Restore and Ignore.
If you redefine validity constraints in a database where data is already entered, your data might no longer satisfy the validity constraints. You might not discover this until you try to restore the database, at which time an error message about invalid data appears.
- Important: Always make a copy of metadata before redefining it; for example, by extracting it using
isql
.
To restore a database that contains invalid data, set the Validity Conditions option to Ignore. This option deletes validity constraints from the metadata. After the database is restored, change the data to make it valid according to the new integrity constraints. Then add back the constraints that were deleted.
This option is also useful if you plan to redefine the validity conditions after restoring the database. If you do so, thoroughly test the data after redefining any validity constraints.
This function corresponds to the -no_validity
option of gbak
.