Merging data from 2 schemas with same object structure into one schema
Hi
I want to merge data from 2 schemas in different environments ( say test1 and test 2) into 1 schema ( say Test_final) for testing. Both these schemas are having same structure, the data can be same or different.
What I did is that I took an export of schema on Test1 and then import it into Test_final. Now I need to merge/append data from Test2 into Test_final.
I can not merge the data with import due to primary key constraints and also import doesnt support this feature, so I tried SQL*Loader to "append" the data by using sequence to generate Primary key.
But my worries are that since new primary keys are generated so foreign keys will become invalidated and the data will not be consistent.
Is there any other way to do this task..
Regards
Raman