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.
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.
Moving the database alone would have broken all three callers.
Validation in production was the gate for decommissioning.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Data
Object reconciliation between source and target, row counts on every table, checksums where practical, and explicit sequence and identifier checks after the load.
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.
Integration
All eight SAP interfaces exercised against the PostgreSQL backend and reconciled on the business outcome, not on whether the call returned success.
Operational
DNS, load balancer, HTTPS termination, Tomcat startup, SMTP delivery, application logs and database reachability on TCP 5432, each confirmed before the window opened.
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.
- Application errors and acknowledgements SAP → portal
- Inventory reports SAP → portal
- JIT schedules and forecasts SAP → portal
- Generic messages SAP → portal
- KANBAN call-offs SAP → portal
- Orders and order changes SAP → portal
- Forecasts for supplier deliveries Portal → SAP
- Receiving advices SAP → portal
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.
Database configuration · Tomcat and SMTP · Deploy PostgreSQL build · Tomcat startup · Log validation
Stop Tomcat · Repoint to Oracle · Deploy previous build · Start and verify · Validate logs
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.
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.
How the work was shaped.
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.
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.
Also read
The background reading behind this engagement, and the service it was delivered under.
How to migrate from Oracle to PostgreSQL, step by step
The seven-stage sequence this engagement followed, with a planning checklist
Read GuideOracle to PostgreSQL migration challenges
The defects that pass a row count, including the transaction behaviour seen here
Read GuideOracle to PostgreSQL migration tools compared
What Ora2Pg converts, and what it leaves to the application team
Read GuideOracle vs PostgreSQL
The engine comparison behind the decision to leave Oracle rather than move it
Read ServiceOracle to PostgreSQL migration services
How we scope and run heterogeneous database migrations
Read ServiceSoftware engineering for manufacturing
Where this sits in our wider manufacturing and industrial work
ReadRelated Case Studies
Audit Document Management System for Manufacturing on ASP.NET and Angular
A cable and pipe manufacturer centralised scattered audit documentation into one governed repository, cutting retrieval from days to under a second.
Distributor Management System for Manufacturing on .NET and SAP
An energy equipment manufacturer gave its distributor network real-time SAP integration, automated scheme settlement and a self-service Android app.
Employee Intranet Portal for Manufacturing on ASP.NET and Angular
A cable and pipe manufacturer replaced shared drives and email chains with one governed portal for HR and IT policy, with full version control.