database_migration_to_oracle_cloud-2
database_migration_to_oracle_cloud-2
October 2021
Sinan Petrus Toma
database-heartbeat.com
@sinanpetrus
sinanpetrustoma
Safe harbor statement
The following is intended to outline our general product direction. It is intended for information
purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any
material, code, or functionality, and should not be relied upon in making purchasing decisions. The
development, release, timing, and pricing of any features or functionality described for Oracle’s
products may change and remains at the sole discretion of Oracle Corporation.
Shared
Shared
VM BM Exadata
Block Storage Local NVMe Local disks & NVMe flash cards
SE, EE EE
Shared
Max. CPU/Storage? Online Scaling? Install multiple DB homes and additional software?
Data/Schema Data/Schema
Cust
Customer
Databases Databases
VMs (DomU) VMs (DomU)
Hypervisor Hypervisor
Oracle
Exadata Exadata
DB Servers DB Servers
Oracle
NW fabric NW fabric
Exadata Exadata
Storage Storage
Servers Servers
Logical & Physical (access to OS and CDB) Logical (no access to OS and CDB)
19 c
Unplug / Plug Remote Clone Refreshable Clone PDB Relocate MV2ADB ZDM
10110101
MV2OCI ZDM
Downtime
• Long: Time needed for Data Pump conventional export and import for full backup & restore
• Short: Time needed to copy the data files over the network or create and apply last incremental backup
• Zero: Time needed for switchover or 1min for refreshable clones
MV2ADB
Move to ADB
Migration to Autonomous by using Data Pump
Doc ID 2463574.1
MV2OCI
Move to OCI
Migration to DBCS by using Data Pump
Doc ID 2514026.1
All for Free
ZDM
Zero Downtime Migration
Migration to DBCS by using Standby Database
oracle.com/database/technologies/rac/zdm.html
PDB19c
network link
11g
expdp impdp
MV2ADB restAPI / oci cli
object storage
PDB19c
network link
11g
expdp impdp
MV2OCI scp
local storage
ZDM
19 c
5 Instantiates Standby
SQLnet
6 Syncs Primary & Standby
swtich over
PDB19c PDB19c
101101010001
ZDM
CDB CDB
1. Data Gaurd
2. GoldenGate
101101010001
3 switch over
1 create standby
4 upgrade
101101010001
3 switch over
1 create standby
101101010001
6 switch over
1 create standby
PDB19c
11g
2 Extract
1 initial load
3 replicate
Data Pump
3. Conventional Export/Import
4. Full Transportable
5. Transportable Tablespace
6. Convert Full Transportable
PDB19c
11g
1 expdp 3 impdp
2 scp
local dump dump local
storage files files storage
2 expdp 4 impdp
3 oci cli
local dump dump
storage files files
object storage
PDB19c
11g
2 impdb NETWORK_LINK 1 create DB link
PDB19c
11g
https://www.youtube.com/watch?v=dyDefQxSesI
https://www.youtube.com/watch?v=IEwfhA_GuF8
PDB19c
PDB19c
11g
RMAN
19c
7. Transportable Tablespace
8. Convert Transportable Tablespace
9. Cross-Platform Transportable Tablespace Backup Sets
10. Cross-Platform Transportable PDB
11. Cross-Platform Transportable PDB Inconsistent Backups
12. Duplicate from an Active Database
13. Backup & Restore
PDB19c
11g
3 create user
PDB19c
11g
5 create user
7 TBS read write
1 TBS read only
2 expdp TRANSPORT_TABLESPACES=
3 rman CONVERT 6 impdp
PDB19c
11g
4 create user
6 TBS read write
1 TBS read only
PDB12.1 PDB19c
5 upgrade PDB
1 close PDB
6 open PDB
2 rman BACKUP FOR TRANSPORT UNPLUG INTO 4 rman RESTORE USING ... FOREIGN PLUGABLE DATABASE
PDB12.1 PDB19c
9 upgrade PDB
5 close PDB
10 open PDB
1 rman BACKUP INCREMENTAL LEVEL 0 FOR TRANSPORT ALLOW INCONSISTENT 3 rman RESTORE FOREIGN PLUGGABLE DATABASE
6 rman BACKUP INCREMENTAL FROM SCN … FOR TRANSPORT UNPLUG INTO 8 rman RECOVER USING ....xml FOREIGN DATAFILECOPY
DBCS
PDB19c
PDB19c
1 close PDB
4 rman RESTORE
2 rman BACKUP
backup
3 copy backup
PDB19c
PDB19c
2 rman BACKUP
backup
10110101
PDB12.1 PDB19c
nonCDB12.1 PDB19c
5 upgrade PDB
7 open PDB
2 DBMS_PDB.DESCRIBE
4 plug in nonCDB
PDB12.1 PDB19c
3 create PDB clone
5 noncdb_to_pdb.sql
nonCDB12.1
6 open PDB
2 DB read only
1 create DB link
PDB12.2 PDB19c
2 create PDB clone
3 upgrade PDB
4 open PDB
1 create DB link
4 noncdb_to_pdb.sql
nonCDB12.2
5 open PDB
1 create DB link
create pluggable database PDBCLOUD from PDBPREM@DBLINK refresh mode every 1 minutes;
(Production) Migration?
PDB12.2.0.1 PDB19c
2 create PDB relocate
3 upgrade PDB
4 open PDB
1 create DB link
PDB19c PDB19c
2 create PDB relocate
AVAILABILITY MAX
1 create DB link
SQL Developer
data
files
SQL*Loader
control
file
MAA Data Guard same same same compatible physical online EE zero 9i
MAA GoldenGate different different different different logical online SE,EE zero 8i
DataPump Data Pump - Conventional Export/Import different different different different logical online SE,EE long 10.2
DataPump Data Pump - Transportable Tablespace different different same compatible physical offline SE,EE short 10.2
DataPump Data Pump - Full Transportable different different same compatible physical offline SE,EE short 10.2
DataPump Data Pump - Convert Full Transportable different different different compatible physical offline SE,EE short 10.2
RMAN RMAN - Transportable Tablespace with Data Pump different different same compatible physical online SE,EE short 10.2
RMAN RMAN - Convert Transportable Tablespace with Data Pump different different different compatible physical offline SE,EE short 10.2
RMAN RMAN - Cross-Platform Transportable Tablespace Backup Sets different different different compatible physical offline SE,EE long 10.2
RMAN RMAN - Cross-Platform Transportable PDB different same same compatible physical offline SE,EE long 12.1
RMAN RMAN - Cross-Platform Transportable PDB Inconsistent Backups different same same compatible physical offline SE,EE (very) short* 12.2
RMAN RMAN - Duplicate from an Active Database same same same compatible physical online SE,EE long 10.2
RMAN RMAN - Backup & Restore same same same compatible physical online SE,EE long 8i
Multitenant PDB Unplug & Plug different same same compatible physical offline SE,EE short 12.1
Multitenant PDB Remote Cloning different same same compatible physical offline SE,EE short 12.1
Multitenant PDB Remote Hot Cloning different same same compatible physical online SE,EE short 12.2
Multitenant PDB Refreshable Clone different same same compatible physical online SE,EE 1min 12.2
Multitenant PDB Relocate different same same compatible physical online SE,EE short 12.2
Multitenant PDB Relocate - AVAILABILITY MAX same same same compatible physical online SE,EE zero 12.2
source
downtime? endian format?
long zero
big endian little endian
downtime? downtime?
• Short: Time needed to copy the data files over the network or to create and apply the last incremental backup. Transportable PDB
Inconsistent Bck
• Zero: Time needed for switchover or 1min for refreshable clones
https://database-heartbeat.com/category/database-migration/