---
title: Oracle to PostgreSQL Migration: Schema and Data Checks | Remqa
url: https://remqa.com/blog/oracle-to-postgresql-migration
updated: 2026-11-29
---

[Home](https://remqa.com/) / [Blog](https://remqa.com/blog) / Oracle to PostgreSQL Migration: Schema and Data Checks

Database migration

# Oracle to PostgreSQL migration: separate schema conversion, data movement and application acceptance

Plan an Oracle to PostgreSQL migration with AWS schema conversion and data movement. Review code, numeric mappings, sequences, testing and cutover.

Remqa · November 29, 2026 · 5 min read

**Short answer:** An Oracle to PostgreSQL migration needs separate plans for schema conversion, data transfer and application behavior. AWS DMS Schema Conversion assesses and converts schema objects for supported AWS PostgreSQL targets, while DMS data migration moves the data. Review unresolved code and conversion settings, then test real application workflows before cutover.

- Schema conversion and data movement are separate jobs
- A converted object that compiles may still need behavior implemented
- Numeric mappings, materialized views and sequences need explicit review
- Accept the migration on application results as well as reconciled data

By the Remqa engineering team · Last updated November 29, 2026

The data load finishes, but the first customer transaction fails in converted database code. Another screen saves records but generates the wrong identifier. An Oracle to PostgreSQL migration can pass a table count check and still fail the application. Start with three separate deliverables: a reviewed schema, reconciled data and accepted application behavior. Assign an owner to each before choosing a cutover date.

## Separate conversion from data movement

AWS DMS Schema Conversion converts source schemas into a format compatible with supported targets. Its documented Oracle to PostgreSQL path targets Amazon RDS for PostgreSQL or Amazon Aurora PostgreSQL. The service reads source metadata, produces an assessment and lets you review converted code before applying it or exporting SQL scripts. It does not move the source data.

AWS also documents an Oracle migration walkthrough using AWS Schema Conversion Tool, or AWS SCT, with DMS data migration. Keep these tool names distinct in your plan. A step written for the managed DMS Schema Conversion feature should not be treated as an identical screen or setting in the desktop AWS SCT workflow.

| Workstream | Expected output | Acceptance question |
| --- | --- | --- |
| Schema conversion | Reviewed definitions and converted code | Are action items resolved and dependencies understood? |
| Data movement | Loaded data and a checked change process | Are missing or changed records explained? |
| Application migration | Tested queries and business workflows | Does the application behave correctly on PostgreSQL? |
| Cutover | A controlled switch of write authority | Can the team account for every accepted write? |

## Inventory code and dependencies before converting

Build an inventory of tables, keys, indexes, views, materialized views, sequences, triggers, procedures and functions. Add application queries, scheduled processes and reporting consumers. This is a recommended engineering inventory, not a promise that one assessment discovers every external dependency. Ask application owners which database behaviors they rely on rather than assuming their only dependency is a connection string.

The AWS walkthrough explicitly separates data movement from objects such as secondary indexes, sequences, default values, stored procedures, triggers, synonyms and views. Do not use a successful DMS data task as evidence that these objects were migrated. Give each required object a target definition, a review owner and a test that exercises its behavior.

## Turn assessment findings into owned work

DMS Schema Conversion can assess what converts automatically and what needs manual work. Oracle and PostgreSQL differ in identifier handling, packages, built-in functions and data types. Where conversion needs review, the service reports action items. Review those findings against the actual application rather than closing them because the generated SQL looks plausible.

Keep the converted SQL and the chosen settings together in a versioned review. Record why a mapping was accepted and which test supports it. If a source definition changes, rerun the affected review. Our recommendation is to make unexplained action items a release blocker for required paths, not to bury them in a document nobody reads during cutover.

> **Compiling converted code is not application acceptance.** The Oracle conversion settings can substitute unsupported built-in objects with stub objects that keep the same signature. That can let the converted object compile while the missing behavior still needs implementation. Identify every stub before calling the migration ready.

## Choose numeric mappings from the data contract

The optimized NUMBER mapping setting chooses a PostgreSQL numeric type based on precision and scale. Turning that setting off maps NUMBER columns to NUMERIC. A separate conversion option can map NUMBER primary and foreign key columns to BIGINT. AWS warns against that option when source values contain floating-point numbers. Treat the mapping as a decision about allowed values, not a way to make the target definition shorter.

We recommend checking actual values alongside declared definitions. Test negative amounts, fractional values, boundary values and identifiers from every system that writes to the database. Confirm that related columns use compatible decisions. Reconcile important business totals as well as row counts, and document rounding rules instead of silently accepting different output.

## Review materialized views, sequences and built-ins

For materialized views, DMS Schema Conversion offers a regular table or a PostgreSQL materialized view as the target result. The documented default is a regular table. Decide who will maintain the resulting data and test that refresh path. A converted definition does not establish that the original refresh workflow has been recreated.

Converted sequences also need attention. The setting to populate them from the last source-generated value defaults to false. We recommend checking the chosen configuration and testing a new application insert after loading existing data. Inspect identifiers generated by the application and by database code, rather than assuming that retained row identifiers prove future inserts are safe.

The conversion settings distinguish emulation from native PostgreSQL calls for functions such as TO_CHAR and TO_DATE. Orafce routine choices require the extension to be available on the target and behavior compatible with the source usage. Select and test the functions actually used. Do not enable a collection of compatibility settings without reviewing the code they affect.

## Run a complete migration rehearsal

1. Apply reviewed schema definitions to an isolated target.
2. Load a representative dataset with the selected data migration configuration.
3. Compare counts, key relationships and business totals against a defined source boundary.
4. Run application reads, writes, scheduled jobs and failure paths.
5. Check new identifiers, reporting output and access with the intended users.
6. Resolve findings in the mapping or code, then repeat the affected tests.

This is our recommended acceptance sequence. Include unusual records and rarely used workflows, not just the most common transaction. Keep credentials and production customer data out of unrestricted test outputs. A useful [data migration](https://remqa.com/data-migration) result explains differences instead of presenting only a green task status.

## Design cutover around write authority

DMS can capture source DML and supported DDL changes, but that does not mean every schema change or application behavior is automatically covered. Define the selected change path and test its boundaries. Agree who can change source definitions during the migration and how the target will be checked after those changes.

Before switching applications, define a write freeze or another explicitly tested handoff. Reconcile the final source boundary, check target writes and decide who can accept the switch. If PostgreSQL has accepted new writes, returning to an older Oracle state needs a plan for those writes. Keep rollback instructions tied to observed state, not an assumption that both databases remain interchangeable.

## How Remqa helps with Oracle migrations

Remqa can help scope schema conversion, data reconciliation and the application work around an Oracle migration. We approach database-dependent changes as [code migration](https://remqa.com/code-migration) work as well as a data transfer. Bring the database inventory, conversion findings and a critical application workflow to an engineer. We can discuss the remaining work and agree what evidence your team should require before cutover.

## Questions people ask.

**Q: Does DMS Schema Conversion move Oracle data?**
No. DMS Schema Conversion converts schema objects. AWS directs teams to the data migration features of DMS to move the data. Plan and validate both parts.

**Q: Can I use DMS Schema Conversion for any PostgreSQL host?**
The Oracle conversion path described here targets Amazon RDS for PostgreSQL and Amazon Aurora PostgreSQL. Do not assume that this documented path covers every PostgreSQL hosting setup.

**Q: Does compiling converted Oracle code prove it works?**
No. The conversion settings can replace unsupported built-in objects with stubs that have the same signature. Compilation lets other work proceed, but the missing behavior still needs implementation and tests.

**Q: How should Oracle NUMBER columns map to PostgreSQL?**
Review precision, scale and actual values. DMS Schema Conversion has an optimized numeric mapping setting and a separate option for NUMBER primary and foreign keys to become BIGINT. Avoid accepting an integer mapping for values that need fractional precision.

**Q: Can we switch back to Oracle after PostgreSQL accepts writes?**
Only with a tested plan for the writes PostgreSQL has accepted. We recommend defining the write authority and reconciliation process before cutover. A retained Oracle database alone does not establish a safe rollback.

Book a free 30-minute call with an engineer: https://calendly.com/meghanaj-connect/30min
