Convert Oracle to PostgreSQL.

Database migration software from DBConvert helps you convert and sync data from Oracle to PostgreSQL, Amazon RDS PostgreSQL, or Heroku Postgres servers.

Why migrate from Oracle to PostgreSQL?

There are many reasons why you might choose to migrate from Oracle to PostgreSQL. Here are just a few of the benefits:

  1. Cost:

    In addition to the cost of Oracle licenses, using Oracle databases introduces additional fees for features such as partitioning and high availability, and expenses can rise rapidly. PostgreSQL is open source and free to install and use.

  2. Flexibility:

    PostgreSQL is an open-source database and readily available from public cloud providers, including AWS. With PostgreSQL, you don't run the risk of being tied to a vendor.

  3. Customizability:

    Because PostgreSQL is open source, countless extensions and add-ons can dramatically improve database performance, and many of them are free to use. In Oracle, the cost of similar features is increasing rapidly.

Switching from Oracle to PostgreSQL is a costly and time-consuming task. For heterogeneous migrations such as Oracle to PostgreSQL, you must ensure that the schemas/ data types of the source Oracle database are compatible with the target PostgreSQL database.

How to convert Oracle to Postgres?

Let's compare the well-known open-source tool,Ora2pg , with the DBConvert / DBSync DB migration tools.

Ora2pg is a free and open-source Perl-based tool used to migrate an Oracle database to a PostgreSQL database. It connects your Oracle database, automatically scans and retrieves its structure or data. Then ora2pg generates SQL scripts for loading data to your PostgreSQL database.

Pros:

  • Ora2pg is cross-platform software supporting Windows and Linux operating systems.
  • Ora2pg is free and open-source.

Cons:

  • The installation procedure for Ora2pg, including Perl modules, Oracle, and Postgres clients, can be complex depending on the OS version and even more complicated if you do the same on Windows. There are even many guides on setting up ora2pg that are still a little tricky.
  • Ora2pg is a command-line tool and thus doesn't have a visual interface.
  • Ora2pg serves data migration tasks from Oracle or MySQL to PostgreSQL. In other words, it transfers databases in ONE direction only.

DBConvert and DBSync are proven database migration tools for converting and synchronizing data from Oracle to PostgreSQL.

GUI.

DBConvert software is highly customizable and allows you to quickly and easily export data from Oracle to Postgres using a comprehensive graphical interface.

Configuration.

In DBConvert products, the target database is presented in the form of a tree, which dramatically simplifies the setting of parameters. The proven advantage of DBConvert software is that non-professional users can effectively use it.

Select the database objects to migrate.

By default, before migration, all database objects, including database schema (tables, views, indexes) with unique, primary, foreign keys, are selected.

You probably don't need to migrate everything from Oracle to PostgreSQL database. Often, you shouldn't waste time migrating legacy objects that you no longer need, such as backup data and temporary tables from previous maintenance.

Just select only the objects you need before converting.

Database migration directions.

In any combination, using our Oracle to PostgreSQL converters, data conversions between the following databases are possible:

  • Oracle,
  • PostgreSQL,
  • Heroku Postgres,
  • AWS RDS/ Aurora,
  • Google Cloud SQL for PostgreSQL,
  • Azure Database for PostgreSQL

Database synchronization.

DBSync software keeps your databases in Sync with Update, Insert, and Drop synchronization features.

Bi-directional synchronization helps to update data in both source and destination databases simultaneously.

Change Data Capture (CDC) has become the ideal solution for low-latency, reliable, and scalable data replication between Oracle and PostgreSQL in high-velocity heterogeneous data environments.

Trigger-based CDC Synchronization algorithm is designed to accurately analyze the destination database data and instantly track changes in both databases.The trigger-based sync method increases recurrent synchronization speed in times.

For recurring synchronization and conversion tasks, use theBuilt-in Scheduler.

DBConvert Wizard interface guides you through several easy steps to perform fast and robust data migration and sync from Oracle to PostgreSQL databases.

 DBConvert for Oracle & PostgreSQL

Migration directions:

  • Oracle On-Premises/ Cloud → PostgreSQL, PostgreSQL Dump, PHP Script
  • PostgreSQL → Oracle On-Premises/ Cloud
  • Oracle On-Premises/ Cloud ↔ AWS RDS / Aurora
  • Oracle On-Premises/ Cloud ↔ Heroku Postgres
  • Oracle On-Premises/ Cloud ↔ Google Cloud SQL for PostgreSQL
  • Oracle On-Premises/ Cloud ↔ Azure Database for PostgreSQL

Version: 1.1.9

Release Date: Dec. 15, 2020

 DBSync for Oracle & PostgreSQL

Sync directions:

  • PostgreSQL ↔ Oracle On-Premises/ Cloud
  • PostgreSQL ↔ Amazon RDS/ Aurora↔ Oracle On-Premises/ Cloud
  • PostgreSQL ↔ Heroku Postgres ↔ Oracle On-Premises/ Cloud
  • PostgreSQL ↔ Google Cloud SQL for PostgreSQL ↔ Oracle On-Premises/ Cloud
  • Oracle On-Premises/ Cloud ↔ Azure Database for PostgreSQL ↔ PostgreSQL

Version: 1.2.2

Release Date: April 28, 2021

Try All-in-one DB migration and Sync software.

DBConvert Studio

 Version: 2.1.4

Release Date: Sept. 16, 2021

Supported databases:

  • SQL Server
  • MySQL
  • MariaDB
  • Percona
  • Oracle
  • PostgreSQL
  • Access
  • FoxPro
  • SQLite
  • Interbase
  • Firebird
  • IBM DB2
  • MS Azure SQL
  • Amazon RDS
  • Amazon Aurora
  • Heroku Postgres
  • Google Cloud

Using Oracle to PostgreSQL conversion and synchronization tools.

When you start DBConvert or DBSync application in GUI mode it guides you through several steps to set up the database migration or synchronization:

1. Connect to Oracle source database.

If a source database requires you to log in, you can specify a user name/ password and host/ port parameters.

Connect to Oracle source database from DBConvert

2. Connect to PostgreSQL destination database.

Specifying parameters for destination database looks like the same as for source. Usually, it consists of defining connection settings and username/password pairs.

Connect to PostgreSQL target database from DBConvert

NOTE #1: Every DBConvert or DBSync tool has two different databases in its name. That means any specified database from a pair can be set up as a source or destination. Besides, the same type of database may be set up both as a source or destination.

As an example, here is the list of possible migration directions with on-premises databases:

  • Oracle to PostgreSQL
  • PostgreSQL to Oracle
  • Oracle to Oracle
  • PostgreSQL to PostgreSQL

NOTE #2: Don't be confused by the fact that connections to cloud databases like Amazon RDS, Google Cloud, and Heroku are not explicitly specified in the configuration of a source or destination in the DBConvert / DBSync interface. To connect to Cloud database instances, use the same settings as you do for traditional on-premises databases.

NOTE #3: Your connections to source and target databases stay active until you close DBConvert/ DBSync application or reopen new connections on "source" and "destination" steps.

Read more about the specific source/ destination configurations for different databases.

3. Custoimzation and configuration.

At the next step, you can specify precisely which tables, fields, indices, views you want to transfer to the PostgreSQL destination database. Just check/ uncheck the box in front of each database object you want to convert.

Customize general database/ tables settings. Or set up a particular table , field, index individually when migrating data from Oracle to PostgreSQL.

Check out our articles about Custoimzation and configuration. for detailed information.

The screenshot below sums up general features available in DBConvert software solutions.

4. Detection of potential database migration issues. Errors and Warnings

The database typically constrains certain relations on the data that cannot be violated. On the customization step, a smart error checker verifies all possible Data integrity and Referential integrity issues and highlights them, if any, before performing a migration.

By default, DBConvert tries to automatically map the database types of the source Oracle database to the closest equivalent of the target PostgreSQL database types. However, you can manually change the data types for the entire database globally using the "Global mapping" or individually for each field.

Check out Smart error checker. Errors and Warnings for more information.

5. Execution. The final stage of data migration from Oracle to PostgreSQL

Once you configure source and destination databases for migration in the previous steps, you can start the actual conversion or synchronization process.

Click the "Commit" button to start conversion. Also, here, you can monitor the migtation/ synchronization process.

Optionally save connection settings and configuration parameters into the session file to schedule the launching of sync or migration jobs regularly.

Execution step of DBConvert products

Read more about execution stage available options.

Command line mode

Previously saved sessions can be passed as parameters to Command-Line DBConvert Client. A session keeps Oracle source and PostgreSQL target database connection settings with other specified options.

Example: C:\Program Files\DBConvert\oracle2postgresqlPro\oracle2postgresqlPro_Cons.exe /Session:"Session_Name"

NOTE: First, you have to run the software in GUI mode to create a session file with initial parameters.

Built-in scheduler.

Our applications come with a built-in scheduler to run database migration and sync jobs at specified times. Just set the scheduled date and time to execute job sessions automatically.

Find more Information about built-in scheduler

DBConvert screenshot

Supported OS:

Requirements

  • Necessary privileges to write into database on the target Oracle server (this requirement is optional as there is an option to overcome the restrictions using dump file)
  • Oracle 12.x versions require Oracle Database 12c Release 2 Client (12.2.0.1.0) for Microsoft Windows (32-bit) to be installed.
  • Necessary privileges to write into database on the target PostgreSQL server (this requirement is optional as there is an option to overcome the restrictions using dump file or PHP Script)

Highlights

  • Speed conversion with Bulk and Quantization features
  • Amazon RDS PostgreSQL DB Instance support
  • ODBC Oracle and Oracle client are not required
  • Direct connection to PostgreSQL server
  • Saving data into a PostgreSQL Dump and PHP script for export to PostgreSQL database
  • Saving data into an Oracle Dump for export to Oracle database
  • Views conversion from Oracle to MS SQL and MySQL and back support
  • PostgreSQL schemes support
  • PostgreSQL Servers from 8.x. to 13.x versions hosted on Linux, Solaris, Mac OS X, Windows are supported.
  • Oracle Cloud support
  • Heroku Postgres as a source or target database.
  • Oracle 10.x.x/ 11.x.x/ 12.x.x, 18.x.x, 19.x.x, Oracle XE (Express Edition) located on Linux, Solaris, Mac OS X, Windows machines
  •  DBConvert Key features.

Read information about reverse migration.