Legacy conversion workspaces are an older, more limited type of conversion workspaces. Legacy conversion workspaces don't support Gemini-enhanced conversion features or the interactive SQL editor. You can only use them to convert your source schema with the Ora2Pg migration tool.
We don't recommend using the legacy type of conversion workspaces for your migrations as they present multiple other limitations to the conversion workflow:
| Interactive conversion workspace | Legacy conversion workspace |
|---|---|
| Schema and code object conversion happens in Database Migration Service. | You perform schema and code object conversions outside Database Migration Service by using the Ora2Pg migration tool. |
| You can apply converted sources to the destination database directly in Database Migration Service. | You are responsible for applying the converted schema to the destination database in your Cloud SQL for PostgreSQL destination instance. |
| You can test your draft schema and code directly in Database Migration Service to ensure they can be successfully applied to your destination instance. | You can't test your draft schema and code without affecting the destination instance. |
Automatically adds missing rowid columns for tables that
don't have primary keys and unique constraints. |
You must add missing primary keys to destination tables after you apply the schema. |
Use legacy conversion workspaces
If your scenario requires the use of legacy conversion workspaces, modify the migration process with the following actions:
Write an Ora2Pg configuration file.
Refer to the Ora2Pg documentation for guidance on how to use the Ora2Pg conversion tool. Expand the following sections for the full list of directives supported in Database Migration Service.
Ora2Pg configuration supported in Database Migration Service
Database Migration Service supports the following configuration items for Ora2Pg files:
BOOLEAN_VALUESDATA_TYPEDEFAULT_NUMERICENABLE_MICROSECONDEXPORT_SCHEMAMODIFY_STRUCTMODIFY_TYPEPG_INTEGER_TYPEPG_NUMERIC_TYPEPG_SCHEMAPRESERVE_CASEREPLACE_AS_BOOLEANREPLACE_COLSREPLACE_TABLESREPLACE_ZERO_DATESCHEMA
Database Migration Service uses connection profiles to define connectivity details, so you don't need to define the following information in your Or2Pg configuration file:
ORACLE_DSNORACLE_HOMEORACLE_PWDORACLE_USERPG_DSNPG_PWDPG_USER
Additionally, Database Migration Service doesn't use the
WHEREconfiguration directive to limit the records to migrate.- Create a legacy conversion workspace, and upload the Ora2Pg file to convert your schema.
Manually apply converted schema to the destination database.
After you create the Ora2Pg configuration and create the workspace, you must apply the generated code by yourself directly on the destination database.
Migrate tables without primary keys.
Database Migration Service migrates only tables that have primary keys. If your source database includes tables that don't have primary keys, you need to manually create primary keys or unique constraints in the converted tables in the destination database after you apply the converted schema. For more information and detailed steps, see Add primary key constraints in the destination database.
What's next
After you perform the conversion workflow with the legacy workspace, you can proceed with the standard migration procedures. See Create a migration job.