How to compare the database of a backup from another environment

backupdata-warehouseoracle

Has anyone had any luck with taking a backup (approx 30 tables) from an Oracle database's live environment, then loading a test environment with this backup and doing a comparison between the test environment and the backup taken from the live environment? Preferably without using queries against the live environment.

Note that the live environment will have transactions changing its data by the time the test environment is loaded, so I can't do a comparison using the live environment's data after loading the test environment.

The idea is to pick up any missing records, columns or even tables that the backup has missed. It would also be great to know if the actual data values were the same.

I'm thinking a hash function might be the best way to go. Are there any tools available for this?

Best Answer

It sounds to me like the used procedure is somehow suboptimal :-) We have two easy ways to create an identical test Database from a live DB: Simple Cloning and Snapshot Standby. Simple Cloning is the RMAN command duplicate target database: http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#BRADV010

Snapshot Standby is even more comfortable, because you can do it very fast & easy multiple times subsequently after your live DB did change: http://uhesse.wordpress.com/2010/09/24/snapshot-standby-database-in-action/