Verwenden Sie die folgenden Tools, um Daten von PostgreSQL zu AlloyDB Omni zu migrieren. Die Auswahl des Tools hängt von der Komplexität der Migration und der zulässigen Ausfallzeit ab:
Migrationstyp
Tool
Einfache Migration mit ausreichend Ausfallzeit
pg_dump zum Sichern der vorhandenen Datenbank und pg_restore zum Wiederherstellen der Sicherung in der neuen Datenbank.
Komplexe Migration mit ausreichend Ausfallzeit
pgloader zum Streamen von Daten von der Quelle zum Ziel.
Komplexe Migration mit minimaler Ausfallzeit
pglogical zum Replizieren von Daten von der Quelle zum Ziel.
Oracle zu AlloyDB Omni
Wenn Sie genügend Ausfallzeit haben, um das Datenvolumen in Oracle zu verschieben und die gesamte in Oracle ansässige Anwendungslogik in PostgreSQL zu konvertieren, verwenden Sie Ora2Pg für die Schemakonvertierung, die Datenübertragung und die Codekonvertierung.
Wenn Sie nur minimale Ausfallzeiten für die Migration haben, verwenden Sie die folgenden Tools:
Migrieren
Verwenden
Code und Schema
Google Cloud Database Migration Service zum Migrieren des Schemas und des Codes Ora2Pg für die Schemakonvertierung, die Datenübertragung und die Codekonvertierung Change Data Capture (CDC)-Tool nach Bedarf zum Identifizieren und Erfassen von Daten aus relationalen Oracle-Tabellen und zum Bereitstellen der Änderungsdaten für die Verwendung durch Anwendungen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eThis page guides users through migrating data from PostgreSQL or Oracle to AlloyDB Omni.\u003c/p\u003e\n"],["\u003cp\u003eFor PostgreSQL migration, tools like \u003ccode\u003epg_dump\u003c/code\u003e, \u003ccode\u003epg_restore\u003c/code\u003e, \u003ccode\u003epgloader\u003c/code\u003e, and \u003ccode\u003epglogical\u003c/code\u003e are recommended based on downtime and complexity.\u003c/p\u003e\n"],["\u003cp\u003eFor Oracle migration with sufficient downtime, \u003ccode\u003eOra2Pg\u003c/code\u003e handles schema conversion, data movement, and code conversion.\u003c/p\u003e\n"],["\u003cp\u003eFor Oracle migration with minimal downtime, use Google Cloud Database Migration Service or \u003ccode\u003eOra2Pg\u003c/code\u003e for code and schema, and \u003ccode\u003eEqualum\u003c/code\u003e for data migration.\u003c/p\u003e\n"]]],[],null,["# Migrate data to AlloyDB Omni\n\nSelect a documentation version: Current (16.8.0)keyboard_arrow_down\n\n- [Current (16.8.0)](/alloydb/omni/current/docs/migrate-data)\n- [16.8.0](/alloydb/omni/16.8.0/docs/migrate-data)\n- [16.3.0](/alloydb/omni/16.3.0/docs/migrate-data)\n- [15.12.0](/alloydb/omni/15.12.0/docs/migrate-data)\n- [15.7.1](/alloydb/omni/15.7.1/docs/migrate-data)\n- [15.7.0](/alloydb/omni/15.7.0/docs/migrate-data)\n\n\u003cbr /\u003e\n\nThis page outlines the process to migrate data from PostgreSQL or Oracle to AlloyDB Omni.\n\n\u003cbr /\u003e\n\n- [PostgreSQL to AlloyDB Omni](#migrate-postgres)\n\n- [Oracle to AlloyDB Omni](#migrate-oracle)\n\nPostgreSQL to AlloyDB Omni\n--------------------------\n\nUse the following tools based on your migration complexity and downtime to migrate data from PostgreSQL to AlloyDB Omni:\n\nOracle to AlloyDB Omni\n----------------------\n\nIf you have sufficient downtime to move the volume of data in Oracle and convert all Oracle resident application logic to PostgreSQL, use [Ora2Pg](https://ora2pg.darold.net/) for schema conversion, data movement, and code conversion.\n\nIf you have minimal downtime for the migration, use the following tools:"]]