Konvertierungsarbeitsbereich erstellen und Schema konvertieren
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite erfahren Sie, wie Sie einen Konvertierungsarbeitsbereich erstellen und damit sofort eine deterministische Code- und Schemakonvertierung von Oracle zu PostgreSQL durchführen. Bevor Sie den Arbeitsbereich erstellen, müssen Sie
ein Verbindungsprofil für Ihre Quelldatenbank erstellen.
Arbeitsbereiche mit dem integrierten Editor
Wenn Sie einen interaktiven Conversion-Arbeitsbereich erstellen, können Sie ihn upgraden, um auf die
automatische Konvertierung mit Gemini zuzugreifen.
Ein Upgrade des Arbeitsbereichs ist nur einmal möglich, unmittelbar nachdem Sie den neu erstellten Konvertierungsarbeitsbereich geöffnet haben.
Dieser Vorgang wird als letzter Schritt in diesem Verfahren beschrieben.
So erstellen Sie einen interaktiven Konvertierungsarbeitsbereich und führen die Schemakonvertierung durch:
Rufen Sie in der Google Cloud Console Conversion Workspaces auf.
Wenn Sie einen neuen Arbeitsbereich zum ersten Mal öffnen, können Sie ihn upgraden, um auf die automatische Konvertierungsfunktion auf Basis von Gemini zuzugreifen.
Gehen Sie dazu so vor:
Wählen Sie im Dialogfeld Gemini-Autokonvertierung das Kästchen Upgrade des Arbeitsbereichs durchführen, um die neue Funktion zu testen aus und klicken Sie auf Weiter.
Klicken Sie im Dialogfeld Quellobjekte mit Gemini konvertieren? auf Konvertieren.
Database Migration Service führt den Konvertierungsprozess jetzt noch einmal aus, um die mit Gemini optimierte Konvertierung zusätzlich zu den deterministischen Konvertierungsergebnissen anzuwenden.
Weitere Informationen zur automatischen Konvertierung mit Gemini finden Sie unter
Automatische Konvertierung mit Gemini.
Alte Konvertierungsarbeitsbereiche
Legacy-Konvertierungsarbeitsbereiche sind eine ältere, eingeschränktere Art von Konvertierungsarbeitsbereichen. Wir raten davon ab, die alten Conversion-Arbeitsbereiche für Ihre Migrationen zu verwenden. Wenn Sie einen Legacy-Konvertierungsarbeitsbereich verwenden müssen, maximieren Sie den Abschnitt Legacy-Konvertierungsarbeitsbereich erstellen und Schema konvertieren.
Legacy-Konvertierungsarbeitsbereich erstellen und Schema konvertieren
In Legacy-Konvertierungsarbeitsbereichen werden Ora2Pg-Konfigurationsdateien verwendet.
Bevor Sie einen Legacy-Konvertierungsarbeitsbereich erstellen, müssen Sie zuerst Ihre Ora2Pg-Konfiguration außerhalb von Database Migration Service erstellen.
Weitere Informationen finden Sie unter
Mit Legacy-Konvertierungsarbeitsbereichen arbeiten.
Rufen Sie in der Google Cloud Console Conversion Workspaces auf.
Führen Sie auf der Seite Konvertierungsarbeitsbereich erstellen die folgenden Schritte aus:
Geben Sie den Namen, die Kennung und die Region für Ihren Conversion-Arbeitsbereich ein.
Wählen Sie im Drop-down-Menü Quelldatenbankmodul die Option Oracle aus.
Wählen Sie als Zieldatenbankmodul die Option Cloud SQL for PostgreSQL aus.
Maximieren Sie den Bereich Arbeitsbereichskonfigurationen anpassen und klicken Sie das Kästchen Legacy-Konvertierungsarbeitsbereich aktivieren an.
Klicken Sie auf Arbeitsbereich erstellen und fortfahren.
Führen Sie auf der Seite Mit Quelle verbinden und Objekte konvertieren die folgenden Schritte aus:
Wählen Sie im Drop-down-Menü Quellverbindungsprofil das Verbindungsprofil für Ihre Quelldatenbank aus.
Klicken Sie im Feld Konfigurationsdatei auf Durchsuchen und wählen Sie mit der Dateiauswahl des Systems die Datei mit dem Konvertierungs-Mapping aus.
Sie können mehrere Dateien mit Conversion-Zuordnungen hochladen, indem Sie auf Datei hinzufügen klicken.
Klicken Sie im Bereich Konfiguration konvertieren auf Schema abrufen und konvertieren.
Der Database Migration Service stellt jetzt eine Verbindung zur Quelldatenbank her, ruft Ihr Schema ab und konvertiert es gemäß den Regeln in Ihrer Konvertierungszuordnungsdatei in das Ziel-SQL-Schema.
Dieser Vorgang kann einige Minuten dauern.
Klicken Sie auf Speichern und schließen.
Die Seite mit den Details zum Konvertierungsarbeitsbereich wird geöffnet.
Sie können das konvertierte Schema jetzt auf Ihre Zieldatenbank anwenden. Wenn Ihre Quelldatenbank Tabellen ohne Primärschlüssel enthält, müssen Sie nach dem Anwenden des konvertierten Schemas auch manuell Primärschlüsselbeschränkungen in den konvertierten Tabellen in der Zieldatenbank erstellen.
Weitere Informationen finden Sie unter
Mit Legacy-Konvertierungsarbeitsbereichen arbeiten.
Nächste Schritte
Sie können jetzt mit Ihrem Konvertierungsarbeitsbereich arbeiten, um Konvertierungsprobleme zu beheben, Ihre Objekte mit dem interaktiven Editor zu ändern und das konvertierte Schema auf Ihre Zieldatenbank anzuwenden. Weitere Informationen finden Sie unter
Oracle-Code und -Schema in PostgreSQL-Syntax konvertieren.
[[["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-01 (UTC)."],[[["\u003cp\u003eConversion workspaces are used to convert source database schemas and objects into a format compatible with the destination database, allowing Database Migration Service to migrate data.\u003c/p\u003e\n"],["\u003cp\u003eThere are two types of conversion workspaces: one with a built-in editor for live editing, and a legacy option that utilizes Ora2Pg for schema conversion.\u003c/p\u003e\n"],["\u003cp\u003eSetting up a conversion workspace involves defining its settings, connecting to the source database, pulling schema objects, performing source conversion, and applying the converted schema to the destination database.\u003c/p\u003e\n"],["\u003cp\u003ePrerequisites for setting up a workspace include creating a connection profile for the source Oracle database and optionally configuring an Ora2Pg file for legacy workspace.\u003c/p\u003e\n"],["\u003cp\u003eDuring the process, users can test the connection to the source database and pull schema data, and in the built-in editor, can choose between saving the conversion workspace without immediate conversion or converting the schema and code during creation.\u003c/p\u003e\n"]]],[],null,["# Create a conversion workspace and convert schema\n\nThis page shows you how to create a conversion workspace and use\nit to immediately perform deterministic code and schema conversion from Oracle\nto PostgreSQL. Before you create the workspace, make sure that you\n[create a connection profile for your source database](/database-migration/docs/oracle-to-postgresql/create-source-connection-profile).\n\nWorkspaces with the built-in editor\n-----------------------------------\n\nWhen you create an interactive conversion workspace,\nyou can upgrade it to access\n[Gemini auto-conversion](/database-migration/docs/oracle-to-postgresql/code-conversion-with-gemini#auto-conversion).\nUpgrading the workspace is possible only once,\nimmediately after you open the newly created conversion workspace.\nThis operation is described as the last step in this procedure.\n\nTo create an interactive conversion workspace and perform the schema\nconversion, do the following:\n\n1. In the Google Cloud console, go to **Conversion workspaces** .\n\n [Go to Conversion workspaces](https://console.cloud.google.com/dbmigration/conversion-workspaces)\n2. Click **Set up workspace**.\n3. On the **Create a conversion workspace** page, do the following:\n 1. Enter the name, identifier, and region for your conversion workspace.\n 2. From the **Source database engine** drop-down menu, select **Oracle**.\n 3. From the **Destination database engine** select **Cloud SQL for PostgreSQL**.\n 4. Click **Create workspace and continue**.\n4. On the **Define source and pull schema snapshot** page, do the following:\n 1. From the **Source connection profile** drop-down menu, select the connection profile for your source database.\n 2. Click **Pull schema snapshot and continue**.\n\n Database Migration Service is now connecting to the source database and retrieving your schema.\n This process can take several minutes.\n5. On the **Select and convert objects** page, use the checkboxes to select which objects you want to convert to PostgreSQL syntax.\n\n You don't have to convert all your objects in one go. Instead, you can\n select just a few objects now and\n [add more objects to the conversion](/database-migration/docs/oracle-to-postgresql/work-with-conversion-workspaces#add-source-objects) later.\n6. Click **Convert and continue** .\n\n The conversion workspace opens.\n7. When you open a new workspace for the first time, you can upgrade it to access the Gemini-powered auto-conversion feature. Do the following:\n - In the **Introducing Gemini auto-conversion** dialog, select the **Upgrade workspace to explore the new experience** checkbox, and click **Continue**.\n - In the **Convert source objects with Gemini?** dialog, click **Convert** .\n\n Database Migration Service now performs the conversion process again to\n apply Gemini-powered conversion enhancements\n on top of the deterministic conversion results.\n For more information on Gemini auto-conversion\n feature, see\n [Gemini auto-conversion](/database-migration/docs/oracle-to-postgresql/code-conversion-with-gemini#auto-conversion).\n\nLegacy conversion workspaces\n----------------------------\n\nLegacy conversion workspaces are an older, more limited type of conversion\nworkspaces. We don't recommend using the legacy type of conversion\nworkspaces for your migrations. If you need to use a legacy conversion workspace,\nexpand the **Create a legacy conversion workspace and convert schema** section\nfor more information. \n\n#### Create a legacy conversion workspace and convert schema\n\nLegacy conversion workspaces use Ora2Pg configuration files.\nBefore you create a legacy conversion workspace, make sure you first\ncreate your Ora2Pg configuration outside Database Migration Service.\nFor more information, see\n[Work with legacy conversion workspaces](/database-migration/docs/oracle-to-postgresql/legacy-conversion-workspaces).\n\n1. In the Google Cloud console, go to **Conversion workspaces** .\n\n [Go to Conversion workspaces](https://console.cloud.google.com/dbmigration/conversion-workspaces)\n2. Click **Set up workspace**.\n3. On the **Create a conversion workspace** page, do the following:\n 1. Enter the name, identifier, and region for your conversion workspace.\n 2. From the **Source database engine** drop-down menu, select **Oracle**.\n 3. From the **Destination database engine** select **Cloud SQL for PostgreSQL**.\n 4. Expand the **Customize workspace configurations** section, and select the **Enable legacy conversion workspace** checkbox.\n 5. Click **Create workspace and continue**.\n4. On the **Connect to source and convert objects** page, do the following:\n 1. From the **Source connection profile** drop-down menu, select the connection profile for your source database.\n 2. In the **Configuration file** box, click **Browse** and use\n the system file picker to select your conversion mapping file.\n\n You can upload multiple conversion mapping files by clicking\n **Add file**.\n 3. In the **Convert the configuration** section, click\n **Pull schema and convert**.\n\n Database Migration Service is now connecting to the source database,\n retrieving your schema and converting it to the destination SQL schema\n according to the rules defined in your conversion mapping file.\n This process can take several minutes.\n5. Click **Save and close** .\n\n The conversion workspace details page opens.\n\nYou can now apply the converted schema to your destination\ndatabase. If your source database includes tables that don't have primary\nkeys, you also need to manually create primary key constraints in the\nconverted tables in the destination database after you apply the converted schema.\nFor more information, see\n[Work with legacy conversion workspaces](/database-migration/docs/oracle-to-postgresql/legacy-conversion-workspaces).\n\nWhat's next\n-----------\n\nYou can now work with your conversion workspace to fix conversion issues,\nmodify your objects with the interactive editor, and apply converted schema\nto your destination database. See\n[Convert Oracle code and schema to PostgreSQL syntax](/database-migration/docs/oracle-to-postgresql/convert-sql)."]]