Cross-Platform Transportable Tablespaces to the Cloud, Including the Endian Change
Updated: Oct 24
Moving an Oracle database from AIX or SPARC Solaris to the cloud is the hard case. The platform changes from big-endian to little-endian, so the data files cannot simply be copied: Data Guard, RMAN DUPLICATE and plain file copies all fail. A Data Pump export and import works on any platform, but for a large database it can take a whole day of downtime.
Cross-platform transportable tablespaces with incremental backups (XTTS) solve this. The data files are copied and converted while the source stays open, RMAN incremental backups keep the copies up to date, and the final outage only has to carry the last few hours of change plus the metadata. The window is measured in minutes or a couple of hours, no matter how large the database is.
The Use Case
A 12 TB Oracle Database 19c on AIX moves to an Exadata Database Service or Base Database system on Linux in OCI. The business accepts about an hour of downtime, not the day that a Data Pump export and import of 12 TB would take. The source stays read-only as the fallback until the business signs off.
Environment used in this runbook
Source: Oracle Database 19c (19.21), non-CDB PROD, on AIX 7.2 (big-endian)
Target: Oracle Database 19c (19.22), PDB PRODPDB on Oracle Linux 8 in OCI (little-endian)
Size: 12 TB in three application tablespaces, APP_DATA, APP_IDX and APP_LOB
Network: FastConnect, 10 Gbit/s between the data centre and OCI
Staging: a 14 TB NFS share mounted on both hosts as /xtts
How the Method Works
Data files travel as files. The application tablespaces are backed up with RMAN, the backups are converted to the target endian format as they are restored, and the converted files become the target data files.
Incremental backups roll the copy forward. While the source stays open, RMAN level 1 backups capture what changed since the last pass, and they are applied to the converted copies.
Everything else travels as metadata. Users, grants, sequences, views, PL/SQL, synonyms and object definitions are moved by Data Pump at the end.
Oracle ships the procedure as a Perl driver, xttdriver.pl, version 4. It is documented in My Oracle Support note 2471245.1 ("V4 Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup"). Always download the latest version of the scripts from that note.
Step 1: Confirm the Platforms and Endian Formats
V$TRANSPORTABLE_PLATFORM lists every platform Oracle can transport between and its byte order. Check the source and target platform IDs: you need the source ID in the configuration file.
SQL |
sqlplus / as sysdba
SELECT d.platform_id, d.platform_name, tp.endian_format FROM v$database d JOIN v$transportable_platform tp ON tp.platform_id = d.platform_id;
SELECT platform_id, platform_name, endian_format FROM v$transportable_platform WHERE platform_id IN (6, 13); |
Expected output |
PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT
----------- -------------------------------- --------------
6 AIX-Based Systems (64-bit) Big
PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT
----------- -------------------------------- --------------
6 AIX-Based Systems (64-bit) Big
13 Linux x86 64-bit LittleWhat to expect: The source is platform 6, big-endian, and the target (Linux x86 64-bit) is platform 13, little-endian. Because the endian formats differ, the files must be converted, which the XTTS driver does during the restore. If both were the same endian format, a simpler physical method such as Data Guard would be possible.
Step 2: Check That the Tablespace Set Is Self-Contained
A transportable set must not reference objects outside itself: an index in APP_IDX whose table is in USERS, or a partitioned table with partitions in a tablespace that is not moved. DBMS_TTS finds these violations.
SQL |
EXEC DBMS_TTS.TRANSPORT_SET_CHECK('APP_DATA,APP_IDX,APP_LOB', TRUE);
SELECT * FROM transport_set_violations;
-- Objects owned by SYS or SYSTEM in the set cannot be transported SELECT owner, segment_name, segment_type, tablespace_name FROM dba_segments WHERE tablespace_name IN ('APP_DATA','APP_IDX','APP_LOB') AND owner IN ('SYS','SYSTEM'); |
Expected output |
PL/SQL procedure successfully completed.
no rows selected
no rows selectedWhat to expect: No violations and no SYS or SYSTEM objects in the set. If TRANSPORT_SET_VIOLATIONS returns rows, either add the missing tablespace to the set or move the offending object (ALTER TABLE ... MOVE, ALTER INDEX ... REBUILD TABLESPACE) before going further.
Step 3: Collect the Prerequisites on Both Sides
Check the things that make a transport fail at the very end, when it is most expensive to discover them: character sets, time zone file version, and the users that own the objects.
SQL |
-- Run on source and target, the results must match (or the target must be newer for TZ) SELECT parameter, value FROM nls_database_parameters WHERE parameter IN ('NLS_CHARACTERSET','NLS_NCHAR_CHARACTERSET');
SELECT version FROM v$timezone_file;
-- Source: the schemas that own objects in the set SELECT owner, COUNT(*) AS segments, ROUND(SUM(bytes)/1024/1024/1024) AS gb FROM dba_segments WHERE tablespace_name IN ('APP_DATA','APP_IDX','APP_LOB') GROUP BY owner; |
Expected output |
PARAMETER VALUE
------------------------------ ----------
NLS_CHARACTERSET AL32UTF8
NLS_NCHAR_CHARACTERSET AL16UTF16
VERSION
----------
32
OWNER SEGMENTS GB
-------------------- ---------- ----------
APP 18412 11604
APP_ARCHIVE 822 689What this does: The character sets must be the same on both sides (or compatible, which in practice means the same). The target time zone file must be the same version or newer, otherwise tables with TIMESTAMP WITH TIME ZONE columns fail to import. The owner list tells you which users must exist on the target before the metadata import: the full transportable export in Step 9 creates them for you.
Step 4: Prepare the Target Database
Create the target in OCI from the console with the same character set and national character set as the source. Then create a directory object for Data Pump and decide where the converted data files will live.
SQL |
-- Target, connected to the PDB ALTER SESSION SET CONTAINER = prodpdb;
CREATE DIRECTORY xtts_dp AS '/xtts/dp';
-- Do NOT create APP_DATA, APP_IDX or APP_LOB on the target: they arrive as files SELECT tablespace_name FROM dba_tablespaces ORDER BY 1; |
Expected output |
Directory created.
TABLESPACE_NAME
------------------------------
SYSAUX
SYSTEM
TEMP
UNDOTBS1
USERSWhat to expect: A plain database with only the default tablespaces. If a tablespace with the same name as one in the set already exists on the target, the plug-in fails, so drop or rename it now. On Exadata and other ASM-based targets, the destination for the converted files is a disk group such as +DATAC1.
Step 5: Configure xtt.properties
Unzip the XTTS scripts into the same directory on both hosts, for example /home/oracle/xtts, and edit xtt.properties. The same file is used on the source and the target.
Shell |
cat > /home/oracle/xtts/xtt.properties <<'EOF' tablespaces=APP_DATA,APP_IDX,APP_LOB platformid=6 src_scratch_location=/xtts/src_scratch dest_scratch_location=/xtts/src_scratch dest_datafile_location=+DATAC1 parallel=8 rollparallel=4 usermantransport=1 EOF
# The driver keeps its state files in $TMPDIR; it must be the same path on both hosts export TMPDIR=/xtts/tmp mkdir -p /xtts/src_scratch /xtts/tmp /xtts/dp |
What this does: tablespaces is the set to move. platformid is the source platform ID from Step 1. src_scratch_location is where the source writes its backups, and dest_scratch_location is where the target reads them; because /xtts is a shared NFS mount, they can be the same path. dest_datafile_location is where the converted files go. usermantransport=1 is recommended when the source is 12c or later. parallel and rollparallel control how many channels the backup and the roll-forward use.
Step 6: Take the Initial Backup on the Source
The first pass is a full backup of the tablespace set. It runs while the application is open and takes as long as reading 12 TB takes. Nobody notices it apart from the I/O load.
Shell |
# Source (AIX), as oracle with ORACLE_SID=PROD cd /home/oracle/xtts export TMPDIR=/xtts/tmp $ORACLE_HOME/perl/bin/perl xttdriver.pl --backup --debug 1 |
Expected output |
============================================================
trace file is /xtts/tmp/backup_Aug15_Sat_09_02_11_402//Aug15_Sat_09_02_11_402_.log
=============================================================
--------------------------------------------------------------------
Parsing properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Done parsing properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Backup incremental
--------------------------------------------------------------------
Prepare newscn for Tablespaces: 'APP_DATA'
Prepare newscn for Tablespaces: 'APP_IDX'
Prepare newscn for Tablespaces: 'APP_LOB'
--------------------------------------------------------------------
Starting incremental backup
--------------------------------------------------------------------
--------------------------------------------------------------------
Done backing up incrementals
--------------------------------------------------------------------
============================================================
No new datafiles added
=============================================================What to expect: The driver records the starting SCN for each tablespace in its state files in $TMPDIR (res.txt and others), then backs the files up into the source scratch location. On a 10 Gbit/s link with eight channels, 12 TB takes about 6 to 8 hours. If the scratch area is not shared, copy the scratch files and the whole $TMPDIR directory to the target after every backup.
Step 7: Restore and Convert on the Target
The target restores the backups, converting each block from big-endian to little-endian as it writes it, and places the files in dest_datafile_location. These files are not yet part of the target database; they are kept up to date until the final window.
Shell |
# Target (Linux), as oracle with ORACLE_SID set to the target CDB instance cd /home/oracle/xtts export TMPDIR=/xtts/tmp $ORACLE_HOME/perl/bin/perl xttdriver.pl --restore --debug 1 |
Expected output |
--------------------------------------------------------------------
Parsing properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Done parsing properties
--------------------------------------------------------------------
--------------------------------------------------------------------
Start rollforward
--------------------------------------------------------------------
--------------------------------------------------------------------
End of rollforward phase
--------------------------------------------------------------------What to expect: For the first run, the restore creates the converted files in +DATAC1. The log in $TMPDIR lists each file and its new name. Check that ASM has room for the full 12 TB plus growth before you start; running out of space halfway costs a full rerun of the initial copy.
Step 8: Roll Forward as Often as You Like
Now repeat the same two commands. Each --backup on the source takes a level 1 incremental since the SCN recorded by the previous pass, and each --restore on the target applies it to the converted copies.
Shell |
# Source $ORACLE_HOME/perl/bin/perl xttdriver.pl --backup # Target $ORACLE_HOME/perl/bin/perl xttdriver.pl --restore
# Source: how much changes between passes (block change tracking keeps this fast) sqlplus -s / as sysdba <<'EOF' SELECT TO_CHAR(completion_time,'YYYY-MM-DD HH24:MI') AS completed, ROUND(SUM(bytes)/1024/1024/1024,1) AS gb FROM v$backup_datafile WHERE incremental_level = 1 AND completion_time > SYSDATE - 3 GROUP BY TO_CHAR(completion_time,'YYYY-MM-DD HH24:MI') ORDER BY 1; EOF |
Expected output |
COMPLETED GB
---------------- ----------
2026-08-16 09:41 168.4
2026-08-17 09:38 171.9
2026-08-18 21:05 84.2
2026-08-19 09:12 79.6
2026-08-19 21:07 81.3What this does: It shows the size of each incremental. Run the cycle daily, then twice a day as the window approaches. The last few passes tell you how much the final incremental will carry and therefore how long the outage will be: here about 80 GB per 12 hours, so an hourly pass just before the window carries only a few GB. Enable block change tracking on the source (ALTER DATABASE ENABLE BLOCK CHANGE TRACKING) so each incremental reads only the changed blocks.
Step 9: The Window
Stop the application, make the tablespaces read-only on the source, take and apply the final incremental, then move the metadata with a full transportable export and import. The source becomes the read-only fallback.
SQL |
-- Source: application stopped ALTER TABLESPACE app_data READ ONLY; ALTER TABLESPACE app_idx READ ONLY; ALTER TABLESPACE app_lob READ ONLY; |
Shell |
# Final incremental, then the final restore on the target $ORACLE_HOME/perl/bin/perl xttdriver.pl --backup # source $ORACLE_HOME/perl/bin/perl xttdriver.pl --restore # target
# Source: export the metadata as a full transportable export expdp system FULL=Y TRANSPORTABLE=ALWAYS VERSION=19 EXCLUDE=STATISTICS \ DIRECTORY=xtts_dp DUMPFILE=prod_ftex.dmp LOGFILE=prod_ftex_exp.log METRICS=YES
# Target: plug the converted files in impdp system@prodpdb FULL=Y DIRECTORY=xtts_dp DUMPFILE=prod_ftex.dmp LOGFILE=prod_ftex_imp.log METRICS=YES \ TRANSPORT_DATAFILES='+DATAC1/PRODPDB/DATAFILE/app_data_01.dbf','+DATAC1/PRODPDB/DATAFILE/app_idx_01.dbf','+DATAC1/PRODPDB/DATAFILE/app_lob_01.dbf' |
Expected output |
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/********@prodpdb FULL=Y DIRECTORY=xtts_dp ...
Processing object type DATABASE_EXPORT/PLUGTS_FULL/PLUGTS_BLK
Completed 1 PLUGTS_BLK objects in 41 seconds
Processing object type DATABASE_EXPORT/SCHEMA/USER
Completed 14 USER objects in 0 seconds
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
Completed 9688 TABLE objects in 211 seconds
Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE_BODIES/PACKAGE/PACKAGE_BODY
Completed 3141 PACKAGE_BODY objects in 388 seconds
Processing object type DATABASE_EXPORT/END_PLUGTS_BLK
Completed 1 END_PLUGTS_BLK objects in 12 seconds
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 3 error(s) at Thu Aug 20 01:47:12 2026 elapsed 0 00:24:36What to expect: PLUGTS_BLK is the step that plugs the data files in; it takes seconds, whatever the data volume. The import time depends on the number of objects (tables, indexes, PL/SQL units), not on the size of the data: here 24 minutes for about 30,000 objects. A few errors are normal, typically objects that already exist on the target such as default roles; read every one in the log before accepting it. List all the converted files in TRANSPORT_DATAFILES, exactly as the --restore log named them.
Step 10: Validate and Open
Before users come back, prove that what arrived is complete and consistent. Compare object counts per type between source and target, recompile, gather statistics and run the application's smoke tests.
SQL |
-- Target ALTER TABLESPACE app_data READ WRITE; ALTER TABLESPACE app_idx READ WRITE; ALTER TABLESPACE app_lob READ WRITE;
@?/rdbms/admin/utlrp.sql
SELECT owner, object_type, COUNT(*) AS objects, SUM(CASE status WHEN 'INVALID' THEN 1 ELSE 0 END) AS invalid FROM dba_objects WHERE owner IN ('APP','APP_ARCHIVE') GROUP BY owner, object_type ORDER BY owner, object_type FETCH FIRST 6 ROWS ONLY;
EXEC DBMS_STATS.GATHER_SCHEMA_STATS('APP', degree => 16); |
Expected output |
OWNER OBJECT_TYPE OBJECTS INVALID
-------------------- ----------------------- ---------- ----------
APP FUNCTION 212 0
APP INDEX 8106 0
APP INDEX PARTITION 10942 0
APP PACKAGE 1588 0
APP PACKAGE BODY 1553 0
APP SEQUENCE 341 0What to expect: The same counts per owner and object type as the same query on the source, and no invalid objects after utlrp. Anything missing was outside the transportable set (for example an object in USERS) and must be moved separately. Statistics were excluded from the export to save time in the window, so gather them now (or import them from a staging table exported earlier with DBMS_STATS.EXPORT_SCHEMA_STATS). Then take a fresh level 0 backup on the target and open the application. Keep the source read-only until sign-off.
Tip: Rehearse the whole procedure once on a copy, all the way to the import. The rehearsal gives you the real metadata import time, which is the one number that the incremental backups cannot shrink.
On Other Clouds
Self-managed Oracle on an AWS, Azure or Google Cloud VM: identical to the OCI case. Only the staging (NFS share, object storage or a copy over the interconnect) changes.
Oracle Database@Azure, @Google Cloud and @AWS: these are Exadata Database Service underneath, so the steps above apply unchanged; the staging area is usually NFS or Object Storage reached over the cloud network.
Amazon RDS for Oracle: supports transportable tablespaces through its own procedures in rdsadmin.rdsadmin_transport_util, which wrap the same RMAN and Data Pump phases with backups staged in S3 or EFS. Follow the current RDS documentation for the exact workflow.
Autonomous Database: does not accept transported data files. The route there is Data Pump, with GoldenGate when the window must be close to zero.
Zero Downtime Migration (ZDM): handles cross-endian moves with its logical method (Data Pump plus GoldenGate). Choose it when a tool-driven workflow matters more than the raw speed of transportable files.
Summary
For a big-endian to little-endian move, cross-platform transportable tablespaces with incremental backups give you physical-copy speed with a short outage. Check the platforms and the self-contained set, prepare a target with the same character sets, configure xtt.properties, run the initial --backup and --restore while the source is open, roll forward until each pass is small, then make the set read-only, apply the last incremental and plug the files in with a full transportable export and import. Validate object counts, recompile, gather statistics and keep the source as the fallback until sign-off.
Comments