Database Migrations
Database Migrations
- Assess whether we are going with the same database or a different database
- If the migration is to the same database - We can simply follow a
Lift and Shift approach
- Unless we want to move to open source database systems to save costs
- If the migration is to a different database - We need to choose
proper Migration Tools and Schema Conversion Tools and an intermediate replication
instance for migration process.
- Assess and decide on whether we need to perform an Offline or an Online
migration
- Backup Strategy
Weekly Full Backups
Daily Differental Backups
Hourly Incremental Backups
- High Availability
by Clustering
DB migration, in general
===============================
1. On-Prem to Cloud Migration - Oracle to Amazon RDS
===============================
2. On-Prem to Cloud Migration - SQL Server to Amazon RDS
And as a part of that, during my experience of, migrating from Oracle to Postgres,
- I checked for the size of the database, quality of the data, and the sensitivity
of the data, and any regulatory requirements around it.
- I also performed the analysis of the existing Oracle database and identified all
the objects that need to be migrated, such as tables, views, stored procedures,
functions, triggers, etc.
- I then chose Ora2Pg as the migration tool for migrating Oracle databases to
Postgres and configured it by providing the necessary credentials and connection
details for both the Oracle and Postgres databases.
- I then migrated the data from the Oracle database to the Postgres database. This
was done using bulk inserts, SQL scripts, and the data replication.
- Once the data was migrated, I performed the testing to ensure that the data has
been migrated accurately and that the application was working correctly. ???
- Once you testing is done, switch the application to use the Postgres database.
====================================
Database Migration from MySQL to Postgres
==
In order to implement a successful database migration, one should have, a well
defined migration strategy and a well laid migration plan.
And as a part of that, during my experience of, migrating from Oracle to Postgres,
- I checked for the size of the database, quality of the data, and the sensitivity
of the data, and any regulatory requirements around it.
- I also performed the analysis of the existing MySQL database and identified all
the objects that need to be migrated, such as tables, views, stored procedures,
functions, triggers, etc.
- I then chose pgLoader as the migration tool for migrating MySQL databases to
Postgres and configured it by providing the necessary credentials and connection
details for both the MySQL and Postgres databases.
- I then migrated the data from the MySQL database to the Postgres database. This
was done using bulk inserts, SQL scripts, and data replication.
- Once the data was migrated, I performed the testing to ensure that the data has
been migrated accurately and that the application was working correctly.
- Once you testing is done, switch the application to use the Postgres database.