Multi-Stage Migration Implementation Plan
Architecture Overview
┌───────────────┐ ┌─────────────────────────────────────────────────────┐
│ │ │ AWS │
│ On-Premises │ │ │
│ Oracle │─────┐ │ ┌──────────────┐ ┌──────────────┐ │
│ Database │ │ │ │ PostgreSQL │ │ PostgreSQL │ │
│ (Source Table)│ │ │ │ Database 1 │ │ Database 2 │ │
└───────────────┘ │ │ │ │ │ │ │
│ │ │ ┌──────────┐ │ │ ┌──────────┐ │ │
└───┼──►│ Staging │◄├────────┼─┤ Existing │ │ │
│ │ │ Table │ │ │ │ Table │ │ │
DMS Task 1 │ └────┬─────┘ │ │ └──────────┘ │ │
│ │ │ │ │ │ │
│ │ │ │ └──────────────┘ │
│ │ │ │ ▲ │
│ │ │ │ │ │
│ │ ▼ │ │ │
│ │ ┌──────────┐ │ │ │
│ │ │ Cross- │ │ │ │
│ │ │ Database │─┼────────────┘ │
│ │ │ View │ │ FDW Connection │
│ │ └────┬─────┘ │ │
│ │ │ │ │
│ │ │ │ │
│ │ ▼ │ │
│ │ ┌──────────┐ │ │
│ │ │ Target │ │ │
│ │ │ Table │◄┼───────────────────────────────────┘
│ │ └──────────┘ │ DMS Task 2
│ │ │
│ └──────────────┘
│
└────────────────────────────────────────────┘
AWS DMSStep 1: Initial Oracle to PostgreSQL Migration
1.1. Set Up Source Oracle Database for Migration
1.2. Set Up Target PostgreSQL Database on AWS
1.3. Set Up AWS DMS for Initial Migration
Step 2: Set Up Cross-Database FDW Connection
2.1. Set Up Foreign Data Wrapper in PostgreSQL Database 1
2.2. Create the Cross-Database View
Step 3: Migrate View Data to Target Table
3.1. Create the Target Table
3.2. Set Up Second DMS Task for View Migration
3.3. Alternative: Direct SQL-based Migration
Step 4: Set Up Ongoing Synchronization (Optional)
4.1. Create a Trigger-Based Approach
Step 5: Validation and Monitoring
5.1. Validate Data Migration
5.2. Monitor DMS Tasks
Troubleshooting
Foreign Data Wrapper Issues
DMS Task Failures
View Migration Issues
Last updated