Master in Oracle Golden Gate | Join us for the demo session on 22nd November 2025 at 6:00 PM IST

Migrate Oracle Databases to AWS Using

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarPradip
  • 26 Nov, 2025
  • 0 Comments
  • 3 Mins Read

Migrate Oracle Databases to AWS Using

Migrate Oracle Databases to AWS Using Transportable Tablespaces (TTS)

The Fastest Way to Move Large Oracle Databases to the Cloud

Migrating Oracle databases to the cloud is a critical step for organizations adopting AWS. When database size grows into terabytes, traditional export/import or Data Pump methods become slow and resource-intensive.

Transportable Tablespaces (TTS) provide one of the fastest and most efficient methods for migrating Oracle databases to AWS — especially for large data sets.

In this blog, we’ll walk through everything you need to know:
What TTS is
Why use TTS for AWS migration
Architecture overview
Prerequisites
Step-by-step migration procedure
Verification steps
Best practices
When TTS is NOT suitable

Let’s dive in.
Powered by Learnomate Technologies.


What Is Transportable Tablespace (TTS)?

Transportable Tablespaces allow you to move an entire tablespace (datafiles + metadata) across Oracle databases without exporting full table data.

Only metadata is exported using Data Pump — datafiles are copied directly.

Why choose TTS?

✔ 10x faster than Full Export/Import
✔ Ideal for multi-terabyte databases
✔ Enables platform migration (Linux → RHEL → AWS EC2)
✔ Supports Oracle versions 11g → 19c
✔ Minimal downtime


Use Cases for AWS Migration with TTS

TTS is suitable when:

  • Migrating large Oracle databases to Amazon EC2 (same OS platform)

  • Moving schemas stored in dedicated tablespaces

  • Performing lift-and-shift cloud migrations

  • Reducing downtime during migration

  • Migrating from on-prem Oracle to AWS cloud-managed setups (EC2 based)

Note: TTS does not apply to Amazon RDS Oracle, because RDS does not allow direct datafile access.


Architecture Overview

Migration flow using TTS:

On-Prem Oracle DB → Identify self-contained TS → Make TS READ ONLY
→ Export metadata using Data Pump
→ Copy datafiles to AWS EC2
→ Plug tablespaces into AWS Oracle DB
→ Import metadata → Make TS READ WRITE

Prerequisites

Database Requirements

  • Source and target platforms must be same endian format
    Check using:

    SELECT PLATFORM_NAME, ENDIAN_FORMAT FROM V$TRANSPORTABLE_PLATFORM;
  • Target DB version must be equal or higher than source

  • Tablespaces must be self-contained

  • Sufficient space on AWS EC2 storage

AWS Requirements

  • AWS EC2 instance with:

    • Oracle Linux / RHEL

    • Oracle Database installed

    • Enough block storage (EBS)

  • Secure Copy (SCP/SFTP) access for transferring datafiles


Step-by-Step Migration Using Transportable Tablespaces


Step 1: Identify the Tablespaces to Be Migrated

SELECT tablespace_name FROM dba_tablespaces;

Check if they are self-contained:

expdp system/password \
TRANSPORT_TABLESPACES=USERS,HR \
TRANSPORT_FULL_CHECK=Y \
DIRECTORY=exp_dir LOGFILE=check.log

Step 2: Put Tablespaces in READ ONLY Mode

ALTER TABLESPACE users READ ONLY;
ALTER TABLESPACE hr READ ONLY;

Step 3: Export Metadata

Only metadata is exported, not the datafiles:

expdp system/password \
DUMPFILE=tts_metadata.dmp \
LOGFILE=tts_export.log \
TRANSPORT_TABLESPACES=USERS,HR \
DIRECTORY=exp_dir

This generates:

  • tts_metadata.dmp

  • Datafiles belonging to USERS, HR


Step 4: Copy Datafiles to AWS EC2

Use SCP or AWS Transfer Family:

scp *.dbf ec2-user@<AWS_PUBLIC_IP>:/u01/oradata/

Step 5: Import Metadata on AWS Server

Login to AWS Oracle instance.


Step 6: Plug in the Transported Tablespaces

impdp system/password \
DUMPFILE=tts_metadata.dmp \
TRANSPORT_DATAFILES='/u01/oradata/users01.dbf','/u01/oradata/hr01.dbf' \
LOGFILE=tts_import.log \
DIRECTORY=imp_dir

Oracle reads the datafiles and integrates them into the target database.


Step 7: Make the Tablespaces READ WRITE

ALTER TABLESPACE users READ WRITE;
ALTER TABLESPACE hr READ WRITE;

Migration is complete!


Verification Steps

Check tablespace status

SELECT tablespace_name, status FROM dba_tablespaces;

Check objects

SELECT owner, table_name FROM dba_tables WHERE tablespace_name='USERS';

Check invalid objects

SELECT object_name FROM dba_objects WHERE status='INVALID';

Best Practices

  • Use separate tablespaces per schema for easier TTS migration

  • Perform TRANSPORT_FULL_CHECK=Y before migration

  • Ensure same block size on source and target

  • Run DBMS_TTS.TRANSPORT_SET_CHECK before starting

  • Perform migration during low traffic period

  • Validate objects after import

  • Always backup source and target databases


When NOT to Use TTS

Avoid TTS if:

Database contains SYS, SYSTEM objects
Cross-tablespace dependencies exist
Migrating to Amazon RDS Oracle
Tablespaces use Bigfile TS with different block size
Platform endian formats do not match


Conclusion

Transportable Tablespaces are one of the fastest, cleanest, and most efficient methods to migrate Oracle databases to AWS EC2. By moving only datafiles and minimal metadata, TTS dramatically reduces downtime and speeds up cloud adoption.

For DBAs performing large-scale lift-and-shift migrations, TTS remains an essential skill.

📺 Want to see how we teach? Head over to our YouTube channel for insights, tutorials, and tech breakdowns: 👉 www.youtube.com/@learnomate

🌐 To know more about our courses, offerings, and team: Visit our official website: 👉 www.learnomate.org

💼 Let’s connect and talk tech! Follow me on LinkedIn for more updates, thoughts, and learning resources: 👉 https://www.linkedin.com/in/ankushthavali/

📝 If you want to read more about different technologies, Check out our detailed blog posts here: 👉 https://learnomate.org/blogs/

Let’s keep learning, exploring, and growing together. Because staying curious is the first step to staying ahead.

Happy learning!

ANKUSH😎

Let's Talk

Find your desired career path with us!

Let's Talk

Find your desired career path with us!