After you create your conversion workspace and perform the initial schema conversion, you can fix conversion issues, modify your objects with the interactive editor, and apply converted schema to your destination database.
Databases can often have thousands of objects. Converting them all in a single session might be a challenging process. With conversion workspaces, you can divide the conversion process into multiple phases where you add new objects to the conversion, fix the issues, and then test them in your destination database.
To convert objects from your source database, do the following:
- In the Google Cloud console, go to Conversion workspaces.
- From the list of available conversion workspaces, select your workspace.
Conversion workspace editor opens.
- Use the Oracle schema panel to check your source objects for conversion issues. This panel contains all the objects you pulled from your schema during workspace creation.
-
Fix your conversion issues.
You can use the interactive SQL editor, upload a conversion mapping file to convert the object in a specific way, or utilize Gemini-assisted conversion features.
- Optional: You can also use the interactive SQL editor to adjust the converted schema to better meet your needs, even if there are no conversion issues with your object. For a list of editable Oracle objects, see Supported object types.
- After you fix conversion issues or adjust your schema, click
You can inspect the converted schema in the Cloud SQL for PostgreSQL draft tab.
Convert source.
Database Migration Service now analyzes your changes and
generates the updated PostgreSQL schema.
- Test the converted schema in your destination database. Do the following:
- Click > Test. Apply to destination
- On the Define destination page, use the Destination connection profile drop-down menu to select your destination connection profile.
- Click Define and continue.
- On the Select objects and test application page, use the checkboxes to select which converted PostgreSQL schema you want to apply in your destination database.
- Click Test application.
Depending on the test results, you might need to further adjust your converted schema.
- If the schema snapshot you pulled from the source has more objects
that you haven't migrated yet, add these objects to the workspace:
- In the Oracle panel, click
The object selection panel opens.
Add objects.
- In the schema tree, use the checkboxes to select which objects you want to add to the conversion and then click Add objects.
- In the Oracle panel, click
- Repeat steps 3 through 8 until you convert all the objects that you want to migrate.
- When you finish converting your schema, click
> Apply.
Database Migration Service now creates the schema definitions in your destination database.
Apply to destination
What's next
- Your conversion workspace is now ready for migration. You can now create the migration job.