|
Checking the consistency and the integrity of a file and displaying the constraints on a file is a simple process using the Check Database wizard in PCC. Using this wizard, you can perform a consistency test, a referential integrity (RI) test or an index consistency test.
A consistency test checks logical and physical consistency of the selected database, including table and indexes; a referential integrity test checks referential integrity constraints applied to the selected database.
To perform the tests, you must be logged into the database using its data source name.
If you are performing the RI test, your database must be named, stored on the same server as the SRDE, and have referential constraints defined (whether or not RI is enabled).
To produce a report that lists all foreign key definitions and related information for any database
To check whether the table definitions in your DDFs match the file structure of the data files


Select the files you want to check, click Next, and follow the remaining prompts.
To check for orphan rows in a database or verify the consistency of a data file's referential integrity constraints



Make your selections, then click Next.

When the wizard has finished checking all tables, click Next.

To repair inconsistencies, the Check Database wizard updates the information stored in the individual data files to match that in the data dictionary.
|
Chapter contents
Prev topic: Exporting/Importing Data
|