My Oracle Support Banner

How to match the last_number of sequences when migrating data between old and new environments (Doc ID 3079903.1)

Last updated on APRIL 03, 2025

Applies to:

Oracle Database - Enterprise Edition - Version 19.3.0.0.0 and later
Oracle Cloud Infrastructure - Exadata Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Gen 2 Exadata Cloud at Customer - Version N/A and later
Information in this document applies to any platform.

Goal

If you migrate data using impdp with content=data_only, and the object definitions have already been migrated into the new environment,,

ORA-1 may occur if the sequence exists in the new environment and insert data again after migration.

Therefore, the LAST_NUMBER of the sequence in the old environment and the new environment must match before migration.

Example:

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.