DBA Hub

📋Steps in this guide1/9

Migrate Oracle Databases to AWS Using TTS

Learn how to migrate Oracle databases to AWS EC2 using Transportable Tablespaces (TTS). A step-by-step guide covering prerequisites, export/import, datafile transfer, validation, and best practices for fast and low-downtime Oracle cloud migration.

oracle configurationintermediate
by OracleDba
13 views
1

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.
2

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
3

Use Cases for AWS Migration with TTS

TTS is suitable when: - Migrating large Oracle databases to Amazon EC2 (same OS platform) Migrating large Oracle databases to Amazon EC2 (same OS platform) - Moving schemas stored in dedicated tablespaces Moving schemas stored in dedicated tablespaces - Performing lift-and-shift cloud migrations Performing lift-and-shift cloud migrations - Reducing downtime during migration Reducing downtime during migration - Migrating from on-prem Oracle to AWS cloud-managed setups (EC2 based) 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. Note: TTS does not apply to Amazon RDS Oracle, because RDS does not allow direct datafile access.
4

Architecture Overview

Migration flow using TTS:

Code/Command (click line numbers to comment):

1
2
3
4
5
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
5

Database Requirements

- Source and target platforms must be same endian format Check using: Source and target platforms must be same endian format Check using: - Target DB version must be equal or higher than source Target DB version must be equal or higher than source - Tablespaces must be self-contained Tablespaces must be self-contained - Sufficient space on AWS EC2 storage Sufficient space on AWS EC2 storage
6

AWS Requirements

- AWS EC2 instance with: Oracle Linux / RHEL Oracle Database installed Enough block storage (EBS) AWS EC2 instance with: - Oracle Linux / RHEL Oracle Linux / RHEL - Oracle Database installed Oracle Database installed - Enough block storage (EBS) Enough block storage (EBS) - Secure Copy (SCP/SFTP) access for transferring datafiles Secure Copy (SCP/SFTP) access for transferring datafiles
7

Step-by-Step Migration Using Transportable Tablespaces

Check if they are self-contained : Only metadata is exported, not the datafiles: This generates: - - Datafiles belonging to USERS, HR Datafiles belonging to USERS, HR Use SCP or AWS Transfer Family: Login to AWS Oracle instance. Oracle reads the datafiles and integrates them into the target database. Migration is complete!
8

Best Practices

- Use separate tablespaces per schema for easier TTS migration Use separate tablespaces per schema for easier TTS migration - Perform TRANSPORT_FULL_CHECK=Y before migration Perform TRANSPORT_FULL_CHECK=Y before migration - Ensure same block size on source and target Ensure same block size on source and target - Run before starting Run before starting - Perform migration during low traffic period Perform migration during low traffic period - Validate objects after import Validate objects after import - Always backup source and target databases Always backup source and target databases
9

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

Comments (0)

Please to add comments

No comments yet. Be the first to comment!