Home › Insights › Blogs › App Modernization

Oracle to PostgreSQL Migration Tools: What Each One Actually Does

Sajid Hussain Sajid Hussain
Last updated: 20 Nov 2026
Get an AI summary of this post on Perplexity ChatGPT Gemini
Key takeaways
No single tool does the whole job, because conversion and data movement are different problems and the tools that are strong at one are generally weak at the other.
Ora2Pg is the only option that converts the widest object range, moves data and assesses effort, is free, and works against any PostgreSQL target.
AWS Database Migration Service moves rows and does not migrate schema objects. That division surprises more plans than any other fact on this page.
Every converter leaves package state, autonomous transactions and optimizer hints to an engineer, because PostgreSQL has nothing to convert them into.

No Oracle to PostgreSQL migration tool converts everything, and the ones that claim the highest automation percentage are measuring the easy half. Conversion and data movement are separate problems with separate tools, and which pair you need is decided by your target platform and how much PL/SQL you are carrying. What follows is what each tool covers, stated as neutrally as we can manage. For the procedure these tools sit inside, see the step-by-step migration guide.

Oracle to PostgreSQL migration tools at a glance

Read this table by column rather than by row. No row scores well everywhere, and a tool that covers four columns badly is worse than two tools that cover two columns each properly. Capabilities move, so check the current vendor documentation before committing.

What each Oracle to PostgreSQL migration tool covers.
ToolSchemaPL/SQLDataCDCCostBest fit
Ora2PgYesPartlyYesNoFree, GPL-3.0Any target; widest object coverage
AWS DMS Schema ConversionYesPartlyNoNoFree; S3 storage chargedAWS targets, in the console
AWS Schema Conversion ToolYesPartlyNoNoFree downloadDesktop tool; broader source and target pairs
AWS Database Migration ServiceNoNoYesYesPaidAWS targets needing a short cutover
Google Cloud Database Migration ServiceYesPartlyYesYesPaidCloud SQL and AlloyDB targets
oracle_fdwNoNoQuery-basedNoFreePhased moves, both systems live
orafceNoCompatibility layerNoNoFreeReducing manual rewriting on any target
EDB, Ispirer, Cybertec MigratorYesVariesVariesVariesLicensedLarge estates; evaluate case by case

Not sure which tool fits your database?

Send us the object counts and we will run an assessment against your actual code, then tell you which combination of tools covers it and what each one will leave behind for an engineer.

Get a Free Oracle Migration Assessment

Migrating from Oracle to PostgreSQL with Ora2Pg

Ora2Pg connects to Oracle, reads the data dictionary, and emits PostgreSQL DDL, converted code and data. Its object coverage is the widest of any free tool: tables with constraints, views, materialized views, tablespaces, sequences, indexes, triggers, grants, functions, procedures, packages, partitions, types, synonyms and query conversion. The project describes itself as “a free tool used to migrate an Oracle database to a PostgreSQL compatible schema”, and it is released under GPL-3.0, which permits commercial use.

Start with the assessment, not the conversion. Ora2Pg’s SHOW_REPORT export type, run with cost estimation, grades the database and puts a number on the conversion effort before you have committed to anything. Treat the number as calibration rather than as an estimate: the defaults are generic, so run a sample conversion against your own packages and adjust the cost units to what your team actually took.

Scaffold the project rather than inventing a layout. Ora2Pg can generate a working tree with a configuration file and export scripts, giving you the original Oracle code and the PostgreSQL port side by side in version control. That sounds like housekeeping and turns out to matter a great deal during review, when the question is always what the original did.

What it does not do is change data capture. For a migration that cannot pause writes, Ora2Pg handles the conversion and a replication service handles the sync. That pairing is common and entirely normal. For an Ora2Pg migration run end to end, and the split between what the tool converted and what the application team rewrote, see the manufacturing case study.

What it leaves you is predictable, and it is the same list every tool leaves. Ora2Pg is direct in its own documentation that it converts as much as it can and that manual work remains. In practice that work clusters in the same places regardless of which converter produced it: package-level state, autonomous transactions, optimizer hints, and anything that relied on Oracle-specific session behaviour. Those are not gaps in the tooling. They are constructs PostgreSQL has no equivalent for, so no amount of tool selection removes them. What separates a good converter from a poor one is not how much it converts, it is how clearly it tells you what it skipped. For what each construct converts into, and the options for each, see the conversion guide.

AWS SCT and AWS DMS

On AWS the division is clean and routinely misunderstood: schema conversion and data movement are different products.

AWS Database Migration Service moves rows. It performs a full load and then streams ongoing changes, which is what makes a short cutover window achievable. What it does not do is migrate schema objects. AWS’s own Oracle to PostgreSQL walkthrough puts secondary indexes, sequences, default values, stored procedures, triggers, synonyms and views outside its scope and directs you to a conversion tool for them. This is documented rather than hidden, and it is still easy to plan straight past, because the gap appears during the first test load rather than while the plan is being written. For how a full load and CDC fit together, see moving the data.

There are now two conversion options, not one. AWS DMS Schema Conversion is a managed feature inside the DMS console. The AWS Schema Conversion Tool is the long-standing downloadable desktop application, still maintained and still covering a broader set of source and target pairs. AWS has not retired SCT, and for Oracle to PostgreSQL both routes exist today. If you read older guidance that names SCT as the only option, that is the thing which has changed.

Budget for the extension pack. Converted code frequently depends on an AWS extension schema that supplies Oracle-compatible functions. If it is not installed on the target, converted objects reference functions that do not exist and will not compile, which produces a confusing failure a long way from its cause.

Google Database Migration Service

Google’s Database Migration Service covers both halves in one product for Google targets, which makes it the most self-contained option in this list if you are landing on Cloud SQL or AlloyDB.

Conversion happens in a conversion workspace, which converts the schema and code and lets you inspect and edit the result before anything reaches the target. Google’s documentation records supported Oracle sources from 11g through 21c, including Amazon RDS for Oracle and Exadata, with Cloud SQL for PostgreSQL and AlloyDB for PostgreSQL as destinations. The service supports both continuous and one-time migration flows, so change data capture is built in rather than bolted on.

One detail worth knowing before you start. Google also documents legacy conversion workspaces, which were built on Ora2Pg and cannot test the converted schema before migration. Google does not recommend them for new work. If you are following a tutorial written a couple of years ago, check which of the two it is describing, because the workflow and the limitations are different.

oracle_fdw, orafce and commercial tools

Three categories that sit outside the convert-and-move pattern and are easy to overlook.

oracle_fdw is a foreign data wrapper that presents Oracle tables as foreign tables inside PostgreSQL. It converts nothing and replicates nothing. What it gives you is the ability to read Oracle from PostgreSQL, join across both, and move a domain at a time while both systems stay in use, which is what a phased migration needs.

orafce is a compatibility extension rather than a migration tool. It supplies PostgreSQL implementations of a wide range of Oracle built-in functions and some DBMS_ package behaviour. Installing it before conversion starts removes a measurable amount of mechanical rewriting, and more usefully makes the differences that remain easier to see.

Commercial tools include EDB’s migration tooling, Ispirer and Cybertec Migrator. Each is a licensed product aimed at larger estates, and coverage differs enough between them that a comparison here would be out of date before it was useful. Evaluate against your own object inventory, and in particular against your packages, since that is where the products differ most and where vendor demonstrations tend to be thinnest.

Three questions are worth asking of any commercial evaluation. Run the trial against your own packages rather than the sample schema supplied with it. Establish what any automation percentage is measuring, and across which object types, because a figure dominated by tables and views says nothing about procedural code. And check whether the licence covers the migration period or the running system afterwards, which is the difference between a one-off tooling cost and a subscription you did not budget for.

How to choose

Two variables decide the shape of the answer: how much PL/SQL you are carrying, and whether writes can pause. The target platform decides which vendor’s product fills each slot, which is a smaller question than it looks.

Which Oracle to PostgreSQL tools you need, by PL/SQL volume and downtime tolerance A two-by-two. With little PL/SQL and a maintenance window, one conversion tool does the job. With little PL/SQL and near-zero downtime, add a change data capture service. With a lot of PL/SQL and a window, add engineer review of the converted code. With a lot of PL/SQL and near-zero downtime, you need all three, and that is the longest timeline of the four. Downtime tolerance Near zero Window available Low High PL/SQL volume Converter plus a CDC service The sync is the work, not the code Converter, CDC and review Longest timeline of the four One converter, on its own One tool, one run Converter plus engineer review Code volume sets the schedule Which Oracle to PostgreSQL tools you need, by PL/SQL volume and downtime tolerance A two-by-two. With little PL/SQL and a maintenance window, one conversion tool does the job. With little PL/SQL and near-zero downtime, add a change data capture service. With a lot of PL/SQL and a window, add engineer review of the converted code. With a lot of PL/SQL and near-zero downtime, you need all three, and that is the longest timeline of the four. Low PL/SQL, window available One converter, on its own One tool, one run Low PL/SQL, near-zero downtime Converter plus a CDC service The sync is the work, not the code High PL/SQL, window available Converter plus engineer review Code volume sets the schedule High PL/SQL, near-zero downtime Converter, CDC and review Longest timeline of the four
The target platform decides which vendor fills each slot, not how many slots there are. That is why it is not an axis here.

With a maintenance window and modest procedural code, one converter does the whole job and Ora2Pg is usually it. Remove the window and a replication service joins the list. Raise the code volume and engineer review joins it, which is a line item rather than a tool. Both at once is the longest of the four timelines, and it is the case where picking tools before running an assessment costs the most.

Our own database migration accelerator sits on top of these rather than replacing them: automated conversion first, then engineer review of every converted object before it reaches a target schema. The assessment that decides the combination is the same one behind our Oracle to PostgreSQL migration services.

Planning an Oracle to PostgreSQL migration?

Tell us the Oracle version, roughly how large the database is and where you want to land. You will talk to a database architect, not an account manager.

Talk to a Database Architect
#oracle to postgresql migration tools #migrating from oracle to postgresql with ora2pg #aws dms oracle to postgres #aws sct oracle to postgresql #google database migration service oracle #open source oracle migration tool
Share

Frequently asked questions

Does AWS DMS migrate stored procedures?
No. AWS Database Migration Service moves row data. Secondary indexes, sequences, default values, stored procedures, triggers, synonyms and views are outside its scope, and AWS directs you to a schema conversion tool for those. Planning as though DMS covers the schema is a common way for a timeline to slip, because the gap appears during the first test load rather than during planning.
Is Ora2Pg free for commercial use?
Yes. Ora2Pg is released under the GNU General Public License v3.0, which permits commercial use without a fee. The licence does carry obligations if you distribute a modified version, so check it against your own policy. The project describes itself as a free tool for migrating an Oracle database to a PostgreSQL compatible schema.
Which tool converts PL/SQL packages?
All of the main converters handle part of it. Ora2Pg, AWS SCT and Google's conversion workspace map package procedures and functions into a PostgreSQL schema of functions. None of them solves package-level state, because PostgreSQL has nothing to convert it into. That decision stays with an engineer whichever tool you use.
Sajid Hussain
Lead Database Architect, Kansoft

Lead Database Architect at Kansoft with 21 years of experience designing, migrating and tuning database platforms for enterprises across India, UAE, USA, Europe and Australia. He writes about Oracle to PostgreSQL migration and the engineering decisions that determine whether one finishes on schedule.

Need help with your next project?

Our engineering experts can help you build something exceptional.

Book a Free Call