Key considerations for migrating an Oracle database to a PolarDB cluster
Updated at:
Copy as MD
Review these considerations before migrating an Oracle database to a PolarDB for PostgreSQL (Compatible with Oracle) cluster. Addressing them early prevents data errors and migration interruptions.
Quick reference
| Consideration | Risk | Action required |
|---|---|---|
| Sequence value synchronization | Duplicate key errors after cutover | Use DTS sync or manually reset sequence values before cutover |
| Encoding settings | Encoding conflicts, rejected writes | Use UTF-8 for the PolarDB cluster |
| Case sensitivity of table names | Query failures after migration | DTS handles automatically — verify quoted names |
| CHAR/VARCHAR length semantics | Data truncation in forward or reverse sync | Configure polar_default_char_length_semantics to match your use case |
| Tables without a primary key or unique key | Duplicate entries in destination | Use Oracle ROWID as hidden primary key if consistency is required |
\0 characters |
Data discrepancies and key conflicts | Audit and clean \0 characters before migration |
| Empty strings | Unexpected NULL behavior in application code | Review application logic for = '' comparisons |
| Time zone settings | Timestamp offset in queries | Set timezone parameter to match your region |
| INTEGER data type precision | integer out of range errors |
Replace CAST(val AS INTEGER) with CAST(val AS NUMBER(38)) |
Sequence value synchronization
Encoding settings
Case sensitivity of table names
CHAR and VARCHAR data length semantics
Tables without a primary key or unique key
\0characters
Empty strings
Time zone settings
INTEGER data type precision
Is this page helpful?