Database Migration - Manufacturing

Oracle to PostgreSQL Migration for Manufacturingon Azure

A data centre was closing, and the supplier EDI platform inside it ran on Oracle. The decision was to leave Oracle behind rather than carry it to the cloud. That turned a hosting move into an application migration: schema conversion with Ora2Pg, Oracle-specific logic rewritten in three places, and eight SAP interfaces proven before anything was cut over.

8 · supplier interfaces revalidatedManaged · PostgreSQL replacing self-managed OracleDEV + PROD · migrated and validated
The Client

A data centre exit that Oracle could not travel with.

One of our clients in the manufacturing industry makes automotive components globally and runs a web-based EDI platform that its supplier network depends on. Orders, forecasts, call-offs, KANBAN signals and receiving advices all move between SAP and suppliers through it. When the platform is down, suppliers stop receiving demand.

That platform sat in a data centre the business had committed to exiting, on an Oracle database. Moving the workload was never in question. What was in question was whether Oracle moved with it, and the programme decided it should not. The comparison between the two engines is what made that an easy decision to defend rather than a risky one.

Kansoft was engaged to take the platform off Oracle and onto a managed PostgreSQL service in Azure, and to prove the eight SAP interfaces before anything was cut over. The client's application team kept acceptance, which is the right place for it when a supplier network is downstream.

Before
Oracle, in a closing site Self-managed Oracle Licence, patching, backups Oracle SQL in three places App, integration bus, SAP flows Test integrations removed No current object inventory

Moving the database alone would have broken all three callers.

After
Managed PostgreSQL on Azure Managed PostgreSQL service Oracle dependency removed 8 interfaces revalidated Seven inbound, one outbound Rollback rehearsed and held Legacy servers shut down

Validation in production was the gate for decommissioning.

The Problem

Five reasons this was an application migration, not a hosting move.

Lifting the database to a cloud Oracle instance would have been the shorter project. It would also have carried the licence, the platform and the operational burden into the new estate, and left the same work waiting a few years later.

01

Oracle logic reached the database from three directions

The Java application, the integration bus and SAP-triggered flows all issued SQL. Oracle-specific constructs sat in native queries, in the Hibernate dialect and in commands the integration layer sent directly. A database swap alone would have broken all three.

02

The interfaces are the business

Eight interfaces carry orders, forecasts, call-offs, inventory reports and receiving advices between SAP and the platform. A migration that silently broke one of them would surface as a supplier not receiving demand, which is a production incident rather than a defect.

03

Failures were transactional, not syntactic

An Oracle-format command issued through the integration bus was rejected by PostgreSQL and rolled the whole transaction back. The class of problem matters: it does not appear during schema conversion or in a row count, only when a real business flow runs end to end, which is the class of defect that passes every structural check.

04

Lower-environment integrations had been removed

Test queues and integration flows had been decommissioned earlier for bandwidth reasons, so end-to-end testing could not begin until they were rebuilt from production references. That rebuild landed on the critical path rather than ahead of it.

05

No authoritative object inventory existed

Compatibility across schemas, views, sequences, functions, procedures and triggers had to be established by assessment rather than assumed from documentation, because no current inventory of the Oracle estate was available to work from.

What We Recommended

Assess first, convert the schema before the data, and prove the interfaces before the cutover.

This is the seven-stage sequence applied to one engagement, and the sequence matters more than any individual step. Each stage exists to make the next one safe, and the cutover window is the last place to discover an incompatibility. The whole sequence ran in DEV first and then again in PROD, so the production window repeated a path Kansoft had already walked rather than one it was reading for the first time.

PHASE 01

Compatibility assessment

Kansoft ran Ora2Pg against the source schema from a dedicated jump box to enumerate objects and flag constructs PostgreSQL does not support. The findings became scheduled remediation work before any migration began, rather than surprises during it.

PHASE 02

Schema before data

DDL generated and PostgreSQL objects created first, then object counts reconciled between source and target. Only once both sides agreed on what existed was the data export and load started, so a missing object could not be mistaken for a data problem later. The extract itself waited on a business decision to stop the application, because a consistent copy needs a quiet source.

PHASE 03

Application and integration remediation

Kansoft replaced the JDBC driver and Hibernate dialect, rewrote the Oracle-specific SQL including row-limiting, hierarchical queries and merges, changed sequence access to PostgreSQL semantics, and reworked stored-procedure calls because PostgreSQL functions return values where Oracle procedures did not.

PHASE 04

Controlled cutover with a rehearsed way back

Kansoft ran database configuration, application deployment, service startup and log validation as a planned task sequence, with a rollback to Oracle rehearsed and held ready at every step. Business acceptance came from the client's application team after validation, not from the absence of errors.

Technology Stack

Chosen so each incompatibility surfaces before the window, not inside it.

Every choice serves the same constraint: the supplier network cannot absorb a failed cutover, so the problems have to be found while there is still time to fix them.

Ora2Pg
Compatibility assessment, schema conversion and data export, run from a dedicated RHEL jump box (8 vCPU, 64 GB RAM, 500 GB)
Azure Database for PostgreSQL
Managed Flexible Server 15 replacing a self-managed Oracle estate
Java and Hibernate
Dialect, JDBC driver and native query remediation across the application
IBM Cloud Pak for Integration
CP4i connection string, driver and command format updated for PostgreSQL behaviour
SAP interfaces
Seven inbound and one outbound supplier flow, each revalidated with representative data
Private networking
Database on a private endpoint in a dedicated subnet, reached on TCP 5432; supplier access over HTTPS only
How It Was Proven

Five layers of validation, because a row count proves almost nothing.

Each layer catches a class of defect the one before it cannot see. A schema comparison cannot find a transaction that rolls back, and a successful technical call cannot tell you the right row was written.

01

Data

Object reconciliation between source and target, row counts on every table, checksums where practical, and explicit sequence and identifier checks after the load.

02

Application

Unit tests at the data-access layer, then functional tests of every user journey a supplier or an internal user actually takes through the portal.

03

Integration

All eight SAP interfaces exercised against the PostgreSQL backend and reconciled on the business outcome, not on whether the call returned success.

04

Operational

DNS, load balancer, HTTPS termination, Tomcat startup, SMTP delivery, application logs and database reachability on TCP 5432, each confirmed before the window opened.

05

Business

Sign-off from the client's application team after the DEV cutover and again after PROD. Acceptance was a decision someone made, not the absence of errors in a log.

The eight interfaces, and which way each one runs

Seven carry data inbound from SAP into the portal. One runs outbound. Treating them as a set is what makes "eight interfaces validated" a claim rather than a count.

  1. Application errors and acknowledgements SAP → portal
  2. Inventory reports SAP → portal
  3. JIT schedules and forecasts SAP → portal
  4. Generic messages SAP → portal
  5. KANBAN call-offs SAP → portal
  6. Orders and order changes SAP → portal
  7. Forecasts for supplier deliveries Portal → SAP
  8. Receiving advices SAP → portal
What Went Wrong

The delays came from the integrations and the infrastructure, not the data conversion.

The schema conversion behaved. What cost time was everything around it: a driver change, a port mismatch, a replication fault, and a test estate that had to be rebuilt before it could be used. It is recorded here because this is the part most migration plans under-budget.

An Oracle-format command issued through the integration bus

PostgreSQL rejected it and rolled the whole transaction back. No schema comparison or row count would have surfaced it, because nothing was wrong with the schema.

ResolvedCommand format and compatibility logic updated, then the affected interfaces re-triggered and reconciled again.

A connection string and driver change blocked testing

Dependent integration testing could not proceed, and a vendor escalation did not return a fix inside the window the programme needed.

ResolvedKansoft and the client's application team resolved it jointly rather than holding the critical path open for the escalation.

SAP ports in QA did not match production

Outbound messages from the portal failed in the lower environment for a reason that had nothing to do with the migration.

ResolvedA working interface was used as the reference to correct the QA port and configuration.

An application VM replication fault

DEV progression slipped by around two weeks while the fault was diagnosed with Microsoft support.

ResolvedFixed with Microsoft, and the same fix was applied to PROD replication before it could repeat there.

The production window, and the way back out of it

Planned durations from the cutover runbook. The rollback was scripted and timed rather than improvised, which is what keeps it a decision the team can still take at minute 90 instead of a hope.

Cutover 140 min

Database configuration · Tomcat and SMTP · Deploy PostgreSQL build · Tomcat startup · Log validation

Rollback 120 min

Stop Tomcat · Repoint to Oracle · Deploy previous build · Start and verify · Validate logs

Measured Outcomes

From an Oracle estate inside a closing data centre to a platform that runs on managed PostgreSQL.

Four confirmed changes between the legacy environment and the platform now serving the supplier network.

Removed
Oracle dependency
Replaced with managed Azure Database for PostgreSQL, not reproduced in the cloud
8 validated
SAP and integration-bus interfaces
Seven inbound from SAP and one outbound, each exercised end to end before cutover
Decommissioned
Legacy EDI estate
Servers shut down after production validation, unblocking the data centre exit
DEV + PROD
Environments migrated
Both cut over and confirmed by the application team before sign-off
What Changed for the Business

Four changes that mattered as much as the outcome.

The platform does the same job for the same suppliers. What changed is what sits underneath it and what the business now owes for that.

The Oracle dependency is gone, not relocated

A managed PostgreSQL service replaced a self-managed Oracle estate, so the licensing and the patching, backup and availability work that came with it leave the balance sheet rather than moving to a new address.

Every supplier flow was proven before cutover

All eight interfaces were exercised with representative business data (seven inbound from SAP, one outbound to it) and reconciled on business outcome as well as technical success, so the first real order after cutover was not also the first test.

The legacy estate could actually be switched off

Production validation was the gate for decommissioning. Once it passed, the legacy servers were shut down, which is what converts a migration into a data centre exit rather than a parallel estate nobody is willing to turn off.

The pattern is reusable

Assessment, schema conversion, application remediation, interface testing, controlled cutover and rehearsed rollback now exist as a sequence the organisation has run once, which makes the next heterogeneous migration an execution problem rather than a design one.

Engagement

How the work was shaped.

Practice
Legacy App Modernisation · Cloud Migration & Strategy · API & Integration Development · Architect & Re-engineering · Data Platform & Engineering
Platform & stack
Oracle · PostgreSQL · Azure Database for PostgreSQL · Ora2Pg · Java · Hibernate · Tomcat · SAP · IBM Cloud Pak for Integration · RHEL · Azure · Azure Load Balancer
Industry
Manufacturing
Timeline
Q4 2025 – Q1 2026 · phased DEV then PROD cutover
Why Kansoft

Treated as application modernization, not data movement.

Most Oracle to PostgreSQL migration projects are scoped as a database exercise and then run over, because the database is the smallest part of the problem. Kansoft scopes the application and integration surface first: SQL syntax, drivers, stored logic and transaction behaviour sit in the application and in everything integrating with it, and they have to be assessed before a cutover date is committed. Working the interfaces as first-class scope rather than a downstream dependency is what kept a live supplier network out of the blast radius. The second discipline that travels is timing every rehearsal: export and import durations recorded from each run are what turn an outage window from an estimate into a number a business can agree to.

Read the rest of this case study

The problem, the approach, the stack, the measured outcomes and what changed for the business. Enter your work email and we will open the page and send the PDF.

  • Opens instantly
  • PDF emailed to you
  • No sales call required

Frequently asked questions

Why replace Oracle instead of moving it to the cloud?

Because relocating it keeps the licence, the platform and the operational burden, and leaves the same decision waiting a few years later. The data centre exit created a point where the workload had to move anyway, which is the cheapest moment to change the database rather than pay to reproduce it in a new environment.

What does Ora2Pg actually convert, and what does it leave?

It handles the assessment and the schema: enumerating objects, flagging constructs PostgreSQL does not support, generating DDL and moving the data. What it leaves is everything outside the database. Driver configuration, dialect, Oracle-specific SQL in application code and the commands integration layers send all remain application work.

How were eight SAP interfaces validated without disrupting suppliers?

Kansoft exercised each one with representative business data in a rebuilt test environment before the production window, in both inbound and outbound directions, reconciling the business outcome rather than only a successful technical call. An interface that returns success while writing the wrong result is the failure mode that matters.

What kind of defect does a row-count check miss?

Behavioural ones. An Oracle-format command issued through the integration bus was rejected by PostgreSQL and rolled the entire transaction back, which no schema comparison or row count would have surfaced. Differences in transaction semantics, sequence handling and stored-procedure return behaviour only appear when a real business flow runs end to end.

What rollback plan was in place during cutover?

A rehearsed sequence rather than an intention: stop the application, repoint database configuration to Oracle, redeploy the previous Oracle-compatible build, restart and validate logs. That path was timed at 120 minutes against a 140-minute cutover, and held ready through the whole window. A cutover without a timed and practised way back is a one-way decision taken under time pressure.

What slowed the project down?

The integrations and the infrastructure, not the data conversion. A driver and connection string change on the integration bus blocked dependent testing, SAP ports in QA did not match production, and a VM replication fault cost two weeks in DEV. The schema conversion behaved. On a heterogeneous migration the database is rarely the critical path, which is why the interfaces and lower environments belong in scope from the start.

Carrying Oracle into a cloud migration you are already paying for?

Tell us what reaches your Oracle database and from where. We will map the application and integration surface and show what moving off it actually involves.

Book a Free Call