0% found this document useful (0 votes)
5 views

database_migration_to_oracle_cloud-2

Uploaded by

ethenhunt
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

database_migration_to_oracle_cloud-2

Uploaded by

ethenhunt
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 74

Oracle Database Migration

to Oracle Cloud Infrastructure

October 2021
Sinan Petrus Toma

Principal Cloud Specialist


Oracle Database Cloud Services

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.

3 Copyright © 2020, Oracle and/or its affiliates


Agenda

1 Oracle Database in Oracle Cloud


2 Considerations for Cloud Migration
3 Automation Tools
4 Migration Methods
5 Decision Tree for Migration Methods

4 Copyright © 2020, Oracle and/or its affiliates


Agenda

1 Oracle Database in Oracle Cloud


2 Considerations for Cloud Migration
3 Automation Tools
4 Migration Methods
5 Decision Tree for Migration Methods

5 Copyright © 2020, Oracle and/or its affiliates


Oracle Database Cloud Offering
DBCS ExaCS Exa C@C ADB C@C ADB

Shared

Oracle Data Center Customer Data Center Oracle Data Center

Shared Dedicated Shared

Co-Managed (automated) Fully Oracle Managed (autonomous)

access to OS and CDB, SYSDBA no access to OS and CDB, no SYSDBA

6 Copyright © 2020, Oracle and/or its affiliates


Oracle Database Cloud Offering
DBCS ExaCS Exa C@C ADB C@C ADB

Shared

VM BM Exadata

Block Storage Local NVMe Local disks & NVMe flash cards

SE, EE EE

11.2, 12.1, 12.2, 18c, 19c, 21c on VM 19c (21c on AlwaysFree)

7 Copyright © 2021, Oracle and/or its affiliates


Deployment Options

Customer Managed Co-Managed Oracle Managed

Shared

Max. CPU/Storage? Online Scaling? Install multiple DB homes and additional software?

8 Copyright © 2021, Oracle and/or its affiliates. All rights reserved


Co-Managed Fully Oracle Managed

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

9 Copyright © 2020, Oracle and/or its affiliates. All rights reserved


What is Migration?

Patching Upgrade Migration


• Apply fixes within the same • Change from one Major • Move the Database
Release version Release to another • Old HW  New HW
• Quarterly Release Updates • 11.2.0.4  19.9 • AIX  Linux
(RUs) • 18.11  19.10 • On-premises  Cloud
• 18.11  18.12
• non-CDB to Multitenant
• 19.9  19.10

Data Center Relocation


• Move entire HW from one
place to another

10 Copyright © 2021, Oracle and/or its affiliates


Physical Migration

Move the datafiles


from source
to target server
aaaaa
aaaaa
bbbbb
bbbbb
ccccc
ccccc

11 Copyright © 2021, Oracle and/or its affiliates


Logical Migration

Move the data


from source
to target database
aaaaa
aaaaa
bbbbb
bbbbb
ccccc
ccccc

12 Copyright © 2021, Oracle and/or its affiliates


Shared

Logical & Physical (access to OS and CDB) Logical (no access to OS and CDB)

Data Pump GoldenGate Data Guard RMAN Data Pump GoldenGate

19 c

Unplug / Plug Remote Clone Refreshable Clone PDB Relocate MV2ADB ZDM

10110101

MV2OCI ZDM

13 Copyright © 2020, Oracle and/or its affiliates


Oracle Solutions to migrate databases to Oracle Cloud
OCI Database Zero Downtime
Migration (DMS) Migration (ZDM)
• Fully managed • User Managed Expert Tool
• Graphical guidance • Fleet Migrations
• Online and offline migrations • Logical and Physical
• Autonomous Database target only in
Migrations
first release
Based on Zero Downtime Migration • Migrations to ExaCC

SQL Developer Enterprise Manager Database Tools


• Integrated with EM • Manual use of DB Tools
• Developer Experience
(Data Pump, Multitenant,
• Fine-grained ecosystem RMAN, Data Guard,
transformations • Use as part of EM GoldenGate)
Automation and • Full expert control
Monitoring • Special use cases (bi-
directional replication, etc.)

Copyright © 2021, Oracle and/or its affiliates


Copyright © 2019 Oracle and/or its affiliates.
Cloud Benefits

Automation Simplified Higher Availability Higher Security Cost Effectiveness


• Infrastructure Management & Performance • Self-patching • Scalability
• Provisioning • Patching • RAC • Encryption • Elasticity
• Backups • Restore • Data Guard • IAM • Pay-per-use
• Cloning • Exadata

Take Automation to Next Level

15 Copyright © 2020, Oracle and/or its affiliates


Agenda

1 Oracle Database in Oracle Cloud


2 Considerations for Cloud Migration
3 Automation Tools
4 Migration Methods
5 Decision Tree for Migration Methods

16 Copyright © 2020, Oracle and/or its affiliates


Characteristics & Factors

Database version Character set DB block size


• 11g, 12c, 18c, 19c • UTF8, ISO8859P1, ... • 2K, 4K, 8K, 16K, 32K

Database edition Database platform Performance


• Standard, Enterprise • Endian format (little, big) • VM, BM, Exadata

Database options Data transfer Isolation


• Adv. Security (TDE), RAC, .. • Physical, Logical • Shared or dedicated
environment

Database architecture Source database availability Data types


• Non-CDB, Multitenant • Online, Offline • LONG, Mulitmedia, ...

17 Copyright © 2020, Oracle and/or its affiliates


Characteristics & Factors

Database size Network bandwidth Options


• Small, medium, large • Internet, VPN, • Parallelism
FastConnect • Compression
• Storage Gateway
• Data Transfer Appliance

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

18 Copyright © 2020, Oracle and/or its affiliates


Single Source of Truth  Doc ID 742060.1 AutoUpgrade Tool
Doc ID 2485457.1

until Dec 31, 2022 with Market Driven Support

until July 31, 2022

until March 31, 2022

until June 30, 2021

until April 30, 2027

until June 30, 2023

19 Copyright © 2021, Oracle and/or its affiliates


Agenda

1 Oracle Database in Oracle Cloud


2 Considerations for Cloud Migration
3 Automation Tools
4 Migration Methods
5 Decision Tree for Migration Methods

20 Copyright © 2020, Oracle and/or its affiliates


Automation Tools

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

21 Copyright © 2020, Oracle and/or its affiliates


MV2ADB | move data to Autonomous Database in "one-click"

Installs & executes


ADB Schema Advisor automatically
Doc ID 2462677.1

22 Copyright © 2020, Oracle and/or its affiliates


MV2ADB
MV2ADB | move data to Autonomous Database in "one-click"

 Different version  Logical


 Different architecture  Online Installs & executes ADB Schema Advisor
 Different endian format  SE, EE automatically Doc ID 2462677.1
 Different character set  Downtime: long
Autonomous

PDB19c

network link
11g
expdp impdp
MV2ADB restAPI / oci cli

object storage

23 Copyright © 2020, Oracle and/or its affiliates


MV2OCI | move data to Oracle Cloud Database in "one-click"

24 Copyright © 2020, Oracle and/or its affiliates


MV2OCI
MV2OCI | move data to Oracle Cloud Database in "one-click"

 Different version  Logical


 Different architecture  Online
 Different endian format  SE, EE
 Different character set  Downtime: long
DBCS

PDB19c

network link
11g
expdp impdp
MV2OCI scp

local storage

25 Copyright © 2020, Oracle and/or its affiliates


ZDM | Zero Downtime Migration

ZDM

Logical Offline Logical Online Physical Offline Physical Online

Data Pump GoldenGate RMAN Data Guard

19 c

26 Copyright © 2020, Oracle and/or its affiliates


ZDM | Physical Online – Data Guard
1 Download ZDM

2 Connects to Source & Target

3 Connects to Object Store


Application 4 Transfers DB Files

5 Instantiates Standby
SQLnet
6 Syncs Primary & Standby

SSH SSH 7 Switches Over & Role Swaps


ZDM
8 User Finalizes at Will

27 Copyright © 2020, Oracle and/or its affiliates


ZDM
ZDM | Zero Downtime Migration

 Same version  Physical


 Same architecture  Online, Offline
 Same endian format  EE, SE
 Compatible character set  Downtime: zero, long
DBCS

swtich over
PDB19c PDB19c

101101010001

ZDM

28 Copyright © 2020, Oracle and/or its affiliates


Sources ZDM: https://dohdatabase.com/2020/07/06/zdm/ Targets
On-premise, OCI Classic, OCI DBCS VM, DBCS BM, ExaCS, ExaC@C

Linux operating system Oracle Linux 7 or newer

DB release 11.2.0.4 or newer Same release as on-premise

Patch level Same, higher (run datapatch)

Enterprise Edition Enterprise Edition (zero downtime)

Standard Edition Standard Edition (offline)

CDB CDB

12c non-CDB 12c non-CDB (ExaCS, ExaC@C)

Single Instance Single Instance, RAC

RAC one node, RAC RAC

Encrypted, not encrypted Encrypted (no fallback if no ASO on-prem)


29 Copyright © 2020, Oracle and/or its affiliates
Cloud Migration | Best Practice

For Autonomous Database use MV2ADB

For all other use cases use ZDM when applicable

If not applicable, use manual methods according


on your requirements

30 Copyright © 2020, Oracle and/or its affiliates


Agenda

1 Oracle Database in Oracle Cloud


2 Considerations for Cloud Migration
3 Automation Tools
4 Migration Methods
5 Decision Tree for Migration Methods

31 Copyright © 2020, Oracle and/or its affiliates


Maximum Availability Architecture (MAA)

Data Guard GoldenGate

1. Data Gaurd
2. GoldenGate

32 Copyright © 2020, Oracle and/or its affiliates


Data Guard
1. Data Guard

 Same version  Physical


 Same architecture  Online
 Same endian format  EE
 Compatible character set  Downtime: zero
DBCS

PDB19c 2 redo apply PDB19c

101101010001
3 switch over

1 create standby

33 Copyright © 2020, Oracle and/or its affiliates


Data Guard | Switchover and Upgrade

 Different version  Physical


 Same architecture  Online
 Same endian format  EE
 Compatible character set  Downtime: zero
DBCS

PDB12c 2 redo apply PDB19c

4 upgrade
101101010001
3 switch over

1 create standby

34 Copyright © 2020, Oracle and/or its affiliates


Data Guard | Transient Logical Standby

 Different version  Logical


 Same architecture  Online
 Same endian format  EE
 Compatible character set  Downtime: <5min
DBCS

3 set guaranteed restore point


4 convert to logical standby
PDB12c 2 redo apply PDB19c
5 upgrade

101101010001
6 switch over

1 create standby

35 Copyright © 2020, Oracle and/or its affiliates


GoldenGate
2. GoldenGate

 Different version  Logical


 Different architecture  Online
 Different endian format  SE, EE
 Different character set  Downtime: zero
DBCS
Autonomous

PDB19c
11g
2 Extract
1 initial load

3 replicate

36 Copyright © 2020, Oracle and/or its affiliates


Data Pump

Data Pump

3. Conventional Export/Import
4. Full Transportable
5. Transportable Tablespace
6. Convert Full Transportable

37 Copyright © 2020, Oracle and/or its affiliates


Data Pump
3. Data Pump | Conventional Export/Import - DBCS

 Different version  Logical


 Different architecture  Online
 Different endian format  SE, EE
 Different character set  Downtime: long
DBCS

PDB19c

11g

1 expdp 3 impdp

2 scp
local dump dump local
storage files files storage

38 Copyright © 2020, Oracle and/or its affiliates


Data Pump | Conventional Export/Import - ADB

 Different version  Logical


 Different architecture  Online
 Different endian format  SE, EE
 Different character set  Downtime: long
Autonomous
PDB19c
ADB Schema Advisor
11g Doc ID 2462677.1
1 run ADB Schema Advisor

2 expdp 4 impdp

3 oci cli
local dump dump
storage files files
object storage

39 Copyright © 2020, Oracle and/or its affiliates


Data Pump | Network Link

 Different version  Logical


 Different architecture  Online
 Different endian format  SE, EE
 Different character set  Downtime: long
DBCS
Autonomous

PDB19c
11g
2 impdb NETWORK_LINK 1 create DB link

40 Copyright © 2020, Oracle and/or its affiliates


4. Data Pump | Full Transportable Export Import (FTEX)

 Different version  Physical


 Different architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: short
DBCS

PDB19c

11g

1 TBS read only

2 expdp FULL=y TRANSPORTABLE=always 4 impdp TRANSPORT_DATAFILES=

local dump files 3 scp (dump files) dump local


storage (meta data) 3 scp (data files of + data storage
user defined TBS)

41 Copyright © 2020, Oracle and/or its affiliates


4. Data Pump | Full Transportable Export Import (FTEX) + Inc. Backups

 Different version  Physical


 Different architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: very short

https://www.youtube.com/watch?v=dyDefQxSesI

https://www.youtube.com/watch?v=IEwfhA_GuF8

42 Copyright © 2020, Oracle and/or its affiliates


5. Data Pump | Transportable Tablespace

 Different version  Physical


 Different architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: short
DBCS

PDB19c

11g 4 create user

6 TBS read write


1 TBS read only

2 expdp TRANSPORT_TABLESPACES= 5 impdp TRANSPORT_DATAFILES=

3 scp (dump files)


local dump dfiles dump local
storage meta data 3 scp (data files) + data storage

43 Copyright © 2020, Oracle and/or its affiliates


6. Data Pump | Convert Full Transportable

 Different version  Physical


 Different architecture  Offline
 Different endian format  SE, EE
 Compatible character set  Downtime: short
DBCS

PDB19c

11g

1 TBS read only

2 expdp FULL=y TRANSPORTABLE=always 5 impdp TRANSPORT_DATAFILES=

local dump files 4 scp (dump files) dump local


storage (meta data) + data storage

3 convert using DBMS_FILE_TRANSFER.PUT_FILE

44 Copyright © 2020, Oracle and/or its affiliates


Recovery Manager (RMAN)

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

45 Copyright © 2020, Oracle and/or its affiliates


RMAN
7. RMAN | Transportable Tablespace with Data Pump
19c

 Different version  Physical


 Different architecture  Online
 Same endian format  SE, EE
 Compatible character set  Downtime: short
DBCS

PDB19c

11g
3 create user

1 rman TRANSPORT TABLESPACE 4 impdp TRANSPORT_DATAFILES=

local dump dump local


storage files files storage
2 scp (dump files)

2 scp (data files)


data data
files files

46 Copyright © 2020, Oracle and/or its affiliates


8. RMAN | Convert Transportable Tablespace with Data Pump

 Different version  Physical


 Different architecture  Offline
 Different endian format  SE, EE
 Compatible character set  Downtime: short
DBCS

PDB19c

11g
5 create user
7 TBS read write
1 TBS read only

2 expdp TRANSPORT_TABLESPACES=
3 rman CONVERT 6 impdp

local dump dump local


storage files files storage
4 scp (dump files)

4 scp (data files)


converted converted
data files data files

47 Copyright © 2020, Oracle and/or its affiliates


9. RMAN | Cross-Platform Transportable Tablespace Backup Sets

 Different version  Physical


 Different architecture  Offline
 Different endian format  SE, EE
 Compatible character set  Downtime: long
DBCS

PDB19c

11g
4 create user
6 TBS read write
1 TBS read only

2 rman BACKUP FOR TRANSPORT 5 rman RESTORE FOREIGN TABLESPACE

local dump dump local


storage files files storage
3 scp (dump files)

3 scp (backup set)


backup backup
set set

48 Copyright © 2020, Oracle and/or its affiliates


10. RMAN | Cross-Platform Transportable PDB

 Different version >= 12.1  Physical


 Same architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: long
DBCS

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

local XML XML local


storage file file storage
3 scp (XML files)

3 scp (backup set)


full full
backup backup

49 Copyright © 2020, Oracle and/or its affiliates


11. RMAN | Cross-Platform Transportable PDB Inconsistent Backups

 Different version >= 12.2  Physical


 Same architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: short
DBCS

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

local backup XML backup XML local


storage 7 scp (XML files) storage
level 1 file level 1 file
7 scp (final backup level 1)

2 scp (backup level 0)


backup backup
level 0 4 create & apply level 0
level 1 backups

50 Copyright © 2020, Oracle and/or its affiliates


12. RMAN | Duplicate from an Active Database

 Same version  Physical


 Same architecture  Online
 Same endian format  SE, EE
 Compatible character set  Downtime: long

DBCS

1 create auxiliary instance


2 rman DUPLICATE
PDB19c PDB19c

51 Copyright © 2020, Oracle and/or its affiliates


13. RMAN | Backup & Restore

 Same version  Physical


 Same architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: long
DBCS

PDB19c

PDB19c

1 close PDB
4 rman RESTORE

2 rman BACKUP
backup
3 copy backup

local object storage


storage backup

52 Copyright © 2020, Oracle and/or its affiliates


RMAN | Backup & Restore

 Same version  Physical


 Same architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: long
DBCS

PDB19c

PDB19c

1 close PDB 3 rman RESTORE

2 rman BACKUP
backup

Database Backup Cloud Service object storage

53 Copyright © 2020, Oracle and/or its affiliates


Mulitetenant Architecture

Unplug / Plug Remote Clone Refreshable Clone PDB Relocate

10110101

14. Unplug & Plug


15. Remote Cloning
16. Remote Hot Cloning
17. PDB Refreshable Clone
18. PDB Relocate

54 Copyright © 2020, Oracle and/or its affiliates


Unplug / Plug
14. Unplug & Plug | PDB

 Different version >= 12.1  Physical


 Same architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: short
DBCS

PDB12.1 PDB19c

1 close PDB 5 upgrade PDB


6 open PDB

2 unplug PDB 4 plug in PDB

local XML 3 scp (xml file) XML local


storage file 3 scp (data files) + data storage

55 Copyright © 2020, Oracle and/or its affiliates


Unplug & Plug | non-CDB

 Different version >= 12.1  Physical


 Different architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: short
DBCS

nonCDB12.1 PDB19c
5 upgrade PDB

1 DB read only 6 noncdb_to_pdb.sql

7 open PDB

2 DBMS_PDB.DESCRIBE
4 plug in nonCDB

local XML 3 scp (xml file) XML local


storage file 3 scp (data files) + data storage

56 Copyright © 2020, Oracle and/or its affiliates


Remote Clone
15. Remote Cloning | PDB

 Different version >= 12.1  Physical


 Same architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: short DBCS

PDB12.1 PDB19c
3 create PDB clone

2 PDB read only 4 upgrade PDB


5 open PDB
1 create DB link

57 Copyright © 2020, Oracle and/or its affiliates


Remote Cloning | non-CDB

 Different version >= 12.1  Physical


 Different architecture  Offline
 Same endian format  SE, EE
 Compatible character set  Downtime: short DBCS

3 create PDB clone


PDB19c
4 upgrade PDB

5 noncdb_to_pdb.sql
nonCDB12.1
6 open PDB
2 DB read only
1 create DB link

58 Copyright © 2020, Oracle and/or its affiliates


Remote Clone
16. Remote Hot Cloning | PDB

 Different version >= 12.2  Physical


 Same architecture  Online
 Same endian format  SE, EE
 Compatible character set  Downtime: short DBCS

PDB12.2 PDB19c
2 create PDB clone
3 upgrade PDB
4 open PDB
1 create DB link

59 Copyright © 2020, Oracle and/or its affiliates


Remote Hot Cloning | non-CDB

 Different version >= 12.2  Physical


 Different architecture  Online
 Same endian format  SE, EE
 Compatible character set  Downtime: short DBCS

2 create PDB clone


PDB19c
3 upgrade PDB

4 noncdb_to_pdb.sql
nonCDB12.2
5 open PDB

1 create DB link

60 Copyright © 2020, Oracle and/or its affiliates


Refreshable Clone
17. PDB Refreshable Clone
10110101

 Different version >= 12.2  Physical


 Same architecture  Online
 Same endian format  SE, EE
 Compatible character set  Downtime: 1min DBCS

create pluggable database PDBCLOUD from PDBPREM@DBLINK refresh mode every 1 minutes;

PDB12.2 3 refresh (manual, auto) PDB19c


2 create PDB refresh

1011010100101 4 upgrade PDB


5 open PDB
1 create DB link

61 Copyright © 2020, Oracle and/or its affiliates


PDB Relocate
18. PDB Relocate

 Different version >= 12.2  Physical


 Same architecture  Online
 Same endian format  SE, EE
 Compatible character set  Downtime: short DBCS

(Production) Migration?

PDB12.2.0.1 PDB19c
2 create PDB relocate
3 upgrade PDB
4 open PDB
1 create DB link

62 Copyright © 2020, Oracle and/or its affiliates


PDB Relocate | AVAILABILITY MAX

 Same version >= 12.2  Physical


 Same architecture  Online
 Same endian format  SE, EE
 Compatible character set  Downtime: zero DBCS

PDB19c PDB19c
2 create PDB relocate
AVAILABILITY MAX

1 create DB link

63 Copyright © 2020, Oracle and/or its affiliates


Further Methods

SQL Developer

64 Copyright © 2020, Oracle and/or its affiliates


SQL Developer
Further Methods

 Different version  Logical  Small amount of data


 Different architecture  Online  Limited number of objects
 Different endian format  SE, EE  Flat files
 Different character set  Downtime: min/hrs

19. SQL Developer Database Copy Utility


20. SQL Developer Cart Utility
21. SQL Developer Drag and Drop Option
22. SQL Developer Export and Import Wizard
23. SQL*Loader
24. DBMS_CLOUD COPY_DATA & CREATE_EXTERNAL_TABLE - Autonomous
25. DB Link & Create Table As Statement (CTAS)
65 Copyright © 2020, Oracle and/or its affiliates
SQL*Loader

data
files
SQL*Loader
control
file

log bad discard


file files files

66 Copyright © 2020, Oracle and/or its affiliates


Agenda

1 Oracle Database in Oracle Cloud


2 Considerations for Cloud Migration
3 Automation Tools
4 Migration Methods
5 Decision Tree for Migration Methods

67 Copyright © 2020, Oracle and/or its affiliates


Summary
category migration_method version architecture endian_format character_set data_transfer source_availability edition downtime min_version

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

*faster than Unplug/Plug or Remote Cloning for larg databases


68 Copyright © 2020, Oracle and/or its affiliates
migrate to?
Review the Oracle documentation:
Autonomous DBCS  Prerequisites
 Restrictions
downtime? target
character set?
 Recommendations
long zero
different compatible Testing! Testing! Testing!
Data Pump Golden Gate

source
downtime? endian format?

long zero
big endian little endian

Data Pump Golden Gate

downtime? downtime?

long short zero long short zero

Data Pump source


CONVERT
Data Pump Transportable TBS
Golden Gate source release level?
Cross-Platform
TBS Backup Sets release level?
Cross-Platform
TBS Backup Sets RMAN
Duplicate <=12.1 >=12.2

RMAN <=11.2 >=12.1 >=12.2 Golden Gate Golden Gate


Backup/Restore
Transportable TBS Transportable TBS Transportable TBS
Data Guard Data Guard

Transportable PDB Transportable PDB PDB


Refreshable Clone
PDB PDB
Unplug/Plug Unplug/Plug PDB Relocate
PDB PDB
• Long: Time needed for Data Pump conventional export and import for full backup & restore Remote Clone Remote Clone

• 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

69 Copyright © 2020, Oracle and/or its affiliates


10 Series Blog

https://database-heartbeat.com/category/database-migration/

Part 1/10: Why to Migrate your Oracle Database to Oracle Cloud?


Part 2/10: Introduction to Oracle Database Cloud Services
Part 3/10: Oracle Database Migration Considerations
Part 4/10: Automation Tools and Maximum Availability Architecture Migration Methods
Part 5/10: Migration Methods using Data Pump
Part 6/10: Migration Methods using RMAN
Part 7/10: Migration Methods using Multitenant Architecture
Part 8/10: Migration Tools and Methods for Small Amount of Data
Part 9/10: Migrating Oracle Databases from AWS to Oracle Cloud
Part 10/10: Summary and a Migration Decision Tree

70 Copyright © 2020, Oracle and/or its affiliates


Further Reading

• Move to the Oracle Cloud


- oracle.com/goto/move
• Cloud Migration Advisor
- https://www.oracle.com/webfolder/s/assets/webtool/cloud-migration-advisor/index.html
• Oracle Architecture Center
- https://docs.oracle.com/en/solutions/
• Oracle Database Cloud Migration Methods
- https://www.oracle.com/database/technologies/cloud-migration.html#migration-methods
• Migrating Databases to the Cloud
- https://docs.cloud.oracle.com/en-us/iaas/Content/Database/Tasks/migrating.htm
• Oracle Zero Downtime Migration
- https://www.oracle.com/database/technologies/rac/zdm.html
- https://dohdatabase.com/2020/07/06/zdm/

71 Copyright © 2020, Oracle and/or its affiliates


Thank you
Sinan Petrus Toma

72 Copyright © 2020, Oracle and/or its affiliates


Our mission is to help people see
data in new ways, discover insights,
unlock endless possibilities.

You might also like