For a testing projects I need to test is databases are working as required or not; as well as need to check that given two databases, the data in DB are identical or not. So, is there any pre-defined algorithm for preforming this task?

有帮助吗?

解决方案

Define what is identical. Is it schema, data or both? If schema, is it only tables or all elements including functions/procedures/views etc.

If you would use jdbc, then start with schema revealing functions and compare and contrast the objects one by one. Then repeat the same for the data inside the tables.

You can take advantage of the OpenSource projects to read the schema details.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top