Current setup:
- We have users table in database clientdb1 (RDS)
- We have users table in database clientdb2 (RDS)
- We have users_profile table in database clientdb3 (RDS)
Details:
- users table in clientdb2 has a different structure from users in clientdb1
- clientdb1 and clientdb2 although different database, are both Oracle 12c
- clientdb3 is a SQL Server db
Problem:
- migrate data from users (in clientdb1) to users (clientdb2). All fields in both tables are the same, they are just structured differently and with different column names, plus the latter has some additional columns.
- this is what makes it complicated, in the process of migration, each user record needs to get additional information from users_profile table in clientdb3 before the record is inserted in clientdb2.
My design options:
Is this possible to do via DMS? I tried doing research and all I could find were samples of data movement between two databases, no third one.
Is the best solution for this combination of DMS and Lambda? This is the one I have come up with let me know if this is ok, or is there a better way?
Part 1: Setup dms to migrate data from users (clientdb1) to a temp table in clientdb2 Part 2: Create a lambda worker that listen to data inserts in the temp table when query the needed data in clientdb3 then finally insert it in users (clientdb2).
Any advice would be appreciated. Thanks