DBA Hub

📋Steps in this guide1/37

PDB Migration Techniques for Multitenant Architecture

Learn PDB migration techniques in Oracle Multitenant Architecture. Explore unplug/plug, cloning, refreshable clones, remote cloning & transport. Easy DBA guide.

oracle configurationintermediate
by OracleDba
16 views
1

Introduction

Oracle Multitenant Architecture allows organizations to run multiple pluggable databases (PDBs) within a single container database (CDB). As databases grow and environments change, migrating PDBs becomes essential—whether for resource optimization , version upgrades , moving to cloud , or consolidation . This blog explains all major PDB migration techniques , when to use them, step-by-step workflows, benefits, limitations, and real-world use cases.
2

Why is PDB Migration Needed?

PDB migration is common in:
3

1. Data Center Migration

Moving PDBs between on-prem servers or cloud.
4

2. Hardware Upgrade

Shifting PDBs to new servers with better CPU, RAM, or storage.
5

3. CDB Patch/Upgrade Consolidation

Migrating PDBs to a new version of the CDB.
6

4. Workload Balancing

Distributing PDBs across multiple CDBs to avoid performance bottlenecks.
7

H3: 5. Development to Production Move

Cloning or migrating PDBs to other environments.
8

Key PDB Migration Techniques

Below are the most common and recommended techniques for Oracle DBAs:
9

Overview

This is the most traditional migration method, used when moving a PDB between CDBs with the same version .
10

Steps

- Close the PDB: Close the PDB: - Unplug the PDB: Unplug the PDB: - Copy datafiles to target CDB. Copy datafiles to target CDB. - Plug into new CDB: Plug into new CDB: - Run PDB compatibility check and fix violations. Run PDB compatibility check and fix violations. - Open PDB: Open PDB:
11

Advantages

- Clean migration Clean migration - Easy validation Easy validation - Supports metadata transport Supports metadata transport
12

Limitations

- Requires downtime Requires downtime - CDB versions must match CDB versions must match
13

Overview

Used to create a copy of a PDB on the same CDB.
14

Use Cases

- Quick dev/test environment creation Quick dev/test environment creation - Data masking Data masking - Zero-impact testing Zero-impact testing
15

Overview

Cloning a PDB from a remote CDB using a database link.
16

Steps

- Create DB link to source CDB. Create DB link to source CDB. - Execute: Execute: - Open with required conversions. Open with required conversions.
17

Benefits

- Requires minimal downtime Requires minimal downtime - No need to manually transfer files No need to manually transfer files - Ideal for on-prem to cloud migration Ideal for on-prem to cloud migration
18

Overview

A refreshable PDB maintains incremental sync with a source PDB.
19

Benefits

- Near-zero downtime during cutover Near-zero downtime during cutover - Best for production migrations Best for production migrations - Works for cloud onboarding (OCI) Works for cloud onboarding (OCI)
20

Overview

Used when only specific schemas/tablespaces need to be migrated.
21

Steps

- Set tablespaces READ ONLY Set tablespaces READ ONLY - Export metadata Export metadata - Transfer datafiles Transfer datafiles - Import into target CDB Import into target CDB
22

Use Cases

- Partial migrations Partial migrations - Schema-level transport Schema-level transport - Moving large datafiles efficiently Moving large datafiles efficiently
23

Overview

A universal migration approach, works across different Oracle versions.
24

Steps

- Export PDB/Schemas: Export PDB/Schemas: - Copy dump file to target server. Copy dump file to target server. - Import into target CDB/PDB: Import into target CDB/PDB:
25

When to Use

- Version upgrade Version upgrade - Cross-platform migration Cross-platform migration - When other PDB methods fail When other PDB methods fail
26

Limitations

- Slow for large datasets Slow for large datasets - Needs downtime Needs downtime
27

Overview

Oracle GoldenGate enables zero-downtime PDB migration through real-time replication.
28

Process

- Configure extract on source PDB Configure extract on source PDB - Configure replicat on target PDB Configure replicat on target PDB - Sync data in near real-time Sync data in near real-time - Perform cutover Perform cutover
29

Best For

- Cloud migrations Cloud migrations - Active-active setups Active-active setups - High Availability High Availability
30

Based on Downtime

- Zero downtime: GoldenGate, Refreshable PDB Zero downtime: GoldenGate, Refreshable PDB - Low downtime: Remote Cloning Low downtime: Remote Cloning - High downtime acceptable: Unplug/Plug High downtime acceptable: Unplug/Plug
31

Based on Environment

- Same version CDB: Unplug/Plug Same version CDB: Unplug/Plug - Cross-version upgrade: Data Pump Cross-version upgrade: Data Pump - Large DB: Transportable Tablespaces Large DB: Transportable Tablespaces
32

1. Validate PDB Compatibility

Use:
33

Q1. Can I migrate a PDB to a CDB with a different Oracle version?

Yes, but not using unplug/plug. Use Data Pump or GoldenGate .
34

Q2. Which migration technique offers zero downtime?

Oracle GoldenGate and Refreshable PDB provide near-zero downtime.
35

Q3. Is CDB-compatible version mandatory for unplug/plug?

Yes. Both CDBs should be on the same version and patch level .
36

Q4. What is the fastest PDB migration method?

Remote cloning and transportable tablespaces are fastest for large databases.
37

Q5. How do I migrate only selected schemas?

Use transportable tablespaces or Data Pump schema-level export/import .

Comments (0)

Please to add comments

No comments yet. Be the first to comment!