Stay organized with collectionsSave and categorize content based on your preferences.
This page describes known limitations (including special considerations for
handling entities likeprimary keysorforeign keys and triggers), as well asrecommended practicesfor heterogeneous Oracle migrations with Database Migration Service.
What isn't migrated
Users and permissions aren't migrated.
Schema changes that occur during an active migration job aren't automatically
migrated. If you change your schema during the migration, you need to
first update the conversion workspace with schema changes, and then
refresh the relevant migration jobs. For more information, seeAdd updated schema or tables to the migration job.
SAVEPOINTstatementsaren't supported and can
cause data discrepancy in case of a rollback.
Database Migration Service replicates user-defined data types, but only
stores the base data type from which you derive your user-defined types.
For example, if you define aUSERNAMEdata type based on theVARCHAR2data type, the data is stored in the destination asVARCHAR.
Database, transactions and data consistency
The migration is eventually consistent, as Database Migration Service doesn't
replicate each transaction as it happens. The migration brings in data
from multiple tables. The order in which data is loaded into the
destination may vary, but re-aligns with the source after
writes on the source are stopped and the migration buffer is cleared.
For heterogeneous Oracle migrations, Database Migration Service can only migrate
one database per migration job.
Database Migration Service supports Oracle multi-tenant architecture (CDB/PDB),
but you can only migrate a single pluggable database per migration job.
Oracle Label Security (OLS) isn't replicated.
The destination database must have the same name as the username that's
used to connect to the database.
Any transactions that are rolled back in your source database during the
migration process might be visible in the destination temporarily
(when the transaction is long enough).
Database Migration Service doesn't support direct connectivity to databases using the
Single Client Access Name (SCAN) feature in Oracle Real Application Clusters
(RAC) environments. For potential solutions to using public IP allowlist connectivity
with such environments, seeTroubleshoot Oracle SCAN errors.
Data encoding
Database Migration Service supports onlyUTF8set encodings for the
destination database. Schema and table names that include characters which
aren't part of theUTF8encoding set are not supported.
Database Migration Service supports the following character set encodings for Oracle
databases:
AL16UTF16
AL32UTF8
IN8ISCII
IW8ISO8859P8
JA16SJIS
JA16SJISTILDE
KO16MSWIN949
US7ASCII
UTF8
WE8ISO8859P1
WE8ISO8859P9
WE8ISO8859P15
WE8MSWIN1252
ZHT16BIG5
Tables, schemas, and other objects
During a migration, data definition language (DDL) changes to data, schemas,
and metadata aren't supported. If you update your schema during the migration,
you need to pull the changes to your conversion workspace, convert the code,
clean your destination and run the migration job again.
Table column names that include characters other than alphanumeric
characters or an underscore (_) aren't supported.
Maximum name length for tables or columns is 30 characters.
Database Migration Service can't replicate tables that exceed this limit, or tables
that contain columns whose names exceed this limit.
Index-organized tables (IOTs) aren't supported.
Global temporary tables require thepgttPostgreSQL
extension installed and created on the destination.
For columns of typeBFILE, only the path to the file will be
replicated. The contents of the file won't be replicated.
For Oracle 11g, tables that have columns of data typesANYDATAorUDTaren't supported, and the entire table won't be replicated.
Materialized views definitions are migrated, but their materialized data
isn't. After you finish migrating, refresh your materialized views in order to
populate them with data from the migrated tables.
Sequence values are migrated, but their values in the source database
might keep advancing before the migration is completed. After complete
the migration, update the sequence values on the destination instance to
match those in the source database.
Migration jobs are limited to 10,000 tables.
Rows have a size limitation of 100 MB. Rows that exceed the 100 MB limit are
not migrated, and show up as errors in the migration job.
Any tables that are created after the migration has started aren't be migrated
automatically. First, you need to pull their schema in the conversion workspace,
apply converted definitions to the destination, and update the migration job.
Data type limitations
The following data types are unsupported for Oracle migrations:
ANYDATA(For Oracle 11g, tables withANYDATAare completely unsupported and not replicated.)
BFILE
INTERVAL DAY TO SECOND
INTERVAL YEAR TO MONTH
LONG/LONG RAW
SDO_GEOMETRY
UDT
UROWID
XMLTYPE
Zero datesinTIMESTAMP
Considerations for primary keys
Tables without primary keys don't promise consistent replication.
Database Migration Service migrates only tables that have primary keys.
If your source database includes tables that don't have primary keys,
Database Migration Service conversion workspaces automatically create any missing
primary keys in the destination tables when youconvert your source code and schema.
If you use legacy conversion workspaces, you need to manually create primary
key constraints in the converted tables in the destination database before
you start the migration. For more information, seeLegacy conversion workspaces.
Considerations for foreign keys and triggers
Foreign keys and triggers present in your source database might lead to
data integrity issues, or even cause the migration job to fail.
You can prevent these issues if you skip foreign keys and triggersby using theREPLICATIONoption for the migration user.
Alternatively, you can also drop all foreign keys and triggers in the destination
database and re-create them when the migration is complete.
Triggers
Data replicated by Database Migration Service already incorporates any changes made by
triggers on the source database. If triggers are enabled on the destination,
they can fire again and potentially manipulate data, resulting in data integrity
or duplication issues.
Foreign keys
Database Migration Service doesn't replicate data in a transactional
manner, so tables might be migrated out of order. If foreign keys are present,
and a child table that uses a foreign key is migrated before its parent, you might
encounter replication errors.
Recommendations
When youcreate your destination Cloud SQL database,
make sure that you use enough compute and memory resources to cover your
migration needs. We recommend a machine type with at least a dual-core CPU.
For example, if your machine name isdb-custom, and it has
2 CPUs and 3840 MB of RAM, then the format for the machine type name
isdb-custom-2-3840.
The destination Cloud SQL database is writable during the migration
to allow Data Manipulation Language (DML) changes to be applied if needed.
Take care not to make any changes to the database configuration or table
structures which might break the migration process or impact data integrity.
Quotas
Up to 2,000 connection profiles and 1,000 migration jobs can exist at any
given time. To create space for more, migration jobs (including completed ones)
and connection profiles can be deleted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eDatabase Migration Service has limitations on supported characters, including only allowing \u003ccode\u003eUTF8\u003c/code\u003e encoding for the destination database, and not supporting table column names with non-alphanumeric characters or anything other than an underscore.\u003c/p\u003e\n"],["\u003cp\u003eThe service restricts migration jobs to a maximum of 10,000 tables, and only supports single pluggable database migration for Oracle multi-tenant architecture.\u003c/p\u003e\n"],["\u003cp\u003eCertain Oracle features, such as Index-organized tables, Oracle Autonomous Database, \u003ccode\u003eBFILE\u003c/code\u003e types, and many other data types are not supported or will be replaced with NULL values, and scheduled jobs or schema changes won't be migrated either.\u003c/p\u003e\n"],["\u003cp\u003eUp to 2,000 connection profiles and 1,000 migration jobs can exist at any given time, but if more is needed then previously completed migration jobs and connection profiles can be deleted.\u003c/p\u003e\n"],["\u003cp\u003eDirect connectivity to databases using Oracle Real Application Clusters (RAC) Single Client Access Name (SCAN) is not supported by Database Migration Service, and there is also a 100 MB row size limitation.\u003c/p\u003e\n"]]],[],null,["# Known limitations and recommendations\n\nThis page describes known limitations (including special considerations for\nhandling entities like\n[primary keys](#primary-keys-considerations) or\n[foreign keys and triggers](#foreign-keys-triggers-considerations)), as well as\n[recommended practices](#) for heterogeneous Oracle migrations with Database Migration Service.\n\nWhat isn't migrated\n-------------------\n\n- Users and permissions aren't migrated.\n- Schema changes that occur during an active migration job aren't automatically migrated. If you change your schema during the migration, you need to first update the conversion workspace with schema changes, and then refresh the relevant migration jobs. For more information, see [Add updated schema or tables to the migration job](/database-migration/docs/oracle-to-alloydb/manage-migration-jobs#edit-non-draft-job).\n- [`SAVEPOINT` statements](https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/SAVEPOINT.html) aren't supported and can cause data discrepancy in case of a rollback.\n- Database Migration Service replicates user-defined data types, but only stores the base data type from which you derive your user-defined types. For example, if you define a `USERNAME` data type based on the `VARCHAR2` data type, the data is stored in the destination as `VARCHAR`.\n\nDatabase, transactions and data consistency\n-------------------------------------------\n\n- The migration is eventually consistent, as Database Migration Service doesn't replicate each transaction as it happens. The migration brings in data from multiple tables. The order in which data is loaded into the destination may vary, but re-aligns with the source after writes on the source are stopped and the migration buffer is cleared.\n- For heterogeneous Oracle migrations, Database Migration Service can only migrate one database per migration job.\n- Database Migration Service supports Oracle multi-tenant architecture (CDB/PDB), but you can only migrate a single pluggable database per migration job.\n- Oracle Label Security (OLS) isn't replicated.\n- The destination database must have the same name as the username that's used to connect to the database.\n- Any transactions that are rolled back in your source database during the migration process might be visible in the destination temporarily (when the transaction is long enough).\n- Database Migration Service doesn't support direct connectivity to databases using the Single Client Access Name (SCAN) feature in Oracle Real Application Clusters (RAC) environments. For potential solutions to using public IP allowlist connectivity with such environments, see [Troubleshoot Oracle SCAN errors](/database-migration/docs/oracle-to-alloydb/diagnose-issues#troubleshoot-scan).\n\nData encoding\n-------------\n\n- Database Migration Service supports only `UTF8` set encodings for the destination database. Schema and table names that include characters which aren't part of the `UTF8` encoding set are not supported.\n- Database Migration Service supports the following character set encodings for Oracle databases:\n - `AL16UTF16`\n - `AL32UTF8`\n - `IN8ISCII`\n - `IW8ISO8859P8`\n - `JA16SJIS`\n - `JA16SJISTILDE`\n - `KO16MSWIN949`\n - `US7ASCII`\n - `UTF8`\n - `WE8ISO8859P1`\n - `WE8ISO8859P9`\n - `WE8ISO8859P15`\n - `WE8MSWIN1252`\n - `ZHT16BIG5`\n\nTables, schemas, and other objects\n----------------------------------\n\n- During a migration, data definition language (DDL) changes to data, schemas, and metadata aren't supported. If you update your schema during the migration, you need to pull the changes to your conversion workspace, convert the code, clean your destination and run the migration job again.\n- Table column names that include characters other than alphanumeric characters or an underscore (`_`) aren't supported.\n- Maximum name length for tables or columns is 30 characters. Database Migration Service can't replicate tables that exceed this limit, or tables that contain columns whose names exceed this limit.\n- Index-organized tables (IOTs) aren't supported.\n- Global temporary tables require the `pgtt` PostgreSQL extension installed and created on the destination.\n- For columns of type `BFILE`, only the path to the file will be replicated. The contents of the file won't be replicated.\n- For Oracle 11g, tables that have columns of data types `ANYDATA` or `UDT` aren't supported, and the entire table won't be replicated.\n- Jobs that are scheduled by using [`dbms_job`](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_JOB.html) or [`dbms_scheduler`](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_SCHEDULER.html) aren't migrated.\n- Materialized views definitions are migrated, but their materialized data isn't. After you finish migrating, refresh your materialized views in order to populate them with data from the migrated tables.\n- Sequence values are migrated, but their values in the source database might keep advancing before the migration is completed. After complete the migration, update the sequence values on the destination instance to match those in the source database.\n- Migration jobs are limited to 10,000 tables.\n- Rows have a size limitation of 100 MB. Rows that exceed the 100 MB limit are not migrated, and show up as errors in the migration job.\n- Any tables that are created after the migration has started aren't be migrated automatically. First, you need to pull their schema in the conversion workspace, apply converted definitions to the destination, and update the migration job.\n\n### Data type limitations\n\nThe following data types are unsupported for Oracle migrations:\n\n- `ANYDATA` (For Oracle 11g, tables with `ANYDATA` are completely unsupported and not replicated.)\n- `BFILE`\n- `INTERVAL DAY TO SECOND`\n- `INTERVAL YEAR TO MONTH`\n- `LONG/LONG RAW`\n- `SDO_GEOMETRY`\n- `UDT`\n- `UROWID`\n- `XMLTYPE`\n- **Zero dates** in `TIMESTAMP`\n\n### Considerations for primary keys\n\nTables without primary keys don't promise consistent replication.\nDatabase Migration Service migrates only tables that have primary keys.\nIf your source database includes tables that don't have primary keys,\nDatabase Migration Service conversion workspaces automatically create any missing\nprimary keys in the destination tables when you\n[convert your source code and schema](/database-migration/docs/oracle-to-alloydb/convert-sql).\n\nIf you use legacy conversion workspaces, you need to manually create primary\nkey constraints in the converted tables in the destination database before\nyou start the migration. For more information, see\n[Legacy conversion workspaces](/database-migration/docs/oracle-to-alloydb/legacy-conversion-workspaces).\n\n### Considerations for foreign keys and triggers\n\nForeign keys and triggers present in your source database might lead to\ndata integrity issues, or even cause the migration job to fail.\nYou can prevent these issues if you skip foreign keys and triggers\n[by using the `REPLICATION` option for the migration user](/database-migration/docs/oracle-to-alloydb/configure-your-destination-postgresql-database).\nAlternatively, you can also drop all foreign keys and triggers in the destination\ndatabase and re-create them when the migration is complete.\n\n#### Triggers\n\nData replicated by Database Migration Service already incorporates any changes made by\ntriggers on the source database. If triggers are enabled on the destination,\nthey can fire again and potentially manipulate data, resulting in data integrity\nor duplication issues.\n\n#### Foreign keys\n\nDatabase Migration Service doesn't replicate data in a transactional\nmanner, so tables might be migrated out of order. If foreign keys are present,\nand a child table that uses a foreign key is migrated before its parent, you might\nencounter replication errors.\n\nRecommendations\n---------------\n\n- When you [create your destination Cloud SQL database](/database-migration/docs/oracle-to-alloydb/configure-your-destination-postgresql-database), make sure that you use enough compute and memory resources to cover your migration needs. We recommend a machine type with at least a dual-core CPU.\n\n For example, if your machine name is `db-custom`, and it has\n 2 CPUs and 3840 MB of RAM, then the format for the machine type name\n is `db-custom-2-3840`.\n- The destination Cloud SQL database is writable during the migration to allow Data Manipulation Language (DML) changes to be applied if needed. Take care not to make any changes to the database configuration or table structures which might break the migration process or impact data integrity.\n\nQuotas\n------\n\n- Up to 2,000 connection profiles and 1,000 migration jobs can exist at any given time. To create space for more, migration jobs (including completed ones) and connection profiles can be deleted."]]