We've detected that your browser language is Chinese. Would you like to visit our Chinese website? [ Dismiss ]
By: Dylan

What is Oracle Database Migration and Why Need It?

Oracle database migration is the process of moving data, schemas, applications, and configurations from one Oracle database environment to another. 

Organizations migrate Oracle databases for several reasons, including improving performance, reducing infrastructure costs, modernizing IT environments, and meeting changing business requirements.

how to oracle database migration

Common Oracle database migration scenarios include:

  • Database version upgrades
  • On-premises to cloud migration
  • Server and infrastructure migration
  • Database consolidation
  • Heterogeneous database migration

Logical Migration vs. Physical Migration

There are two ways of database migration

  • Logical Migration: transfers database objects and data rather than copying the entire physical database structure.
  • Physical Migration: transfers database files or physical database copies. It can be efficient for moving large databases when the source and target environments meet the required compatibility conditions.

Offline Migration vs. Online Migration

Another key decision is whether to migrate offline or online.

  • Offline migration requires a planned period when the source database is unavailable for application writes, or when application access is otherwise restricted. It is often easier to manage and validate.
  • Online migration keeps the source database available for most of the migration process. An initial data transfer is followed by ongoing change synchronization. Once the target is synchronized and validated, applications can be switched to the new environment.

A successful Oracle database migration requires more than moving data. It must also preserve data consistency, maintain application functionality, and minimize downtime.

In the following section, we will introduce several ways to migrate Oracle database to another and help you choose the best one for your business requirements.

Common Oracle Database Migration Methods

Choosing the right Oracle database migration method depends on several factors, including database size, source and target environments, and the amount of downtime your business can tolerate.

The following table summarizes widely used methods and the situations in which they may be appropriate.

Migration Method

Migration type

Best suited for

Oracle Data Pump

Logical

Cross‑platform, version upgrade, partial/schema‑only migration, consolidation

RMAN Backup and Restore / DUPLICATE

Physical block-level

Same‑platform cloning, refresh test/dev, disaster recovery

Transportable Tablespaces (TTS)

Physical-metadata hybrid

VLDB, large historical datasets

Oracle GoldenGate

Real-time CDC replication

Mission‑critical zero‑near‑zero‑downtime migrations, bidirectional sync

OCI Database Migration

 

Physical and logical migration

On‑prem to OCI cloud migration; large database environment.

i2Migration

Physical and logical migration

Oracle-to-Oracle migration and Heterogeneous migration; No downtime and transactional consistency required

How to Migrate Oracle Database Step by Step

In this section, we will guide you on to migrate your Oracle DBs with different methods mentioned above.

No matter what method you choose, please prepare:

  1. Please define downtime if you choose an offline migration method.
  2. Backup your database so you can roll back your oracle environment if anything goes wrong.

Method 1. Oracle Data Pump

Oracle Data Pump uses expdp (export) and impdp (import) command-line utilities for logical migration. It extracts database metadata and table data into dump files, then loads these dump files to the target Oracle database.

Prerequisites:✎…
The export user on the source database holds the DATAPUMP_EXP_FULL_DATABASE role. The import user on the target holds the DATAPUMP_IMP_FULL_DATABASE roleOracle.
Create or reuse an Oracle DIRECTORY object on both source and target. Grant read and write access on this directory to the Data Pump user. 
Verify source and target character set compatibility. 
Confirm enough free disk space for dump file storage.

Step 1. Prepare Oracle directory for dump file

Create an Oracle directory object to map to a physical file path.

sql
CREATE DIRECTORY dpump_dir AS '/u01/oracle/dump';
>GRANT READ, WRITE ON DIRECTORY dpump_dir TO dpump_user;

Step 2. Run expdp export on source

Run the export job. Use FLASHBACK_TIME=SYSTIMESTAMP to get a consistent snapshot of all data from one single point in time. Use PARALLEL to speed up export for large databases.

Full database export example:

plaintext
expdp dpump_user/password DIRECTORY=dpump_dir DUMPFILE=full_export%u.dmp LOGFILE=export.log FULL=Y FLASHBACK_TIME=SYSTIMESTAMP PARALLEL=4 EXCLUDE=STATISTICS

Note: 

  1. EXCLUDE=STATISTICS skips table/index statistics. Oracle recommends recalculating statistics after import for better performance.
  2. You can also run schema-level export by replacing FULL=Y with SCHEMAS=schema1,schema2

Monitor the export log until the job completes without fatal errors.

Step 3. Transfer dump files to target server

If the source and target databases are on different servers, transfer the Data Pump dump file set to a directory accessible to the target database server.

Use an approved transfer method, such as secure file transfer or a controlled storage location. If the export produces multiple dump files, transfer the complete set.

After the transfer, verify that all required files are present and accessible. For critical migrations, compare file sizes or checksums to detect incomplete or corrupted transfers.

The target database’s directory object must point to the directory containing the transferred dump files, and the importing user must have the required read access to that directory.

Step 4. Prepare target database

Install and patch the target Oracle home to the required version. Create the target database and tablespaces. Add the matching Oracle directory object on the target and grant directory permissions to the import user.

Step 5. Run impdp import on target

Run impdp to load metadata and data. Use REMAP_SCHEMA or REMAP_TABLESPACE when source and target schema or tablespace names differ.

Import command for example:

plaintext
impdp dpump_user/password DIRECTORY=dpump_dir DUMPFILE=full_export%u.dmp LOGFILE=import.log FULL=Y REMAP_SCHEMA=old_user:new_user REMAP_TABLESPACE=src_ts:tgt_ts PARALLEL=4

Review the import log.

Step 6. Validate the migration

  • Compare row counts between source and target tables.
  • Recompile invalid PL/SQL objects.
  • Gather fresh database statistics on the target.
  • Run functional tests and UAT to confirm applications work.
  • After successful validation, delete dump files to free storage.

Notes for Data Pump Migration:

  • Data Pump exports a static snapshot. Any new data written to the source after export will not move automatically. For near-zero downtime, you need extra steps to capture incremental changes.
  • PARALLEL value should match available CPU and I/O capacity; too high parallelism may overload the database host.
  • For cross-version migration, add the VERSION parameter if the target Oracle release is older than the source.

Method 2. RMAN

Oracle Recovery Manager (RMAN) is an Oracle utility for backing up, restoring, and recovering databases. It can support database migration to a new server or compatible infrastructure through backup-and-restore workflows or the DUPLICATE command.

Prerequisites:

  • Source database runs in ARCHIVELOG mode. Archived redo logs are required for point‑in‑time recovery.
  • Source and target operating systems must use the same endian format. Cross‑endian migration requires extra conversion steps.

Step 1. Check database on source database

Check database size, tablespaces, invalid objects and custom dependencies.

Take a full RMAN backup of source database plus control file and spfile. Enable control file autobackup.

plaintext
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;

Document DBID, character set and initialization parameters. Keep this information for the target build.

Step 2. Prepare the auxiliary instance on target host

1. Create required filesystem or ASM directories for database files.

2. Build a minimal pfile/spfile for the auxiliary instance. Set DB_NAME and memory parameters.

3. Create Oracle password file for the auxiliary instance.

4. Start the auxiliary instance in NOMOUNT mode.

sql
STARTUP NOMOUNT;

5. Verify TNSPING works from target to source and source to target listener.

Step 3. Run active databse duplicate from RMAN

Connect RMAN to source as TARGET and to auxiliary instance as AUXILIARY.

The FROM ACTIVE DATABASE option copies files directly over the network without intermediate backup files.

plaintext
RMAN> CONNECT TARGET sys@source_db
RMAN> CONNECT AUXILIARY sys@aux_db

RMAN> DUPLICATE TARGET DATABASE TO dupdb
FROM ACTIVE DATABASE
DB_FILE_NAME_CONVERT=('/u01/oradata/src','/u01/oradata/tgt')
LOGFILE
GROUP 1 ('/u01/oradata/tgt/redo01.log') SIZE 1G,
GROUP 2 ('/u01/oradata/tgt/redo02.log') SIZE 1G
NOFILENAMECHECK;

Step 4. Open the duplicated database with RESETLOGS

RMAN automatically creates a new database with a fresh DBID. After duplication completes, open the database:

sql
ALTER DATABASE OPEN RESETLOGS;

Step 5. Configuration and validation after migration

1. Update instance parameters: control files, undo tablespace, temp files, flash recovery area.

2. Recompile invalid objects.

3. Check tablespace status, datafile availability and redo log groups.

4. Compare table row counts and validate application connections.

5. Test backup jobs on the new target database.

6. Update listener registration for the new database service.

Method 3. Transportable Tablespaces (TTS)

Transportable Tablespaces (TTS) moves tablespaces by copying physical data files directly and importing only metadata via Oracle Data Pump. It is far faster than full Data Pump export/import for large datasets, because it avoids row-by-row data unloading and reloading. TTS is ideal for VLDB migrations, historical data transfers, and storage-level moves.

Prerequisites:

  • Oracle Database Enterprise Edition is required, especially for cross-platform transport.
  • The COMPATIBLE initialization parameter must be set to 10.0.0 or higher on both source and target. The target COMPATIBLE value cannot be lower than the source.
  • The set of tablespaces must be self-contained: no object inside the set may reference objects outside the set (such as indexes, partitions, referential constraints, or LOB columns stored elsewhere).
  • Source and target database character sets must be compatible.
  • For cross-platform migration: verify platform support and endian format via V$TRANSPORTABLE_PLATFORM. If endian formats differ, you must run RMAN CONVERT on data files before import.
  • SYSTEM and SYSAUX tablespaces cannot be transported as standalone user tablespaces.
  • The export user requires DATAPUMP_EXP_FULL_DATABASE privilege; the import user requires DATAPUMP_IMP_FULL_DATABASE privilege.
  • Create an Oracle DIRECTORY object on both source and target for the metadata dump file.

Step 1. Verify table space

Run the DBMS_TTS.TRANSPORT_SET_CHECK procedure on the source database to confirm that your tablespace set has no external dependencies.

sql
EXEC DBMS_TTS.TRANSPORT_SET_CHECK('BIG_DATA, INDEX_BIG_DATA', TRUE);

Query the violation view to check for issues. Resolve all violations before proceeding.

bash
SELECT * FROM TRANSPORT_SET_VIOLATIONS;

Step 2. Pleace tables in READ ONLY mode

Set all tablespaces in the transport set to read-only on the source database. This ensures a consistent point-in-time copy.

sql
ALTER TABLESPACE big_data READ ONLY;
ALTER TABLESPACE index_big_data READ ONLY;

Step 3. Export tablespace metadata with Data Pump

Use expdp with the TRANSPORT_TABLESPACES parameter to export only the metadata (structure information) for the tablespace set. No table data is written to the dump file.

plaintext
expdp system/password \
DIRECTORY=dpump_dir \
  DUMPFILE=tts_meta.dmp \
  LOGFILE=tts_export.log \
  TRANSPORT_TABLESPACES=big_data,index_big_data

Monitor the export log and confirm it completes without errors.

Step 4. Copy datafiles and metadata dump to the target

1. Copy the metadata dump file to the target server.

2. Copy all physical data files (.dbf) for the transport tablespaces from the source host to the target host.

3. For cross-platform / cross-endian migration only: run RMAN CONVERT on the data files to match the target platform endian format before import.

Step 5. Import tablespace metadata on the target

On the target database, run impdp with TRANSPORT_DATAFILES to plug the copied data files into the target database and import the metadata.

plaintext
impdp system/password \
  DIRECTORY=dpump_dir \
  DUMPFILE=tts_meta.dmp \
  LOGFILE=tts_import.log \
TRANSPORT_DATAFILES='/u02/oradata/target/big_data01.dbf','/u02/oradata/target/index_big_data01.dbf' \
 REMAP_SCHEMA=source_user:target_user

Use REMAP_SCHEMA and REMAP_TABLESPACE if schema or file path names differ between source and target.

Step 6. Restore tablespace to READ WRITE mode

1. On the target database, set the imported tablespaces to read-write:

sql
ALTER TABLESPACE big_data READ WRITE;
ALTER TABLESPACE index_big_data READ WRITE;

2. Optionally, restore the source tablespaces to read-write if they will remain in use.

Step 7. Validate the migration

1. Recompile any invalid PL/SQL objects.

2. Compare row counts and run sample queries to confirm data integrity.

3. Gather fresh statistics on imported tables and indexes.

4. Run application functional checks.

Method 4. Oracle GoldenGate

Oracle GoldenGate provides real-time change data capture (CDC) and replication for near-zero downtime Oracle database migration.

Prerequisites:

  • Both source and target Oracle databases run in ARCHIVELOG mode.
  • Oracle GoldenGate is installed on both source and target servers, with a version compatible with both database releases.
  • All replicated tables have a primary key or unique constraint; substitute keys must be defined for tables without unique identifiers.
  • The source database user has SELECT ANY TABLE, ALTER ANY TABLE, and archive log access privileges.
  • The target database user has DML and DDL privileges on the target schemas.
  • TCP network connectivity is open between source and target on the GoldenGate Manager port (default 7809).
  • Sufficient disk space is allocated for GoldenGate trail files on both hosts.

Step 1. Prepare source and target environemnt

Verify database version compatibility, character set compatibility, and network connectivity. Create dedicated GoldenGate database users on both source and target and grant required privileges. Create the GoldenGate installation directory and required subdirectories on both servers.

Step 2. Install GoldenGate and start Manager process

Install Oracle GoldenGate software on both source and target nodes.

Configure the Manager parameter file (mgr.prm) on each node and set the listening port.

Start the Manager process on both source and target.

plaintext
GGSCI> START MGR

Step 3. Enable supplemental logging on the source

Enable databse-level supplemental logging to support row-level replication

sql
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;

Add table-level supplemental logging for all tables to be migrated:

bash
GGSCI> DBLOGIN USERID gg_source@source_db PASSWORD password
GGSCI> ADD TRANDATA schema_name.*

This ensures GoldenGate can identify each row for accurate change applciation.

Step 4. Configure and start source capture and pump

Create and configure the primary Extract parameter file to capture changes from source redo logs and write to local trail files.

Register the Extract with the source database:

plaintext
GGSCI> REGISTER EXTRACT ext1 DATABASE

Create a secondary Extract (pump process) to read local trails and deliver them to the target server over the network. Start both the primary Extract and the pump process.

plaintext
GGSCI> START EXTRACT ext1
GGSCI> START EXTRACT pump1

All source transactions are captured continously while the datbase remains online.

Step 5. Perofrm initial data load

Choose one initial load method based on database size:

  • GoldenGate initial load: Use a dedicated initial-load Extract and Replicat pair to bulk-load data directly. Best for smaller datasets.
  • Data Pump initial load: Use Oracle Data Pump for full database or schema export/import. Record the end SCN of the export. This is the recommended faster option for very large databases.

The target database is loaded with a consistent baseline while new source changes continue to be captured in the background.

Step 6. Configure and start target replicat

Create the Replicat parameter file on the target to read incoming trail files and apply transactions to the target database.

Start Replicat from the point immediately after the initial load (using the recorded SCN or trail position).

plaintext
GGSCI> START REPLICAT rep1, AFTERCSN <scn_number>

Step 7. Monitor lag and validate data consistency

Monitor replication lag regularly using INFO EXTRACT and INFO REPLICAT commands.

When apply lag drops to near zero, perform data validation: compare row counts, checksums, and sample data between source and target.

Run business logic tests to confirm application behavior matches on both databases.

Step 8. Execute final cutover

Schedule a short maintenance window for cutover:

1. Stop all application writes to the source database.

2. Wait for Replicat to apply all remaining transactions until lag reaches zero.

3. Confirm final data consistency between source and target.

4. Switch application connection strings to the target database.

5. Restart applications on the target.

Method 5. OCI Data Migration

OCI Database Migration is a managed, cloud-native Oracle Cloud Infrastructure service designed to move Oracle to OCI (Oracle Cloud Infrastructure) or partner environments. It supports both offline (Data Pump-based) and online (GoldenGate-powered) migration paths

Note: For smaller databases, you can use Oracle Data Pump or GoldenGate directly, depending on your requirements. OCI Database Migration is a better fit for larger, more complex migrations where automation, centralized management, and reduced manual effort are priorities.

Step 1. Create Connection

  • Click menu at the top left of the interface. 
  • Choose “Migration & Disaster Recovery” > “Database Connection”.
  • Click “Create Connection” > Select the connection type and the vault. Fill in the Connection details
  • Choose “Network connectivity”

OCI migrate oracle create connection

Step 2. Test the Connection

Choose “Actions” at the top right corner >”Test Connection” to validate users credentials and connectivity.

Step 3. Create the connection to the target database

  • Back to the Migration & Disaster recovery interface, click “Create connection”.
  • Provide a name, select the database type, and choose a Vault and Key.
  • In the Connection Details, choose the target database and provide the migration credentials.
  • Choose a network connectivity. and click “Create”.

Step 4. Create an Assessment

  • Go back to the Migration & Disaster Recovery interface. Click “Assessments” on the left pane.
  • Click “Create assessment”. Provide a name, and choose “oracle” as the database type.
  • Choose the source and target database.
  • Fill in the migration options according to your needs, such as network speed, acceptable downtime and more.

OCI migrate oracle create assessment

Step 5. Choose a migration way

  • In the Assessment windows, click “Steps”.
  • In the first step: 1. Determine the recommended migration method, click “Confirm”.
  • Choose from “Proceed with offline migration”, “Select online migration”, “Select online migration with Snapshot Stanby database”.
  • In the 2. Analyze compatibility, click “Run”. Solve it if there is any issue.
  • Click “Configuration” to prepare the source and target database.
  • Follow the All Steps prompt to complete assessment.

OCI migrate oracle complete assessment

Step 6. Start Migration: Click the “Create migration” button.

oci start migration

Wait for the process to be completed. You will see the migration is marked as “Succeeded”.

Method 6. Info2soft’s i2Migration

 i2Migration is an enterprise data migration platform from Info2soft that supports database migration across Oracles database and other databases. It uses real-time synchronization to help maintain source-to-target consistency before cutover.

i2Migration also supports server and storage migration, which can be useful when database migration is part of a broader data center modernization or cloud migration project. Its supported database versions, source-target combinations, and deployment requirements should be verified against the specific migration scenario.

Key features of i2Migrate 

  • End-to-End Automation: Covers the full migration lifecycle: discovery, schema conversion, data transfer, synchronization, validation, and go-live.
  • Deep Oracle Compatibility: Handles complex Oracle structures, large data volumes, stored procedures, and dependencies across diverse environments.
  • Hybrid and Multi-Cloud Flexibility: Seamlessly supports migrations from Oracle on-premises to Oracle Cloud, AWS, Azure, or hybrid infrastructures.
  • Zero-Downtime Execution: Orchestrates step-by-step cutovers with continuous synchronization to keep systems online during migration.
  • Advanced Validation and Monitoring: Built-in data verification, performance monitoring, and reporting dashboards ensure full visibility and integrity.

Conclusion

A successful Oracle database migration depends on choosing the right method, validating data integrity, and minimizing downtime. Compare tools such as Data Pump, RMAN, Transportable Tablespaces, GoldenGate, based on your database environment and migration requirements. Always test the process and prepare a rollback plan before cutover.

For organizations migrating across database platforms or managing complex data synchronization requirements, Info2Soft i2Migration is another option to evaluate. Review its capabilities and compatibility with your environment to determine whether it fits your migration project.

Dylan has 8+ years of experience in enterprise data management, server optimization, and disaster recovery. He specializes in translating complex technical concepts into actionable guides for IT administrators and DevOps teams, with a focus on data security, cloud migration, and business continuity.

More Related Articles

Ready to Enhance Business Data Security?

· Enterprise & Mid-market Customers Worldwide.

· Support team available to assist you throughout your trial.

· Start a 60-day free trial or view demo to see how Info2soft protects enterprise data.

Please fill out the form and submit it, our customer service representative will contact you soon.
By submitting this form, I confirm that I have read and agree to the Privacy Notice.
{{ isSubmitting ? 'Submitting...' : 'Submit' }}