To test the database:
- Create a controlled version of the migrated database.
- Oracle recommends that you keep the database migration scripts in a source control system.
- Design a set of test cases that you can use to test the Oracle database from unit to system level. The test cases should:
- All the users in the source database have migrated successfully.
- Privileges and grants for users are correct.
- Tables have the correct structure, defaults are functioning correctly, and errors did not occur during mapping or generation.
- Comparing the number of rows in the Oracle database with those in the source database.
- Calculating the sum of numerical columns in the Oracle database and compare with those in the source database.
- You cannot enter duplicate primary keys.
- Foreign keys prevent you from entering inconsistent data.
- Check constraints prevent you from entering invalid data.
- Check that indexes and sequences are created successfully.
- Comparing the number of rows in the Oracle database with those in the source database.
- Calculating the sum of numerical columns in the Oracle database and compare with those in the source database.
Data integrity is tested by the following tests:
|
No comments:
Post a Comment