Oracle to PostgreSQL conversion and synchronization.

Database migration software from DBConvert helps you convert and sync data from Oracle to PostgreSQL, Amazon RDS PostgreSQL, CockroachDB, 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, database objects, including database schema (tables, 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:

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.

Supported databases:
  • Oracle On-Premises
  • Oracle Cloud
  • PostgreSQL
  • PostgreSQL Dump
  • PHP Script
  • CockroachDB
  • Amazon RDS for PostgreSQL
  • Amazon Aurora (PostgreSQL Compatible)
  • Google Cloud SQL for PostgreSQL
  • Azure Database for PostgreSQL
  • Heroku Postgres
 DBConvert for Oracle & PostgreSQL

Version: 1.2.5

Release Date: Nov. 5, 2024

 DBSync for Oracle & PostgreSQL

Version: 1.2.7

Release Date: May 24, 2024

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

DBConvert Studio

 Version: 4.1.6

Release Date: Dec. 5, 2024

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 launching the DBConvert or DBSync application in GUI mode, it seamlessly guides you through the steps to initiate database migration or synchronization:

1. Connect to Oracle source database.

Specify the username/password and host/port parameters if your source database requires login credentials.

Connect to Oracle source database from DBConvert

2. Connect to PostgreSQL destination database.

Specify parameters for the destination database similar to the source, defining connection settings and username/password pairs.

Connect to PostgreSQL target database from DBConvert

NOTE #1: Each DBConvert or DBSync tool's name comprises two different databases, enabling any specified database to operate as the source or destination. Furthermore, the same type of database can function as both the source and destination.

NOTE #2: Connections to cloud databases (e.g., Amazon RDS, Google Cloud, or Azure SQL) aren't explicitly specified in the user interface but use the same settings as traditional on-premises databases.

NOTE #3: Connections to source and target databases remain active until you close the DBConvert/DBSync application or reopen new connections.

Refer to our documentation for specific source/ destination configurations for different databases.

3. Configure database migration options.

Specify the tables, fields, indices, and views you want to transfer to the PostgreSQL destination database by checking/unchecking the corresponding boxes.

Customize general database/ tables settings. Or configure specific table , field, index object individually when migrating data.

Explore our articles in the user's manual about Configuring database migration options. for detailed information.

The screenshot below summarizes the general features available in DBConvert software.

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

The database enforces certain relations on the data, and on the customization step, an intelligent error checker verifies all possible data integrity and referential integrity issues. It highlights any problems before migration starts.

By default, DBConvert attempts 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.

Explore the Intelligent error checker for more information. on errors and warnings

5. Execution. The final stage of data migration.

Initiate the conversion or synchronization process after configuring source and destination databases in the previous steps.

Click the "Commit" button to start conversion. Here, you can also monitor the migration/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

Explore more about the options available during the execution stage

Command line mode

Pass previously saved sessions as parameters to the Command-Line DBConvert Client. A session retains 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, run the software in GUI mode to create a session file with initial parameters.

Built-in scheduler.

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

Find more Information about the built-in scheduler

DBConvert screenshot

Supported OS:

Requirements

  • 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)
  • 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)

Highlights

  • 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
  • ODBC Oracle and Oracle client are not required
  • Saving data into an Oracle Dump for export to Oracle database
  • PostgreSQL schemas support
  • PostgreSQL Servers from 8.x. to 16.x versions hosted on Linux, Solaris, Mac OS X, Windows are supported.
  • Speed conversion with Bulk and Quantization features
  • Saving data into a PostgreSQL Dump and PHP script for export to PostgreSQL database
  • Views conversion from Oracle to MS SQL and MySQL and back support
  • Amazon RDS PostgreSQL DB Instance support
  • Oracle Cloud support
  •  DBConvert Key features.

Explore details regarding reverse migration.