Testing a database for equality with another database
The following scenario:
I'm doing testing of an application that loads an Oracle database (via OCI) by distinct INSERTs. It's quite a large databse - what is large? - 1,5GB with 13 millions of rows or so.
Next thing I will do is replace this distinct upload by calls to the data pump API.
To be sure that the result ist correct I'll have to have a means to check whether the uploaded database is now absolutely identical to the previously uploaded one.
How could I achieve this? I could run an md5sum over all rows and columns but how would I construct such a PL/SQL statement and how long would it take. Would that be feasible?