Chief Product Officer, Ispirer Systems
A large number of businesses utilize databases for various purposes: as a storage of business-critical information, for streamlining operations, risk management and others. The goal of the majority of companies, however, is to reduce the operational costs associated with databases. In this case, an open-source PostgreSQL database is a popular destination for migrating.
Today, we will focus on migration from Oracle to PostgreSQL and consider in detail its features and pitfalls. So, let’s dive deep into the topic.
There are several possible reasons for a database migration from Oracle to PostgreSQL. Let’s review some of them:
A pre-migration database assessment includes analyzing the source system and revealing potential problems. Generally, assessment of a database is provided by a team of seasoned experts, but we decided to optimize this process.
Ispirer team has developed Assessment Wizard with the aim of making a database assessment process quicker and easier. This tool is designed to perform an in-depth analysis of any database and estimate a migration project. Assessment Wizard connects to a source database and collects information about objects, structures inside objects, and statements. With the help of comprehensive reports, generated by the tool, it is possible to estimate migration costs and duration of a migration project with reasonable accuracy. You can check a sample report of Assessment Wizard below:
In light of the fact that each database has its own unique code, it is quite difficult to make an accurate prediction about the level of automation of the migration process. The best way to find it out is to migrate the most representative piece of code. In order to optimize this process, we have created a special tool that automatically analyzes a database and creates a detailed report indicating its volume, number of objects, triggers, indexes, functions and other database features.
As part of the database assessment, we suggest making a test migration of a part of the code and comparing the results with the report of Assessment Toolkit. If the outcome corresponds to the data from the report, you can rely on the assessment results. If the results are quite different, we would recommend that you contact us and we will make a more detailed forecast of your migration project. Often incorrect tool settings can result in poor quality of a test database migration. In such a situation we recommend contacting our support team.
For data, the main criterion is the speed of migration. But not only the speed itself is important, but also the ratio of data volume and downtime. Let’s consider two examples:
Migration of the schema and business logic objects is the most laborious and time-consuming stage in a database migration project. For example, manual migration of SQL objects with a total volume of 100k LoC can take 10-20 man-months, depending on the features of the code. However, using an automated solution, this process can be speeded up by 2-4 times.
With its unique SQL features, Oracle can deliver a number of migration issues to dba experts. This database contains a large number of unique features and functions that don’t have direct equivalents in other databases. Let’s consider the main issues:
Equally difficult for migration are spatial data and geographical functions, hierarchical queries, pivot statements, various functions for working with dates, using tabular data types, transactions. Business logic migration is a no less challenging and meticulous process that requires manual corrections. There is no tool available that can completely migrate the Oracle schema to PostgreSQL database without errors and with logic preserved. Ispirer Toolkit, however, can handle this issue almost flawlessly.
An integral part of a successful project is testing a converted database. We test databases in two ways.
Obviously, each database is different and the code optimized for one database will not necessarily work for another. That is why often the same operations in a target database can take much longer than in a source database. Optimizing the database performance can resolve such issues and make a target database operate efficiently and effectively, which is crucial for business operations.
If it is not possible to disable an Oracle database for long enough to transfer data, data replication should be used. It implies ongoing operation of a source database, while a replication tool monitors data changes and transfers them to a PostgreSQL database.
In fact, data migration can be accelerated by:
Thus, the speed of data migration depends not only on the tool, but also on multiple other factors. Our seasoned experts will help you find a comprehensive solution that is best suited to your project.
This article provides you with a general overview of database migration from Oracle to Postgres. It describes the main nuances of database migration.
In order to migrate your database from Oracle to PostgreSQL without a hitch, try our Ispirer Toolkit. It supports automatic migration from 30+ databases, including Oracle and PostgreSQL. Our tool automates the migration process, and if you have a specific database, you can customize the toolkit according to your requirements to ensure the maximum level of automation.
You can try the toolkit in action using a free demo license. Start the transformation process of your Oracle database today!