Article

Migrating Oracle Databases to PostgreSQL

March 23, 2026
Stephen Alleyn
2026
Database Migration
Database Services
Databases
Database Replication
Oracle
Oracle-to-PostgreSQL
PostgreSQL

Introduction

Migrating from Oracle to PostgreSQL is a strategic move many organisations are making to reduce licensing costs, increase flexibility, and modernise their data platforms. However, the challenge is not just the migration itself—it’s how to transition with minimal disruption to business operations while maintaining data integrity.

There are several ways to execute this migration, each balancing risk, downtime, and operational complexity differently. Some approaches prioritise stability with planned outages, while others minimise downtime by introducing more complexity during the transition phase. Choosing the right method depends on business tolerance for disruption, data volume, and the organisation’s readiness to manage parallel systems.

This article outlines three practical migration strategies using Quest’s SharePlex, highlighting the trade-offs of each so stakeholders can make informed decisions aligned with business priorities.

Using Pebble IT’s Osprey

In all three approaches below, Pebble IT’s Osprey tool is used. This tool analyses the Oracle data to design the SharePlex replication queues to ensure that the flow of data is balanced and efficient. It also orchestrates SharePlex to perform the data conversion to PostgreSQL to ensure that the local machine memory and CPU resources are not exhausted causing issues to the Production servers and databases whilst ensuring the data is converted efficiently and monitored. This minimises the SharePlex licensing requirements which is by vCPU for both the Oracle and PostgreSQL databases, maximising the efficiency of conversion will minimise the conversion time required.

Compared to using SharePlex alone, Osprey provides certainty and governance that ensures that the data conversion is repeatable and less likely to encounter unexpected issues.

Approach 1: Convert from a restored database

This involves creating a copy of the Oracle database at a known “System Change Number” (SCN) and using SharePlex to copy that data to the PostgreSQL database. Meanwhile, SharePlex is configured to replicate changes from the primary Oracle database starting at the same SCN that the database copy was taken at. Once the data is copied from the Oracle copy, then the primary Oracle database replication commences.

Once the replication has caught up to current changes, then the business can prepare for an application cutover from Oracle to PostgreSQL in a cutover window.

This can be illustrated as:

Advantages:

  1. Only a single outage which occurs as part of the application cutover from Oracle to PostgreSQL. Subject to application cutover requirements, this outage could be as little as a few minutes.
  2. Minimal data issues will be encountered as the Oracle copied database is not subject to changes so the data conversion process will be straight-forward.
  3. Eliminates the risks of production server resource issues if the Oracle database copy is isolated from the production server.

Disadvantages:

  1. Potential additional Oracle license requirements for the database copy that is created. This is dependent upon how your Oracle environment is licensed and may or may not be a consideration that you need to consider.
  2. Potential requirement to have multiple installations of SharePlex depending upon the location of the Oracle database copy. If SharePlex requires different installations for the Oracle copy and the Oracle production replication, then the SharePlex license will have to be re-deployed after the Oracle copy is complete and that SharePlex installation is uninstalled.
  3. Commencing replication from an Oracle SCN is not an official feature of SharePlex, instead it is a known ‘work-around’ that can be employed to make this occur. This could have implications if the SharePlex functionality changes.

Approach 2: Converting with an outage

This involves having SharePlex copy all the data tables subject to change during an outage (or at least maximising what is possible during the allowed outage) and then replicate data changes until the business is ready to perform an application cutover.

This approach requires analysis of the database and classification of tables that are ‘insert-only’ verses frequently updated and infrequently updated tables. This analysis is used by Osprey to design how to optimise the data conversion to minimise the outage requirements.

This can be illustrated as:

Advantages:

  1. Simple approach with a single installation of SharePlex with continuous use until application cutover
  2. No additional server requirements

Disadvantages:

  1. Requires two outages; one for the original copy to PostgreSQL, and a second for the application cutover
  2. Potential for some SharePlex replication issues if the data conversion of updateable tables does not complete within the first outage window

Approach 3: Converting without an outage

Similar to Approach 2 with the primary difference is that the data conversion process occurs whilst the Oracle database is being used – there is no outage. This is an interesting approach because it will encounter a lot of SharePlex replication issues – however SharePlex has excellent functionality for resolving these issues. Organisations normally shy from “data issues”, and it will require a lot of SharePlex expertise and supervision of the replication until the data conversion is complete and the replication continues unabated without errors. However, it needs to be stressed that this approach is only suitable for smaller databases and analysis is needed before embarking upon this approach.

Once the replication is changes-only the business can determine when to schedule an application cutover from Oracle to PostgreSQL.

This can be illustrated as:

Advantages:

  1. Simple approach with a single installation of SharePlex with continuous use until application cutover
  2. No additional server requirements
  3. Only a single outage for application outage only

Disadvantages:

  1. Will cause significant data replication issues that will need to be managed
  2. Will only work for smaller databases due to the number of data issues that will need to be resolved, most likely < 20GB depending upon how frequently data is updated. The less updates there are, the larger the database can be with this method
  3. Higher service provider cost to achieve the single cutover approach

Choosing between the approaches

The business’s appetite for coping with outage will be a primary driver for determining the optimal approach. The current Oracle licensing and server constraints should also be considered if Approach 1 is preferred by converting from a copied Oracle database.

Variations to each approach can also be designed to cater for specific requirements. These approaches can cater for Oracle databases running on Exadata’s, ODA’s, generic X86 Servers, and Oracle databases run as a service in public clouds. The target PostgreSQL database can be on generic X86 Servers, cloud VMs or PostgreSQL services on the public clouds.

The size of the Oracle database will also have a bearing on what approaches are viable. The above 3 approaches are viable for databases less than 500GB, beyond that requires special consideration to ensure the preferred approach is correctly designed. Data transformations from Oracle to PostgreSQL will also have a negative impact upon the conversion and should be minimised if not eliminated altogether.

Migrating Oracle databases to PostgreSQL

Whilst the data within an Oracle database is not native to PostgreSQL there are viable approaches to migrate the data from Oracle to PostgreSQL to enable the organisation to benefit from the strengths of the PostgreSQL database as outlined in our article ‘Why PostgreSQL Should Be Part of Your Oracle Optimisation Strategy’. The SQL used by applications and tools is very similar between Oracle and PostgreSQL and many organisations are making the change to free themselves of proprietary solutions and their license restrictions. Whilst this is a viable strategy to undertake in your own organisation, it still requires careful planning and knowledge and this where the services of Pebble IT will turn your idea of Oracle optimisation into reality.

Real Solutions

Transforming Businesses Like Yours

Find out what we’ve done for enterprises like yours, and what we can do for your business needs.
Speak to our Senior Technical Team now
Contact Us Now