top of page

Choosing a Database Migration Method: A Decision Guide by Downtime Window

OmerNarman
Aug 6
3 min read

Updated: Oct 24

Every migration conversation should start with one number: how long can this database be unavailable? Not how long the business would like, but the point at which somebody senior starts making phone calls. That number narrows the list of methods faster than any other question, and most migration trouble starts when a team picks a tool before it has the number.


Start with the window, not the tool

Migration methods fall into three families. The first copies the database and restores it, and the application is down for the whole copy. The second stands up a synchronised copy ahead of time and switches to it, so the outage is the switch. The third replicates changes continuously and lets you cut over at a moment of your choosing, with an outage measured in seconds or none at all.

Each family costs more to set up than the one before it. The right choice is the cheapest family that fits inside your window, on your platform, for your database size.


A window of hours: copy and restore

If the business can take a planned outage of several hours, the simplest methods are usually the best. They are well understood, easy to rehearse and leave nothing running afterwards that needs to be cleaned up.

  • Oracle: an RMAN backup and restore, or an RMAN duplicate straight into the target. Data Pump export and import when you also need to change the character set or move only some schemas.

  • SQL Server: a full backup, copy and restore, with a final differential or log backup to shorten the gap.

  • PostgreSQL: pg_dump and pg_restore, which also gives you a clean rebuild of every index and a chance to drop what nobody uses.

The limit is size. Copy time grows with the database, and a multi-terabyte restore rarely fits in a window that felt generous on paper.


A window of minutes: synchronise, then switch

When the outage must be short but need not be zero, build the target in advance, keep it in step with production, and make the cutover a controlled switch.

  • Oracle: a Data Guard physical standby in the target environment, followed by a switchover. The old primary becomes the standby, which is your fallback.

  • SQL Server: log shipping for a cheap and predictable cutover, or an availability group with the target added as a replica and a planned failover.

  • PostgreSQL: a streaming replica promoted at cutover, or pg_upgrade for an in-place major version move on the same host.

These methods need the same platform family on both sides and, in most cases, the same major version. They are the workhorses of data centre to cloud moves.


Near zero: replicate and cut over on your terms

Some systems cannot be down at all, or the cutover must be phased across applications. Logical replication captures changes at the source and applies them at the target, so the two run side by side until you are ready.

  • Oracle: GoldenGate, which also crosses versions, platforms and even database engines, and can run in reverse to give you a way back.

  • SQL Server: distributed availability groups across clusters or clouds, which also upgrade the version on the way.

  • PostgreSQL: native logical replication, including into managed cloud services where physical replication is not available.

The price is complexity: an initial load, DDL handling, unsupported data types and a validation step that must prove both sides match before anyone trusts the target.


Three questions that change the answer

  1. Are you changing hardware platform or endianness? Physical copies stop working across that line. Transportable tablespaces, GoldenGate or logical replication take over.

  2. Are you changing the database engine? Then no physical method applies, and the migration is mostly schema and code conversion with replication for the final data move.

  3. How large and how busy is the database? Size decides copy time; change rate decides how hard replication has to work to keep up.


Rehearse before you believe the number

Whatever the method, run it end to end into the real target before the production window. Time every step, validate the data, and run the application against the result. The rehearsal is where the estimate becomes a fact, and where the surprises happen while they are still cheap.


Soro Consulting plans and delivers migrations across Oracle, SQL Server and PostgreSQL, on premises and on OCI, AWS, Azure and Google Cloud. Book a consultation to talk through your window.

Recent Posts

See All

Comments


bottom of page