Info2soft use cookies to help you have a superior and more admissible browsing experience on our website. Privacy Policy
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.
Common Oracle database migration scenarios include:
There are two ways of database migration
Another key decision is whether to migrate offline or online.
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.
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 |
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 |
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:
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.
Step 1. Prepare Oracle directory for dump file
Create an Oracle directory object to map to a physical file path.
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:
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:
EXCLUDE=STATISTICS skips table/index statistics. Oracle recommends recalculating statistics after import for better performance.FULL=Y with SCHEMAS=schema1,schema2Monitor 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:
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
Notes for Data Pump Migration:
PARALLEL value should match available CPU and I/O capacity; too high parallelism may overload the database host.VERSION parameter if the target Oracle release is older than the source.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:
ARCHIVELOG mode. Archived redo logs are required for point‑in‑time recovery.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.
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.
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.
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:
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.
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:
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.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.DATAPUMP_EXP_FULL_DATABASE privilege; the import user requires DATAPUMP_IMP_FULL_DATABASE privilege.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.
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.
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.
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.
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.
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:
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.
Oracle GoldenGate provides real-time change data capture (CDC) and replication for near-zero downtime Oracle database migration.
Prerequisites:
ARCHIVELOG mode.SELECT ANY TABLE, ALTER ANY TABLE, and archive log access privileges.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.
GGSCI> START MGR
Step 3. Enable supplemental logging on the source
Enable databse-level supplemental logging to support row-level replication
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
Add table-level supplemental logging for all tables to be migrated:
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:
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.
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:
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).
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.
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
Step 1. 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
Step 4. Create an Assessment
Step 5. Choose a migration way
Step 6. Start Migration: Click the “Create migration” button.
Wait for the process to be completed. You will see the migration is marked as “Succeeded”.
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
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.
· 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.