Migrate from PostgreSQL to AlloyDB Omni
Migrating from PostgreSQL to AlloyDB Omni is facilitated by the fact that AlloyDB Omni is based on PostgreSQL.
To migrate data from PostgreSQL to AlloyDB Omni, follow these steps:
-
Verify that any extensions in use on the source PostgreSQL database are supported on AlloyDB Omni. While some extensions are included with AlloyDB Omni, you need to install other extensions manually.
To learn which extensions are included with AlloyDB Omni, see Supported database extensions .
-
To migrate your data, use the tools in the following table, based on data migration complexity and downtime.
Migration type Tool Basic migration with sufficient downtime Use pg_dumpto back up the existing PostgreSQL database. Usepg_restoreto restore the backup to the new AlloyDB Omni database.Complex migration with sufficient downtime Use pgloaderto stream data from the source database to the destination database.Complex migration with minimal downtime Use pglogicalto replicate data from the source database to the destination database. -
Install the extensions on the destination AlloyDB Omni system before you migrate anything from the source system.
Migrate from Oracle to AlloyDB Omni
Data migration from Oracle to AlloyDB Omni often involves converting Oracle PL/SQL code to PgSQL. The amount and complexity of the PL/SQL code often determines the effort required to migrate from Oracle to AlloyDB Omni. The more Oracle-specific features that are in use, the more likely it is that you need to perform some manual work for code conversion.
The following table lists open source and commercial tools to help you perform code conversions.
- Open source option
Ora2Pg for schema conversion, data movement, and code conversion
- Third-party commercial option
Ispirer for schema and code conversion
- Open source option
Use Ora2Pg for one-time data movement if there is a large enough downtime window to migrate all the data at one time. This option doesn't provide change data capture or incremental apply.
- Ispirer is a commercial product that converts schema and code that supports Oracle-to-AlloyDB Omni conversions as well as initial data load and batch-mode incremental update. For more information, see Oracle to PostgreSQL Conversion Tool by Ispirer .
For more information, see pgloader's documentation .
This extension isn't included with AlloyDB Omni and must be installed manually. For more information, see Install Orafce for AlloyDB Omni .
oracle_fdw
extension. This extension provides
connectivity to Oracle databases from within
AlloyDB Omni and lets you migrate Oracle DBLinks to
AlloyDB Omni.For more information, see GitHub - laurenz/oracle_fdw: PostgreSQL Foreign Data Wrapper for Oracle .

