Part of Datorkirurgen AB – IT experts across Sweden

Less risk and a shorter interruption: this is how we carry out database migration of Oracle, SQL Server, MySQL, MariaDB and PostgreSQL to and between AWS, Azure, Oracle and Google.

Database migration is the most sensitive move of the business

In fact, the database often contains the whole business: customers, orders, finance and history. Therefore, a database migration requires more careful planning than any other part of a move. In addition, errors in data do not always show directly, and they can have major consequences much later. Linux Service has worked with Oracle, SQL Server, MySQL, MariaDB and PostgreSQL for decades, both in own data centres and in the cloud.

Therefore, we distinguish between two types of migration. In a homogeneous migration, you keep the same database engine, for example Oracle to Oracle or MariaDB to a newer MariaDB. In a heterogeneous migration, on the other hand, you change engine, for example from Oracle to PostgreSQL. The latter requires us to rewrite tables, procedures and functions, and therefore it takes longer.

Database migration: common paths between database engines and clouds
Database migration: common paths between database engines and clouds. This is how Linux Service, part of Datorkirurgen AB, works for businesses in Nacka and Södermalm.

From Oracle to PostgreSQL and back

Many businesses today want to leave expensive licences and move from Oracle to PostgreSQL. Since 2024, Amazon Web Services (AWS) Database Migration Service has included a schema conversion that uses generative AI for code that the rule engine cannot handle. It converts schemas and code from Oracle, SQL Server and MySQL, among others, to Aurora PostgreSQL and Amazon RDS for PostgreSQL. The tool does a large part of the work, but the result still needs a review by someone who knows both databases.

Sometimes, however, the move goes in the other direction. Businesses that want to keep Oracle can instead move to Oracle Cloud Infrastructure or to Oracle Database@AWS, @Azure and @Google Cloud. There, Oracle runs its database services in the other provider’s data centre. We also help you compare the options before you decide. Also read about Oracle Linux.

Checking row counts and checksums in the source and target after moving a database
Checking row counts and checksums in the source and target after moving a database. Do you need help with Linux? Linux Service helps you in Stockholm, on site or remotely.

A shorter interruption with continuous replication

A long interruption is often what the business worries about most. Therefore, we use continuous replication, where changes in the source database transfer continuously to the target. AWS Database Migration Service, Azure Database Migration Service, Oracle GoldenGate and logical replication in PostgreSQL all work in that way. As a result, the interruption only concerns the cutover itself, which often takes a few minutes.

Before the cutover, we compare row counts and checksums in the source and target. We also run the application’s most important flows against the new database. Only when everything matches do we stop writes in the source and point the application to the new database. The old database then remains as a reserve until you have approved the result.

Database migration in six steps, from analysis to approval
Database migration in six steps, from analysis to approval. An example from our work for clients across Sweden.

Experience from our own database upgrades

In addition, we do the same work in our own environments. The screenshot below comes from an upgrade of MariaDB on one of our servers in AWS, where we checked the version and packages before we started. Such checks reveal conflicts before they become a problem. Read the whole story in the article on how to upgrade MariaDB on Amazon Linux.

Checking the version and installed packages before the MariaDB upgrade
Checking the version and installed packages before the MariaDB upgrade. A real screenshot from one of our servers. The host name is masked.

Performance and security after the move

A database migration is also an opportunity to modernise. We review indexes, queries and settings, since a new environment often behaves differently from the old one. In addition, we activate encryption, backups with restore tests and monitoring. The documentation from PostgreSQL is our most important support when moving to PostgreSQL.

Contact Linux Service about database migration

Linux Service is part of Datorkirurgen AB and carries out database migration for businesses across Sweden. We work with all major databases and with AWS, Azure, Oracle Cloud Infrastructure and Google Cloud. Prices start from €1,300 per hour excluding VAT.

Frequently asked questions about database migration

Questions about database migration

Risk, verification and performance

Licences, operation and contact

Website developed by Datorkirurgen AB · Privacy policy