SlideShare a Scribd company logo
Virtual Classroom Series
Copyright © 2021, Oracle and/or its affiliates
1
Migrating Very Large Databases
Photo
by
Rhys
Moult
on
Unsplash
2 Copyright © 2021, Oracle and/or its affiliates
ROY SWONGER
Vice President
Database Upgrade, Utilities & Patching
royfswonger
@royfswonger
3 Copyright © 2021, Oracle and/or its affiliates
MIKE DIETRICH
Distinguished Product Manager
Database Upgrade and Migrations
mikedietrich
@mikedietrichde
https://mikedietrichde.com
4 Copyright © 2021, Oracle and/or its affiliates
DANIEL OVERBY HANSEN
Senior Principal Product Manager
Cloud Migrations
dohdatabase
@dohdatabase
https://dohdatabase.com
5 Copyright © 2021, Oracle and/or its affiliates
RODRIGO JORGE
Senior Principal Product Manager
Database Patching and Upgrade
rodrigoaraujorge
@rodrigojorgedba
https://dbarj.com.br/en
6 Copyright © 2021, Oracle and/or its affiliates
Webinar | Get The Slides
https://MikeDietrichDE.com/slides
Webinar | Upcoming
Copyright © 2021, Oracle and/or its affiliates
7
https://go.oracle.com/LP=114938?elqCampaignId=302203
Recorded Web Seminars
https://MikeDietrichDE.com/videos
Copyright © 2021, Oracle and/or its affiliates
8
Copyright © 2021, Oracle and/or its affiliates
9
INTRODUCTION
Copyright © 2021, Oracle and/or its affiliates
10
What is very large?
Copyright © 2021, Oracle and/or its affiliates
11
It depends ...
Copyright © 2021, Oracle and/or its affiliates
12
Source and target system's Endianness?
Endianness | The Basics
Copyright © 2021, Oracle and/or its affiliates
13
Source: https://en.wikipedia.org/wiki/Endianness
Big-endian Little-endian
Endianness | Platforms
Copyright © 2021, Oracle and/or its affiliates
14
Big-endian Little-endian
• AIX-Based Systems (64-bit)
• Apple Mac OS
• HP-UX (64-bit)
• HP-UX IA (64-bit)
• IBM Power Based Linux
• IBM zSeries Based Linux
• Linux OS (S64)
• Solaris[tm] OE (32-bit)
• Solaris[tm] OE (64-bit)
• Apple Mac OS (x86-64)
• HP IA Open VMS
• HP Open VMS
• HP Tru64 UNIX
• Linux IA (32-bit)
• Linux IA (64-bit)
• Linux x86 64-bit
• Microsoft Windows IA (32-bit)
• Microsoft Windows IA (64-bit)
• Microsoft Windows x86 64-bit
• Solaris Operating System (x86)
• Solaris Operating System (x86-64)
Endianness | Platform IDs
Copyright © 2021, Oracle and/or its affiliates
15
SELECT PLATFORM_ID, PLATFORM_NAME, ENDIAN_FORMAT
FROM V$TRANSPORTABLE_PLATFORM
ORDER BY PLATFORM_ID;
PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT
----------- ---------------------------------------- --------------
1 Solaris[tm] OE (32-bit) Big
2 Solaris[tm] OE (64-bit) Big
3 HP-UX (64-bit) Big
4 HP-UX IA (64-bit) Big
5 HP Tru64 UNIX Little
6 AIX-Based Systems (64-bit) Big
...
16 Copyright © 2021, Oracle and/or its affiliates
Endianness | Common Scenario
Big Endianness to little Endianness platforms
Convert
Copyright © 2021, Oracle and/or its affiliates
17
Upgrade included?
Copyright © 2021, Oracle and/or its affiliates
18
Downtime requirement?
Copyright © 2021, Oracle and/or its affiliates
19
Conversion to Multitenant?
Copyright © 2021, Oracle and/or its affiliates
20
Which one is the best technique?
Copyright © 2021, Oracle and/or its affiliates
21
It depends ...
Migration | Techniques
Simplicity Downtime
Data Pump
TTS
FTEX
Data Guard
RMAN OGG
Copyright © 2021, Oracle and/or its affiliates
23
same
ENDIAN
migration technique
RMAN
Data
Guard
Golden
Gate
Trans-
portable
Incremental | Concept
Copyright © 2021, Oracle and/or its affiliates
24
Source
database
Target
database
RMAN> BACKUP INCREMENTAL
LEVEL 0 ...
Level 0
Level 0
RMAN> RESTORE DATABASE ...
RMAN> BACKUP INCREMENTAL
LEVEL 1 ...
Level 1
RMAN> RECOVER DATABASE ...
Downtime
RMAN> BACKUP INCREMENTAL
LEVEL 1 ...
Level 1
RMAN> RECOVER DATABASE ...
25 Copyright © 2021, Oracle and/or its affiliates
Incremental | Benefits
• Simple and easy
• Well-known process
• Use existing backups
• Independent of file system,
raw devices and ASM
• Some cross-platform capabilities
Incremental | Procedure
Copyright © 2021, Oracle and/or its affiliates
26
SOURCE DATABASE TARGET DATABASE
backup incremental level 0 database ... ;
restore database;
backup incremental level 1 database ... ;
recover database;
DOWNTIME
backup incremental level 1 database ... ;
recover database;
alter database open resetlogs;
Copyright © 2021, Oracle and/or its affiliates
27
Incremental backups are useful when there is no
SQL*Net connectivity between source and target
Copyright © 2021, Oracle and/or its affiliates
28
Incremental backups are useful when source
database release can't be installed on target host
Pro tip: Any release of RMAN can restore
and recover a previous release backup
Block Change Tracking is recommended
to speed up incremental backups
29 Copyright © 2021, Oracle and/or its affiliates
Pro tip: BCT is an Enterprise Edition feature, but requires
Active Data Guard if enabled on standby database
RMAN Compression can significantly
reduce the size and duration of the backup
30 Copyright © 2021, Oracle and/or its affiliates
Pro tip: Most compression algorithms
require Advanced Compression Option
Secure your RMAN backup with
TDE Tablespace Encryption or RMAN Encryption
31 Copyright © 2021, Oracle and/or its affiliates
Pro tip: Requires Advanced Security Option
Using multisection backups is important
in databases with bigfile tablespaces
32 Copyright © 2021, Oracle and/or its affiliates
Pro tip: The keyword SECTION SIZE
controls the use of multisection backups
To recover the latest changes use
an incremental backup or archive logs
33 Copyright © 2021, Oracle and/or its affiliates
Copyright © 2021, Oracle and/or its affiliates
34
What about upgrade?
Copyright © 2021, Oracle and/or its affiliates
35
RMAN can restore and recover from
backups made in a previous release
Pro tip: The database must be opened
immediately in UPGRADE mode and upgraded
Incremental | Upgrade
Copyright © 2021, Oracle and/or its affiliates
36
11.2.0.4
19c
RMAN> BACKUP INCREMENTAL
LEVEL 1 ...
Level 1
Downtime
RMAN> RECOVER DATABASE ...
SQL> ALTER DATABASE OPEN RESETLOGS UPGRADE;
Upgrade
Incremental | AutoUpgrade
Copyright © 2021, Oracle and/or its affiliates
37
SOURCE DATABASE TARGET DATABASE
backup incremental level 0 database ... ;
restore database;
java -jar autoupgrade.jar -mode analyze
DOWNTIME
java -jar autoupgrade.jar -mode analyze
java -jar autoupgrade.jar -mode fixups
backup incremental level 1 database ... ;
recover database;
alter database open resetlogs upgrade;
java -jar autoupgrade.jar -mode upgrade
Copyright © 2021, Oracle and/or its affiliates
38
What about PDB conversion?
Copyright © 2021, Oracle and/or its affiliates
39
Convert to PDB after migration (and upgrade)
using noncdb_to_pdb.sql
40 Copyright © 2021, Oracle and/or its affiliates
Cloning a non-CDB directly
into a CDB (NON$CDB cloning)
is not recommended for large databases
Copyright © 2021, Oracle and/or its affiliates
41
Can you offload the work
from the source database?
Copyright © 2021, Oracle and/or its affiliates
42
Yes, you can perform the backups
on a standby database
Copyright © 2021, Oracle and/or its affiliates
43
Or simly re-use any backups that
are being taken already
Copyright © 2021, Oracle and/or its affiliates
44
Your target database must
be protected by Data Guard?
Copyright © 2021, Oracle and/or its affiliates
45
You can restore source data files on to
future standby database in advance
Incremental | Data Guard
Copyright © 2021, Oracle and/or its affiliates
46
Level 0
Downtime
Level 1
Target
standby
Target
primary
Source
database
Level 0
Level 0
Level 1
Level 1
SQL> ALTER DATABASE OPEN RESETLOGS;
Archive
Archive
Configure:
• redo transport
• Redo apply
RMAN> RECOVER DATABASE ...
Copyright © 2021, Oracle and/or its affiliates
47
Your target database must
have a valid backup before go-live?
Copyright © 2021, Oracle and/or its affiliates
48
The backup pieces used by the migration,
can be used for disaster recovery as well
Incremental | Backup
Copyright © 2021, Oracle and/or its affiliates
49
BEFORE AFTER
Level 1
Level 0 Level 1
Archive Archive Archive Archive
Level 0
Archive Archive Archive
Crash
Restore
Copyright © 2021, Oracle and/or its affiliates
50
It works even if you upgraded the database
Copyright © 2021, Oracle and/or its affiliates
51
It does not work if you also converted to a PDB
52 Copyright © 2021, Oracle and/or its affiliates
Following a PDB conversion, new backups
of the data files are required before go-live
Copyright © 2021, Oracle and/or its affiliates
53
Your target database must be RAC?
Copyright © 2021, Oracle and/or its affiliates
54
No problem, you can even restore
a single instance to a RAC
55 Copyright © 2021, Oracle and/or its affiliates
To make recovery as easy as possible,
use shared storage as much as possible
56 Copyright © 2021, Oracle and/or its affiliates
Incremental | RAC
• Backups on shared storage enables
multi-instance recovery
• Recovery is easier with SPFile and
password file on shared storage
• For encrypted databases also place
keystore on shared storage
Copyright © 2021, Oracle and/or its affiliates
57
How about your fallback plan?
58 Copyright © 2021, Oracle and/or its affiliates
Incremental | Fallback
• To roll back (before go live):
Source environment is preserved
• To fall back (after go live):
Redo process in reverse order
• Unless database was upgraded:
Downgrade
• Unless database was converted:
Data Pump and GoldenGate
Copyright © 2021, Oracle and/or its affiliates
59
same
ENDIAN
migration technique
RMAN
Data
Guard
Golden
Gate
Trans-
portable
RMAN> DUPLICATE TARGET DATABASE
FOR STANDBY
FROM ACTIVE DATABASE ...
Data Guard | Concept
Copyright © 2021, Oracle and/or its affiliates
60
Source
database
Target
database
Switchover
Backup
RMAN> RESTORE STANDBY CONTROLFILE ... ;
RMAN> RESTORE DATABASE ... ;
RMAN> RECOVER DATABASE UNTIL ... ;
Configure:
• Redo transport
• Redo apply
Optional
61 Copyright © 2021, Oracle and/or its affiliates
Data Guard | Benefits
• Preferred solution
• Well-known, simple and easy
• Seamless switchover
with properly configured application
• Some cross-platform capabilities
Source Oracle Home
is needed on target host
62 Copyright © 2021, Oracle and/or its affiliates
Data Guard | Platform Certification
1. Migrate database to new hardware
and upgrade from 11.2.0.4 to 19c
2. Target host must run Oracle Linux 8
3. To use Data Guard, you must install
Oracle Database 11.2.0.4 on target host
4. Oracle Database 11.2.0.4 is
not certified on Oracle Linux 8
Data Guard not possbile
Copyright © 2021, Oracle and/or its affiliates
64
Do you need the same platform
on source and target host?
Data Guard | Heterogeneous
Copyright © 2021, Oracle and/or its affiliates
65
Redo
apply
Primary
database
Standby
database
Little Endian | Linux Standby
Copyright © 2021, Oracle and/or its affiliates
66
Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration (Doc ID 413484.1)
Little Endian | Linux Standby
Copyright © 2021, Oracle and/or its affiliates
67
SQL> SELECT platform_name, endian_format
FROM v$transportable_platform
WHERE endian_format='Little';
PLATFORM_NAME ENDIAN_FORMAT
____________________________________ ________________
Apple Mac OS (x86-64) Little
HP IA Open VMS Little
HP Open VMS Little
HP Tru64 UNIX Little
Linux IA (32-bit) Little
Linux IA (64-bit) Little
Linux x86 64-bit Little
Microsoft Windows IA (32-bit) Little
Microsoft Windows IA (64-bit) Little
Microsoft Windows x86 64-bit Little
Solaris Operating System (x86) Little
Solaris Operating System (x86-64) Little
SQL*Net connectivity is required
between source and target database
68 Copyright © 2021, Oracle and/or its affiliates
RMAN Compression can reduce the size
and duration of the backup significantly
69 Copyright © 2021, Oracle and/or its affiliates
Pro tip: Most compression algorithms
require Advanced Compression Option
Secure your RMAN backup with
TDE Tablespace Encryption or RMAN Encryption
70 Copyright © 2021, Oracle and/or its affiliates
Pro tip: Requires Advanced Security Option
Using multisection backups is important
in databases with bigfile tablespaces
71 Copyright © 2021, Oracle and/or its affiliates
Pro tip: The keyword SECTION SIZE
controls the use of multisection backups
Redo apply,
TB/Day 11.2.0.4 12.1.0.2 12.2
MIRA 2x
12.2
MIRA 4x
12.2
Batch 57 57 57 115 226
OLTP 14 15 15 29 60
REDO APPLY
benchmark
Source: Redo Apply Best Practices – Oracle Data Guard and Active Data Guard
72 Copyright © 2021, Oracle and/or its affiliates
How To Calculate The Required Network Bandwidth
Transfer Of Redo In Data Guard Environments (Doc ID 736755.1)
Connection,
Gbps 11.2.0.4 12.1.0.2 12.2
MIRA 2x
12.2
MIRA 4x
12.2
Batch 57 / 6 57 / 6 57 / 6 115 / 11 226 / 22
OLTP 14 / 2 15 / 2 15 / 2 29 / 3 60 / 6
TRANSPORT AND APPLY
benchmark
Source: Redo Apply Best Practices – Oracle Data Guard and Active Data Guard
73 Copyright © 2021, Oracle and/or its affiliates
redo
Consider compressing redo when using
very slow connections
74 Copyright © 2021, Oracle and/or its affiliates
Pro tip: Requires Advanced
Compression Option
Copyright © 2021, Oracle and/or its affiliates
75
What about upgrade?
Copyright © 2021, Oracle and/or its affiliates
76
Downtime is required to upgrade
database after switchover
Final
synchronization
Data Guard | Upgrade
Copyright © 2021, Oracle and/or its affiliates
77
Source
11.2.0.4
Target
11.2.0.4
Downtime
Upgrade
Disconnect
standby
Target
19c
Data Guard | AutoUpgrade
Copyright © 2021, Oracle and/or its affiliates
78
SOURCE DATABASE TARGET DATABASE
java -jar autoupgrade.jar -mode analyze
DOWNTIME ddddd
alter system flush redo to ... confirm apply;
recover managed standby database cancel;
recover standby database;
alter database recover managed standby database finish;
alter database activate physical standby database;
alter database open;
java -jar autoupgrade.jar -mode deploy
Copyright © 2021, Oracle and/or its affiliates
79
Or use a Transient Logical Standby database
for rolling upgrade using DBMS_ROLLING
Pro tip: Watch How Low Can You Go?
Zero Downtime Operations for details
Copyright © 2021, Oracle and/or its affiliates
80
What about PDB conversion?
Copyright © 2021, Oracle and/or its affiliates
81
Convert to PDB after migration (and upgrade)
using noncdb_to_pdb.sql
Copyright © 2021, Oracle and/or its affiliates
82
Can you offload the work
from the source database?
Copyright © 2021, Oracle and/or its affiliates
83
Yes, you can. Instantiate the
standby database from a backup
Copyright © 2021, Oracle and/or its affiliates
84
Your target database must
be protected by Data Guard?
Copyright © 2021, Oracle and/or its affiliates
85
You can build the future
standby database in advance
and connect it as a cascading standby
Data Guard | Cascading Standby
Copyright © 2021, Oracle and/or its affiliates
86
Downtime
Future
standby
Target
database
Source
database
Redo apply
Redo apply
Optinally,
upgrade
Copyright © 2021, Oracle and/or its affiliates
87
Your target database must
have a valid backup before go-live?
Copyright © 2021, Oracle and/or its affiliates
88
Before go-live perform level 0 backup
of the target database
Copyright © 2021, Oracle and/or its affiliates
89
It works even if you upgrade the database
Copyright © 2021, Oracle and/or its affiliates
90
It does not work if you also convert to PDB
91 Copyright © 2021, Oracle and/or its affiliates
Following a PDB conversion new backups
of the data files are required before go-live
Copyright © 2021, Oracle and/or its affiliates
92
Your target database must be RAC?
Copyright © 2021, Oracle and/or its affiliates
93
No problem, your standby database
can be configured as a RAC database
Copyright © 2021, Oracle and/or its affiliates
94
How about your fallback plan?
95 Copyright © 2021, Oracle and/or its affiliates
Data Guard | Fallback
• To roll back (before go live):
Source database is untouched
• To fall back (after go live):
Switchover
• Unless database was upgraded:
Downgrade
• Unless database was converted:
Data Pump and GoldenGate
Copyright © 2021, Oracle and/or its affiliates
96
cross
ENDIAN
migration technique
RMAN
Data
Guard
Golden
Gate
Trans-
portable
97 Copyright © 2021, Oracle and/or its affiliates
Transport | Concept
Unplug and plugin data tablespaces
Migrate meta information from dictionary
TBS1
TBS2
TBS1
TBS2
Transport | Concept
Copyright © 2021, Oracle and/or its affiliates
98
DATA
Export with
Data Pump
Copy
data files
SYSTEM
99 Copyright © 2021, Oracle and/or its affiliates
Transport | Benefits
Endianness independent
Direct migration to same or higher version
Direct migration into CDB architecture
Transport | Convert
Copyright © 2021, Oracle and/or its affiliates
100
RMAN DBMS_FILE_TRANSFER
Out-of-place conversion
2 x disk space needed
Supported in newest version of Perl scripts
In-flight conversion
1 x disk space needed
Not supported in Perl scripts version 4
Transport
Methods
Copyright © 2021 Oracle and/or its affiliates.
Photo
by
Fahrul
Azmi
on
Unsplash
DATA
SYSTEM
DATA
Migration | FTEX plus Incremental Backups
Copyright © 2021, Oracle and/or its affiliates
102
New, empty
19c PDB
Source database
12.1.0.2
Tablespaces
Different
endian format
SYSTEM
Level 0 imagefile backup
Data Pump
Full Transportable
Export/Import
Tablespace plug-in
Meta data transfer
(users, tables, indexes, triggers, PL/SQL ...)
Level 1 incremental backup
Set read-only
Convert
data file
on restore
Final
103 Copyright © 2021, Oracle and/or its affiliates
Migration | Oracle E-Business Suite
For EBS cross platform migrations to Oracle 19c, please see:
• MOS 2674405.1
Using Transportable Tablespaces to Migrate Oracle E-Business Suite Release 12.2 Using Oracle
Database 19c Enterprise Edition On a Multitenant Environment)
• Blog post
Transport
Checklist
Copyright © 2021 Oracle and/or its affiliates.
Photo
by
Sebastian
Herrmann
on
Unsplash
105 Copyright © 2021, Oracle and/or its affiliates
Transportable | Starter Checklist
Database Creation
Backup / Recovery
TDE
PERL Scripts
Target database requirements
• COMPATIBLE must be the same or higher
Target database requirements with workarounds
• Identical character set
• Identical national character set
• Identical time zone (only with TIMESTAMP WITH LOCAL TIME ZONE)
• Identical time zone file version (only with TIMESTAMP WITH TIME
ZONE)
106 Copyright © 2021, Oracle and/or its affiliates
Transportable | Starter Checklist
Database Creation
Backup / Recovery
TDE
PERL Scripts
To determine character set:
Convert source database to Unicode with DMU
Other Character set workarounds
SQL> select * from nls_database_parameters;
107 Copyright © 2021, Oracle and/or its affiliates
Transportable | Starter Checklist
Database Creation
Backup / Recovery
TDE
PERL Scripts
Database 12.2 and higher
• PDB can use different character set
Recommendation
• Keep production CDB on AL32UTF8
• Provision temporary CDB with desired character set
• Create new empty PDB in temporary CDB
• Clone custom PDB to production CDB
108 Copyright © 2021, Oracle and/or its affiliates
Transportable | Starter Checklist
Database Creation
Backup / Recovery
TDE
PERL Scripts
To determine database time zone file version:
If source and target database time zone file version doesn't match
• Tables with TSTZ are skipped
• Import using Data Pump afterwards
Database time zone file version is only relevant for columns of
TIMESTAMP WITH TIME ZONE
How to create a database with a non-default time zone file version
Documentation
SQL> select * from v$timezone_file;
109 Copyright © 2021, Oracle and/or its affiliates
Transportable | Starter Checklist
Database Creation
Backup / Recovery
TDE
PERL Scripts
Enable Block Change Tracking on source for incremental backups
• Conversion on destination is usually faster than on source
• PERL scripts will do the conversion
• Requires
• Enterprise Edition (on-prem)
• Enterprise Edition Extreme Performance (DBCS)
• Exadata
SQL> SELECT status, filename FROM V$BLOCK_CHANGE_TRACKING;
SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;
110 Copyright © 2021, Oracle and/or its affiliates
Transportable | Starter Checklist
Database Creation
Backup / Recovery
TDE
PERL Scripts
TDE Encryption
• Not supported
• Only for same-Endianness migration
Workaround
• Decrypt before migration
• Reminder: Online decryption available since Oracle 12.2.0.1
111 Copyright © 2021, Oracle and/or its affiliates
Transportable | Starter Checklist
Database Creation
Backup / Recovery
TDE
PERL Scripts
RMAN Incremental Backups
• MOS Note: 2471245.1
V4 PERL Scripts to reduce Transportable Tablespace Downtime
using Cross Platform Incremental Backup
• Source: 10.2.0.3 or newer
• Target: 11.2.0.4 or newer
112 Copyright © 2021, Oracle and/or its affiliates
Transportable | Best Practices
Practice, practice, practice
• Start on small database
• Prove it works on production-size database
Automate
• To ensure consistency and avoid human error
Save all logs and output
• Data Pump, RMAN
Clean-up procedure
• In case of failure and rollback
• To repeat tests
• Offline source database afterwards
Copyright © 2021, Oracle and/or its affiliates
113
How about your fallback plan?
114 Copyright © 2021, Oracle and/or its affiliates
Transport | Fallback
• To roll back (before go live):
Source environment is preserved
• To fall back (after go live):
Reverse process back to source
• Unless database was upgraded:
Data Pump and GoldenGate
• Unless database was converted:
Data Pump and GoldenGate
Full Transportable Export Import
Step-by-step with PERL scripts
Photo
by
asoggetti
on
Unsplash
Copyright © 2021 Oracle and/or its affiliates.
Transport with Incremental Backups | 6 Phases
Setup
1
Prepare &
Level-0
2
Roll
Forward
3
Final
Incremental
Backup
4
Transport
5
Clean Up
6
Copyright © 2021 Oracle and/or its affiliates.
Phase 1 - Setup | Database Creation
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
COMPATIBLE equal or higher
Identical database character sets
Identical national character sets
Identical time zone versions
Identical database time zone setting
Create database or PDB
Phase 1 - Setup | Download PERL Scripts
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
MOS Note: 2471245.1 – V4 PERL Scripts
Phase 1 - Setup | Standard Method
Backup Convert
Copyright © 2021 Oracle and/or its affiliates.
Staging
RMAN backup and convert
xttdriver.pl -–backup
xttdriver.pl --restore
Phase 1 - Setup | Non-Supported Method
Backup
Convert
Copyright © 2021 Oracle and/or its affiliates.
DBMS_FILE_TRANSFER
xttdriver.pl -S
xttdriver.pl –G
No support with V4 PERL scripts
2 TB limitation
Phase 1 - Setup | Configure
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
xtt.properties
tablespaces=TBS1,TBS2
platformid=13
src_scratch_location=/NFS_backups/
dest_scratch_location=/NFS_backups/
dest_datafile_location=+DATA
asm_home=/u01/app/19/grid
asm_sid=+ASM1
parallel=16
rollparallel=2
Phase 2 - Prepare | Level 0 Backup
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
Staging
Level 0
Level 0
xttdriver.pl --backup
scp
res.txt
Phase 2 – Convert/Restore | Level 0 Backup
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
xttdriver.pl --restore
Level 0
Level 0
TBS1
TBS2
Staging
Phase 3 – Roll Forward | Level 1 Backup
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
Staging
Level 1
Level 1
xttdriver.pl --backup
res.txt
scp
Phase 3 – Convert/Restore/Merge | Level 1 Backup
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
xttdriver.pl --restore
Level 1
Level 1
TBS1
TBS2
Staging
Phase 3 – Repeat | Level 1 Backup/Convert/Restore/Merge
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
Staging
Level 1
Level 1
xttdriver.pl --backup xttdriver.pl --restore
Level 1
Level 1
TBS1
TBS2
scp
res.txt
Phase 4 – Final Level 1 | Read Only
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
Read Only
Read Only
Phase 4 – Final Level 1 | Backup/Convert/Restore/Merge
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
Staging
Level 1
Level 1
xttdriver.pl --backup xttdriver.pl --restore
Level 1
Level 1
TBS1
TBS2
Read Only
Read Only
scp
res.txt
Phase 5 – Transport | Full Transportable Export Import
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
TBS1
TBS2
Read Only
Read Only
$ impdp SYSTEM 
NETWORK_LINK=v121 
FULL=Y 
TRANSPORTABLE=ALWAYS 
TRANSPORT_DATAFILES='+DATA/tbs1.dbf'
TRANSPORT_DATAFILES='+DATA/tbs2.dbf'
Phase 6 - Cleanup | Validation
Copyright © 2021 Oracle and/or its affiliates.
TBS1
TBS2
TBS1
TBS2
Read Only
Read Only
RMAN Validation
Transport with Incremental Backups | Demo
Copyright © 2021, Oracle and/or its affiliates
131
Watch on YouTube
Data Guard | Transportable
Copyright © 2021, Oracle and/or its affiliates
132
Target
Primary
Target
Standby
Source
Tablespaces
Restore
Data Pump
Full Transportable
Export/Import
Tablespace plug-in
via redo apply
Redo
Data Guard | Transportable
Copyright © 2021, Oracle and/or its affiliates
133
Step by Step Process of Migrating non-CDBs and PDBs Using ASM for File Storage (Doc ID 1576755.1)
Copyright © 2021 Oracle and/or its affiliates.
230 Terabyte in less than 24 hours
PERL scripts in action at a top health care insurance
Photo
by
Austrian
National
Library
on
Unsplash
Customer Case | Health Care
Customer
• One of the top healthcare insurance providers in the United States
• Over 50,000 employees, over $50 BILLION annual revenue
Oracle Partner
• Centric Consulting, a management and technology consulting company
• Oracle Platinum Partner
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
Customer Case | Health Care
Source
• AIX 5.3, Oracle Database 11.2.0.3, DB on filesystem
Target
• Exadata running Oracle Linux, Database 12.1.0.2, RAC/ASM
Enterprise data warehouse & operational data store
• Critical for day-to-day operations
• Minimizing downtime is critical
• Data Guard for DR
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
Customer Case | Health Care
Huge, active database
• 230+ TB (and growing!)
• Generates ~1.2TB redo per hour
Initial attempts using Oracle GoldenGate were unsuccessful
• Could not keep up with massive redo generation
Earlier version (V.2) of PERL migrations scripts
• Did not handle addition of tablespaces during migration
• Single-threaded file transfer
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
Customer Case | Health Care
Single-threaded file transfer
• Use PARALLEL in xtt.properties
• Number of data files to be processed in parallel
Transfer was too slow during initial tests
• 100 MB/sec throughput
• For 230 TB: almost 27 days (!) just for the Prepare phase
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
Customer Case | Health Care
Workarounds
• 40 identical directories, each held a complete XTTS PERL script installation
• Distribute >530 tablespaces into 40 tablespace groups
• Run 40 jobs concurrently with PARALLEL=2, or 80 files at a time
Result: ~800 MB/sec throughput
• Reduced prepare phase from 27 days to 6 days
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
Customer Case | Health Care
Additional customizations
• Cross-check scripts to ensure all tablespaces were being migrated
• Custom scripts
• Automate 40 parallel script executions
• Data Pump import par file for the plug-in step
• Load balanced RMAN CONVERT
• Conversion on all four nodes in the Exadata
• Result: Over 230 TBs converted in under 10 hours
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
Customer Case | Health Care
Environment
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
IBM AIX Legacy Exadata X5-2 DR QA/Dev
Customer Case | Health Care
Migration and upgrade completed in one phase
• AIX to Linux
• 11.2.0.3 to 12.1.0.2
• Single instance to RAC
• File system to ASM
• 230+ TB
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
Customer Case | Health Care
Completed in an 18-hour READ ONLY window!
Downtime
Window
18 hours
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
Customer Case | Health Care
Get the latest version of the PERL scripts
Plan for the "unexpected"
Customize the process for VLDBs
• Otherwise, the Prepare Phase may take very long
Customer
Project 2017
Constraints
Preparation
Migration
Success?
Remarks
Copyright © 2021 Oracle and/or its affiliates.
Photo
by
Patrick
Hendry
on
Unsplash
PUSHING THE LIMITS
ExaCC migration
1500 databases with an ZDLRA
ExaCC Migration | Strategic Overview
Inc Backup
Restore/Recover
Transport
Rebuild Meta
Copyright © 2021 Oracle and/or its affiliates.
ExaCC Migration | Timeline
Backups
TTS
Meta
Restore Level 1
Restore Level 1
Restore Level 0
Copyright © 2021 Oracle and/or its affiliates.
Copyright © 2021 Oracle and/or its affiliates.
Migration Details
Part 1: The ZDLRA
ExaCC Migration | PERL Scripts
Inc Backup
Restore/Recover
Transport
Rebuild Meta
dbmigusera.pl
Customized PERL scripts
for Recovery Appliance
Copyright © 2021 Oracle and/or its affiliates.
ExaCC Migration | libra.so
Install most recent libra.so
• MOS Note: 2219812.1
ZDLRA: Download new sbt library
Copyright © 2021 Oracle and/or its affiliates.
ExaCC Migration | dbmigusera.pl
Download package dbmigusera.pl incl. xtt.properties
• MOS Note: 2460552.1 - Cross Platform Database Migration using ZDLRA
• Deploy package
Copyright © 2021 Oracle and/or its affiliates.
ExaCC Migration | xtt.properties
Customize xtt.properties
# SBT parameter configuration to be used for restore and recover operations
sbtlibparms="SBT_LIBRARY=/u01/app/oracle/product/12.2.0.1/dbhome_1/lib/libra.so, …')"
# The number of datafiles that will be restored / recovered in parallel.
resparallel=16
# The list of tablespaces to be migrated
ttsnames=T14_1,T14_2,T14_3,T14_4,T14_5,T14_6,T14_7,T14_8,T14_9,T14_10,T14_11
# The directory to which the datafiles will be restored
storageondest=+DATAC1/dbmig/datafile
sourceplatid=2
dbid=4173218531
retrycount=2
Copyright © 2021 Oracle and/or its affiliates.
ExaCC Migration | Level 0 Backup
Level 0
Backup
Restore/Recover
$ perl dbmigusera.pl --restore …
Copyright © 2021 Oracle and/or its affiliates.
ExaCC Migration | Level 1 Backup
Inc Backup
Restore/Recover
$ perl dbmigusera.pl --recover …
Copyright © 2021 Oracle and/or its affiliates.
Migration Details
Copyright © 2021 Oracle and/or its affiliates.
Part 2: Transportable Tablespaces to ExaCC
Restore/Recover
Inc Backup
ExaCC Migration | Transportable Tablespaces
Transport
Rebuild Meta
Custom TTS
Customized Transportable
Tablespaces Scripts
Copyright © 2021 Oracle and/or its affiliates.
Transport
New and advanced features
Copyright © 2021 Oracle and/or its affiliates.
Photo
by
Alexander
Andrews
on
Unsplash
Data Pump | Test Mode for Transportable Tablespaces
Test TTS/FTEX export without "read only"
• TTS_CLOSURE_CHECK = ON | OFF | FULL | TEST_MODE
NEW IN
19c
Copyright © 2021 Oracle and/or its affiliates.
DIRECTORY=DP_DIR
DUMPFILE=tts.dmp
LOGFILE=logfile.log
TTS_CLOSURE_CHECK=TEST_MODE
TRANSPORT_TABLESPACES=(TTS)
Data Pump | Keep Tablespaces Read-Only for TTS
Allow "read only" tablespaces for TTS import
• TRANSPORTABLE=NEVER|ALWAYS|KEEP_READ_ONLY|NO_BITMAP_REBUILD
Copyright © 2021 Oracle and/or its affiliates.
DIRECTORY=DP_DIR
DUMPFILE=tts.dmp
LOGFILE=logfile.log
TRANSPORT_DATAFILES='/CDB2/pdb1/tts.dbf'
TRANSPORTABLE=KEEP_READ_ONLY
TABLESPACE_NAME STATUS
------------------ ----------
SYSTEM ONLINE
SYSAUX ONLINE
UNDOTBS1 ONLINE
TEMP ONLINE
TTS READ ONLY
NEW IN
19c
160 Copyright © 2021, Oracle and/or its affiliates
Migration | ZDRLA
Learn the latest techniques using Recovery Appliance to simplify and speed up cross-
platform database migration activities, including moving from non-Multitenant to modern
Multitenant Database architectures.
MOS note
Cross Platform Database Migration using ZDLRA (Doc ID 2460552.1)
AskTOM Office Hours
Accelerate Cross-Platform Database Migration with Recovery Appliance
Transportable | Important MOS Notes
Copyright © 2021, Oracle and/or its affiliates
161
• Master Note for Transportable Tablespaces (TTS) -- Common Questions and Issues (Doc ID 1166564.1)
• Transportable Tablespace (TTS) Restrictions and Limitations: Details, Reference, and Version Where Applicable (Doc ID
1454872.1)
• V4 PERL Scripts to reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 2471245.1)
• Known Issues for Cross Platform Transportable Tablespaces XTTS (Doc ID 2311677.1)
• Cross Platform Database Migration using ZDLRA (Doc ID 2460552.1)
• 11G – Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 1389592.1)
• 12C – Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 2005729.1)
Copyright © 2021, Oracle and/or its affiliates
162
zero downtime
MIGRATION
technique
RMAN
Data
Guard
Golden
Gate
Trans-
portable
GoldenGate | Concept
Copyright © 2021, Oracle and/or its affiliates
163
Source
database
Target
database
GoldenGate
Configure extract
INSERT INTO ...
UPDATE ...
DELETE FROM ...
Initial load
Configure replicat
Optionally,
reverse replication
164 Copyright © 2021, Oracle and/or its affiliates
GoldenGate | Benefits
• True zero downtime
• Extremely flexible
• Cross-version and cross-architecture
• Cross-platform and cross-endian
• Test before go-live using
Flashback Database (Doc ID 966212.1) Pro tip: Active Data Guard
included in GoldenGate license
165 Copyright © 2021, Oracle and/or its affiliates
GoldenGate | Architecture
• SQL*Net connection between databases
• Alternatively, a distribution path between
two GoldenGate instances
• Compress trail files to reduce network load
• Example: Database generating 10 TB redo
• Trail files typically 30-40 % of redo
• Compress at least 1:4, most likely up to 1:8
• Result: 400 GB to 1000 GB trail files
166 Copyright © 2021, Oracle and/or its affiliates
GoldenGate | Initial load
If your initial load is a Data Pump import:
• Export or re-create public and other not exported objects
• Synonyms
• Database links
• ...
• Diagnostic and tuning related information
• AWR
• SQL Plan Baselines
• SQL Profiles
• SQL Patches
• ...
Copyright © 2021, Oracle and/or its affiliates
167
To strengthen security, you can encrypt
the GoldenGate trail files
Copyright © 2021, Oracle and/or its affiliates
168
GoldenGate requires
database minimal supplemental logging
which does not impose a significant overhead
169 Copyright © 2021, Oracle and/or its affiliates
GoldenGate | Considerations
• Target database time zone file version must
be equal to or higher than source
• Possibly patches are recommended on source database to support GoldenGate
• 11g
• 12c and newer
• DDL replication
• Truncate
• Sequences
SQL> select * from v$timezone_file;
Copyright © 2021 Oracle and/or its affiliates.
Can you use GoldenGate
on your database?
GoldenGate | Database Readiness
GoldenGate | Database Readiness
Copyright © 2021 Oracle and/or its affiliates.
SQL> select * from dba_goldengate_support_mode;
OWNER OBJECT_NAME SUPPORT_MODE
CO CUSTOMERS ID KEY
CO ORDERS ID KEY
CO ORDER_ITEMS FULL
CO PRODUCTS ID KEY
CO STORES ID KEY
SQL> select * from dba_goldengate_support_mode;
OWNER OBJECT_NAME SUPPORT_MODE
CO CUSTOMERS ID KEY
CO ORDERS ID KEY
CO ORDER_ITEMS FULL
CO PRODUCTS ID KEY
CO STORES ID KEY
GoldenGate | Database Readiness
Copyright © 2021 Oracle and/or its affiliates.
SUPPORT_MODE FULL ID KEY
PLSQL
INTERNAL
NONE
Pro tip: Visit the documentation
for more details
GoldenGate | Database Readiness
Copyright © 2021 Oracle and/or its affiliates.
SUPPORT_MODE FULL ID KEY
PLSQL
INTERNAL
NONE
Pro tip: Visit the documentation
for more details
GoldenGate | Database Readiness
Copyright © 2021 Oracle and/or its affiliates.
SUPPORT_MODE FULL ID KEY
PLSQL
INTERNAL
NONE
Pro tip: Visit the documentation
for more details
Copyright © 2021 Oracle and/or its affiliates.
GoldenGate | Database Readiness
What's wrong in this Oracle Database running 12.2?
Identify columns supported as of Oracle Database 18c ...
SQL> select * from dba_goldengate_support_mode;
OWNER OBJECT_NAME SUPPORT_MODE
CO CUSTOMERS ID KEY
CO ORDERS ID KEY
CO ORDER_ITEMS FULL
CO PRODUCTS ID KEY
CO STORES ID KEY
Copyright © 2021 Oracle and/or its affiliates.
GoldenGate | Database Readiness
Oracle Database 21c New Feature
SQL> select * from dba_goldengate_support_mode;
OWNER OBJECT_NAME SUPPORT_MODE DESCRIPTION
CO CUSTOMERS ID KEY A very good explanation
CO ORDERS ID KEY Another good explanation
CO ORDER_ITEMS FULL
CO PRODUCTS ID KEY A third explanation
CO STORES ID KEY Good explanation comes in
abundance these days
GoldenGate | Database Readiness
Copyright © 2021 Oracle and/or its affiliates.
For optimal performance all tables
should have primary keys or unique keys
GoldenGate | Database Readiness
Copyright © 2021 Oracle and/or its affiliates.
SQL> select * from dba_goldengate_not_unique;
OWNER TABLE_NAME BAD_COLUMN
IX AQ$_ORDERS_QUEUETABLE_L N
IX AQ$_STREAMS_QUEUE_TABLE_L N
SH SALES N
SH COSTS N
SH SUPPLEMENTARY_DEMOGRAPHICS N
SH CAL_MONTH_SALES_MV N
SH FWEEK_PSCAT_SALES_MV N
179 Copyright © 2021, Oracle and/or its affiliates
GoldenGate | Database Readiness
If the application maintains uniqueness,
but it is not enforced on the database,
use a KEYCOLS clause to let GoldenGate use it
Pro tip: For further information, read Ensuring
Row Uniqueness in Source and Target Tables
GoldenGate | Health Check
Generate report:
• Check prerequisites
• Database characteristics
• Find database objects of interest
• Extract/replicat statistics
• Check database readiness
180 Copyright © 2020, Oracle and/or its affiliates
GoldenGate | Health Check
Generate report by:
• Installing objects in database: ogghc_install.sql
• Execute health check: ogghc_run.sql
• Optionally, clean-up objects: ogghc_uninstall.sql
For GoldenGate MicroServices Architecture find the scripts:
/u01/app/ogg/oraclenn/lib/sql/healthcheck
181 Copyright © 2020, Oracle and/or its affiliates
Copyright © 2021, Oracle and/or its affiliates
182
How about upgrading?
Copyright © 2021, Oracle and/or its affiliates
183
GoldenGate can extract from one release,
and replicate into another
Pro tip: You can even migrate from very old
releases using multiple instances of GoldenGate
Copyright © 2021, Oracle and/or its affiliates
184
How about PDB conversion?
Copyright © 2021, Oracle and/or its affiliates
185
GoldenGate can replicate
from non-CDB directly into a PDB
Copyright © 2021, Oracle and/or its affiliates
186
Can I offload the work
from the source database?
Copyright © 2021, Oracle and/or its affiliates
187
Yes, you can extract from
a downstream database
GoldenGate | Downstream
Copyright © 2021, Oracle and/or its affiliates
188
Source
database
Target
database
Downstream
database
GoldenGate
Redo
transport Extract
Replicat
Copyright © 2021, Oracle and/or its affiliates
189
Your target database must
be protected by Data Guard?
Copyright © 2021, Oracle and/or its affiliates
190
After the initial load on the target database,
start building your Data Guard
GoldenGate | Data Guard
Copyright © 2021, Oracle and/or its affiliates
191
Source
database
Target
primary
Target
standby
GoldenGate
replication
Redo
apply
Optional
Copyright © 2021, Oracle and/or its affiliates
192
Your target database must
have a valid backup before go-live?
Copyright © 2021, Oracle and/or its affiliates
193
Perform and verify your backups
after initial load, but before switchover
GoldenGate | Backup
Copyright © 2021, Oracle and/or its affiliates
194
Source
database
Target
database
GoldenGate
replication
Level 0
Start
backup
Backup
completed
Copyright © 2021, Oracle and/or its affiliates
195
Your target database must be RAC?
Copyright © 2021, Oracle and/or its affiliates
196
No problem, GoldenGate can extract from
and replicate to a RAC database
Copyright © 2021, Oracle and/or its affiliates
197
How about your fallback plan?
GoldenGate | Fallback
Copyright © 2021, Oracle and/or its affiliates
198
Old
database
New
database
GoldenGate | Fallback
Copyright © 2021, Oracle and/or its affiliates
199
Bidirectional
replication
200 Copyright © 2021, Oracle and/or its affiliates
GoldenGate | Additional Resources
Certifications
GoldenGate 19.1: Using Oracle GoldenGate on Oracle Cloud Marketplace
OCI Marketplace: Oracle GoldenGate for Oracle
Oracle GoldenGate Best Practices: Instantiation from an Oracle Source Database (Doc ID
1276058.1)
GoldenGate | Technical Briefs
Oracle Database Migration with
an Oracle GoldenGate Hub Configuration
Zero Downtime Database Upgrade
Using Oracle GoldenGate
Oracle GoldenGate with Oracle RAC
Configuration Best Practices
Transparent Role Transitions With
Oracle Data Guard and Oracle GoldenGate
Copyright © 2021, Oracle and/or its affiliates
202
SUMMARY
Copyright © 2021, Oracle and/or its affiliates
203
Which one is the best technique?
Copyright © 2021, Oracle and/or its affiliates
204
It still depends ...
Migration | Techniques
Simplicity Downtime
TTS
FTEX
Data Guard
RMAN OGG
Webinar | Upcoming
Copyright © 2021, Oracle and/or its affiliates
206
https://go.oracle.com/LP=114938?elqCampaignId=302203
Recorded Web Seminars
https://MikeDietrichDE.com/videos/
https://dohdatabase.com/webinars/
207 Copyright © 2021, Oracle and/or its affiliates
YouTube | Oracle Database Upgrades and Migrations
• 100+ videos
• New videos every week
• No marketing
• No buzzword
• All tech
208 Copyright © 2021, Oracle and/or its affiliates
Link
THANK
YOU
Visit our blogs:
https://MikeDietrichDE.com
https://DOHdatabase.com
https://www.dbarj.com.br/en
THANK
YOU
Webinars:
https://MikeDietrichDE.com/videos
YouTube channel:
OracleDatabaseUpgradesandMigrations
THANK
YOU
DATA PUMP EXTREME
Deep Dive with Development
March 3, 2022 – 10:00h CET
THANK
YOU

More Related Content

What's hot

AOUG_11Nov2016_Challenges_with_EBS12_2
AOUG_11Nov2016_Challenges_with_EBS12_2AOUG_11Nov2016_Challenges_with_EBS12_2
AOUG_11Nov2016_Challenges_with_EBS12_2
Sean Braymen
 
Fusion Applications Bare Metal Provisioning - Lessons Learned
Fusion Applications Bare Metal Provisioning - Lessons LearnedFusion Applications Bare Metal Provisioning - Lessons Learned
Fusion Applications Bare Metal Provisioning - Lessons Learned
Andrejs Karpovs
 
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
Timothy Schubert
 

What's hot (20)

Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
 
Release and patching strategy
Release and patching strategyRelease and patching strategy
Release and patching strategy
 
Oracle Database Lifecycle Management
Oracle Database Lifecycle ManagementOracle Database Lifecycle Management
Oracle Database Lifecycle Management
 
AOUG_11Nov2016_Challenges_with_EBS12_2
AOUG_11Nov2016_Challenges_with_EBS12_2AOUG_11Nov2016_Challenges_with_EBS12_2
AOUG_11Nov2016_Challenges_with_EBS12_2
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015
 
Editioning use in ebs
Editioning use in  ebsEditioning use in  ebs
Editioning use in ebs
 
Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
Dg broker & client connectivity - High Availability Day 2015
Dg broker & client connectivity -  High Availability Day 2015Dg broker & client connectivity -  High Availability Day 2015
Dg broker & client connectivity - High Availability Day 2015
 
Oracle EBS R12.1.3_Installation_linux(64bit)_Pan_Tian
Oracle EBS R12.1.3_Installation_linux(64bit)_Pan_TianOracle EBS R12.1.3_Installation_linux(64bit)_Pan_Tian
Oracle EBS R12.1.3_Installation_linux(64bit)_Pan_Tian
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19cMaximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19c
 
Using VirtualBox - Learn Oracle Database 12c and EBS R12
Using VirtualBox - Learn Oracle Database 12c and EBS R12Using VirtualBox - Learn Oracle Database 12c and EBS R12
Using VirtualBox - Learn Oracle Database 12c and EBS R12
 
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
 
Oracle 12 Upgrade
Oracle 12 UpgradeOracle 12 Upgrade
Oracle 12 Upgrade
 
Automating Your Clone in E-Business Suite R12.2
Automating Your Clone in E-Business Suite R12.2Automating Your Clone in E-Business Suite R12.2
Automating Your Clone in E-Business Suite R12.2
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesOracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
 
Fusion Applications Bare Metal Provisioning - Lessons Learned
Fusion Applications Bare Metal Provisioning - Lessons LearnedFusion Applications Bare Metal Provisioning - Lessons Learned
Fusion Applications Bare Metal Provisioning - Lessons Learned
 
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
 
Oracle applications r12.2, ebr, online patching means lot of work for devel...
Oracle applications r12.2, ebr, online patching   means lot of work for devel...Oracle applications r12.2, ebr, online patching   means lot of work for devel...
Oracle applications r12.2, ebr, online patching means lot of work for devel...
 

Similar to 20618782218718364253 emea12 vldb

11158682984719608417 emea11 fallback
11158682984719608417 emea11 fallback11158682984719608417 emea11 fallback
11158682984719608417 emea11 fallback
Locuto Riorama
 
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Multitenant Full Deck Jan 2015 Cloud Team AJ LinkedinMultitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Arush Jain
 
Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databases
omnidba
 

Similar to 20618782218718364253 emea12 vldb (20)

11158682984719608417 emea11 fallback
11158682984719608417 emea11 fallback11158682984719608417 emea11 fallback
11158682984719608417 emea11 fallback
 
Oracle Database 12c para la comunidad GeneXus - Engineered for clouds
Oracle Database 12c para la comunidad GeneXus - Engineered for cloudsOracle Database 12c para la comunidad GeneXus - Engineered for clouds
Oracle Database 12c para la comunidad GeneXus - Engineered for clouds
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureOracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud Infrastructure
 
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewHA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
 
ODW 2021 - Automated patching and compliance to improve database security.pptx
ODW 2021 - Automated patching and compliance to improve database security.pptxODW 2021 - Automated patching and compliance to improve database security.pptx
ODW 2021 - Automated patching and compliance to improve database security.pptx
 
Data Guard 19c Data Guard 19c Data Guard 19c
Data Guard 19c Data Guard 19c Data Guard 19cData Guard 19c Data Guard 19c Data Guard 19c
Data Guard 19c Data Guard 19c Data Guard 19c
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Multitenant Full Deck Jan 2015 Cloud Team AJ LinkedinMultitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
Multitenant Full Deck Jan 2015 Cloud Team AJ Linkedin
 
con8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdfcon8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdf
 
oracle upgrade 2015_509_Swonger_ppt.pptx
oracle upgrade 2015_509_Swonger_ppt.pptxoracle upgrade 2015_509_Swonger_ppt.pptx
oracle upgrade 2015_509_Swonger_ppt.pptx
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
 
Oracle Data Protection - 2. část
Oracle Data Protection - 2. částOracle Data Protection - 2. část
Oracle Data Protection - 2. část
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021
 
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...
FOSDEM 2022 MySQL Devroom:  MySQL 8.0 - Logical Backups, Snapshots and Point-...FOSDEM 2022 MySQL Devroom:  MySQL 8.0 - Logical Backups, Snapshots and Point-...
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...
 
Database Upgrades Automation using Enterprise Manager 12c
Database Upgrades Automation using Enterprise Manager 12cDatabase Upgrades Automation using Enterprise Manager 12c
Database Upgrades Automation using Enterprise Manager 12c
 
Standard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & HowStandard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & How
 
Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databases
 
Oracle databáze - zkonsolidovat, ochránit a ještě ušetřit! (2. část)
Oracle databáze - zkonsolidovat, ochránit a ještě ušetřit! (2. část)Oracle databáze - zkonsolidovat, ochránit a ještě ušetřit! (2. část)
Oracle databáze - zkonsolidovat, ochránit a ještě ušetřit! (2. část)
 

Recently uploaded

一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
psavhef
 
The Future of Autonomous Vehicles | civilthings.com | Detailed information
The Future of Autonomous Vehicles | civilthings.com |  Detailed informationThe Future of Autonomous Vehicles | civilthings.com |  Detailed information
The Future of Autonomous Vehicles | civilthings.com | Detailed information
gettygaming1
 
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
amvovau
 

Recently uploaded (10)

Wondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to TellWondering if Your Mercedes EIS is at Fault Here’s How to Tell
Wondering if Your Mercedes EIS is at Fault Here’s How to Tell
 
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out HereWhy Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
Why Isn't Your BMW X5's Comfort Access Functioning Properly Find Out Here
 
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
一比一原版SDSU毕业证圣地亚哥州立大学毕业证成绩单如何办理
 
The Future of Autonomous Vehicles | civilthings.com | Detailed information
The Future of Autonomous Vehicles | civilthings.com |  Detailed informationThe Future of Autonomous Vehicles | civilthings.com |  Detailed information
The Future of Autonomous Vehicles | civilthings.com | Detailed information
 
gtyccccccccccccccccccccccccccccccccccccccccccccccccccccccc
gtycccccccccccccccccccccccccccccccccccccccccccccccccccccccgtyccccccccccccccccccccccccccccccccccccccccccccccccccccccc
gtyccccccccccccccccccccccccccccccccccccccccccccccccccccccc
 
Tyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEATTyre Industrymarket overview with examples of CEAT
Tyre Industrymarket overview with examples of CEAT
 
Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'Core technology of Hyundai Motor Group's EV platform 'E-GMP'
Core technology of Hyundai Motor Group's EV platform 'E-GMP'
 
Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.Essential Maintenance Tips For Commercial Vans.
Essential Maintenance Tips For Commercial Vans.
 
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
一比一原版BC毕业证波士顿学院毕业证成绩单如何办理
 
Advanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory SolutionsAdvanced Technology for Auto Part Industry Inventory Solutions
Advanced Technology for Auto Part Industry Inventory Solutions
 

20618782218718364253 emea12 vldb

  • 1. Virtual Classroom Series Copyright © 2021, Oracle and/or its affiliates 1 Migrating Very Large Databases Photo by Rhys Moult on Unsplash
  • 2. 2 Copyright © 2021, Oracle and/or its affiliates ROY SWONGER Vice President Database Upgrade, Utilities & Patching royfswonger @royfswonger
  • 3. 3 Copyright © 2021, Oracle and/or its affiliates MIKE DIETRICH Distinguished Product Manager Database Upgrade and Migrations mikedietrich @mikedietrichde https://mikedietrichde.com
  • 4. 4 Copyright © 2021, Oracle and/or its affiliates DANIEL OVERBY HANSEN Senior Principal Product Manager Cloud Migrations dohdatabase @dohdatabase https://dohdatabase.com
  • 5. 5 Copyright © 2021, Oracle and/or its affiliates RODRIGO JORGE Senior Principal Product Manager Database Patching and Upgrade rodrigoaraujorge @rodrigojorgedba https://dbarj.com.br/en
  • 6. 6 Copyright © 2021, Oracle and/or its affiliates Webinar | Get The Slides https://MikeDietrichDE.com/slides
  • 7. Webinar | Upcoming Copyright © 2021, Oracle and/or its affiliates 7 https://go.oracle.com/LP=114938?elqCampaignId=302203
  • 9. Copyright © 2021, Oracle and/or its affiliates 9 INTRODUCTION
  • 10. Copyright © 2021, Oracle and/or its affiliates 10 What is very large?
  • 11. Copyright © 2021, Oracle and/or its affiliates 11 It depends ...
  • 12. Copyright © 2021, Oracle and/or its affiliates 12 Source and target system's Endianness?
  • 13. Endianness | The Basics Copyright © 2021, Oracle and/or its affiliates 13 Source: https://en.wikipedia.org/wiki/Endianness Big-endian Little-endian
  • 14. Endianness | Platforms Copyright © 2021, Oracle and/or its affiliates 14 Big-endian Little-endian • AIX-Based Systems (64-bit) • Apple Mac OS • HP-UX (64-bit) • HP-UX IA (64-bit) • IBM Power Based Linux • IBM zSeries Based Linux • Linux OS (S64) • Solaris[tm] OE (32-bit) • Solaris[tm] OE (64-bit) • Apple Mac OS (x86-64) • HP IA Open VMS • HP Open VMS • HP Tru64 UNIX • Linux IA (32-bit) • Linux IA (64-bit) • Linux x86 64-bit • Microsoft Windows IA (32-bit) • Microsoft Windows IA (64-bit) • Microsoft Windows x86 64-bit • Solaris Operating System (x86) • Solaris Operating System (x86-64)
  • 15. Endianness | Platform IDs Copyright © 2021, Oracle and/or its affiliates 15 SELECT PLATFORM_ID, PLATFORM_NAME, ENDIAN_FORMAT FROM V$TRANSPORTABLE_PLATFORM ORDER BY PLATFORM_ID; PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT ----------- ---------------------------------------- -------------- 1 Solaris[tm] OE (32-bit) Big 2 Solaris[tm] OE (64-bit) Big 3 HP-UX (64-bit) Big 4 HP-UX IA (64-bit) Big 5 HP Tru64 UNIX Little 6 AIX-Based Systems (64-bit) Big ...
  • 16. 16 Copyright © 2021, Oracle and/or its affiliates Endianness | Common Scenario Big Endianness to little Endianness platforms Convert
  • 17. Copyright © 2021, Oracle and/or its affiliates 17 Upgrade included?
  • 18. Copyright © 2021, Oracle and/or its affiliates 18 Downtime requirement?
  • 19. Copyright © 2021, Oracle and/or its affiliates 19 Conversion to Multitenant?
  • 20. Copyright © 2021, Oracle and/or its affiliates 20 Which one is the best technique?
  • 21. Copyright © 2021, Oracle and/or its affiliates 21 It depends ...
  • 22. Migration | Techniques Simplicity Downtime Data Pump TTS FTEX Data Guard RMAN OGG
  • 23. Copyright © 2021, Oracle and/or its affiliates 23 same ENDIAN migration technique RMAN Data Guard Golden Gate Trans- portable
  • 24. Incremental | Concept Copyright © 2021, Oracle and/or its affiliates 24 Source database Target database RMAN> BACKUP INCREMENTAL LEVEL 0 ... Level 0 Level 0 RMAN> RESTORE DATABASE ... RMAN> BACKUP INCREMENTAL LEVEL 1 ... Level 1 RMAN> RECOVER DATABASE ... Downtime RMAN> BACKUP INCREMENTAL LEVEL 1 ... Level 1 RMAN> RECOVER DATABASE ...
  • 25. 25 Copyright © 2021, Oracle and/or its affiliates Incremental | Benefits • Simple and easy • Well-known process • Use existing backups • Independent of file system, raw devices and ASM • Some cross-platform capabilities
  • 26. Incremental | Procedure Copyright © 2021, Oracle and/or its affiliates 26 SOURCE DATABASE TARGET DATABASE backup incremental level 0 database ... ; restore database; backup incremental level 1 database ... ; recover database; DOWNTIME backup incremental level 1 database ... ; recover database; alter database open resetlogs;
  • 27. Copyright © 2021, Oracle and/or its affiliates 27 Incremental backups are useful when there is no SQL*Net connectivity between source and target
  • 28. Copyright © 2021, Oracle and/or its affiliates 28 Incremental backups are useful when source database release can't be installed on target host Pro tip: Any release of RMAN can restore and recover a previous release backup
  • 29. Block Change Tracking is recommended to speed up incremental backups 29 Copyright © 2021, Oracle and/or its affiliates Pro tip: BCT is an Enterprise Edition feature, but requires Active Data Guard if enabled on standby database
  • 30. RMAN Compression can significantly reduce the size and duration of the backup 30 Copyright © 2021, Oracle and/or its affiliates Pro tip: Most compression algorithms require Advanced Compression Option
  • 31. Secure your RMAN backup with TDE Tablespace Encryption or RMAN Encryption 31 Copyright © 2021, Oracle and/or its affiliates Pro tip: Requires Advanced Security Option
  • 32. Using multisection backups is important in databases with bigfile tablespaces 32 Copyright © 2021, Oracle and/or its affiliates Pro tip: The keyword SECTION SIZE controls the use of multisection backups
  • 33. To recover the latest changes use an incremental backup or archive logs 33 Copyright © 2021, Oracle and/or its affiliates
  • 34. Copyright © 2021, Oracle and/or its affiliates 34 What about upgrade?
  • 35. Copyright © 2021, Oracle and/or its affiliates 35 RMAN can restore and recover from backups made in a previous release Pro tip: The database must be opened immediately in UPGRADE mode and upgraded
  • 36. Incremental | Upgrade Copyright © 2021, Oracle and/or its affiliates 36 11.2.0.4 19c RMAN> BACKUP INCREMENTAL LEVEL 1 ... Level 1 Downtime RMAN> RECOVER DATABASE ... SQL> ALTER DATABASE OPEN RESETLOGS UPGRADE; Upgrade
  • 37. Incremental | AutoUpgrade Copyright © 2021, Oracle and/or its affiliates 37 SOURCE DATABASE TARGET DATABASE backup incremental level 0 database ... ; restore database; java -jar autoupgrade.jar -mode analyze DOWNTIME java -jar autoupgrade.jar -mode analyze java -jar autoupgrade.jar -mode fixups backup incremental level 1 database ... ; recover database; alter database open resetlogs upgrade; java -jar autoupgrade.jar -mode upgrade
  • 38. Copyright © 2021, Oracle and/or its affiliates 38 What about PDB conversion?
  • 39. Copyright © 2021, Oracle and/or its affiliates 39 Convert to PDB after migration (and upgrade) using noncdb_to_pdb.sql
  • 40. 40 Copyright © 2021, Oracle and/or its affiliates Cloning a non-CDB directly into a CDB (NON$CDB cloning) is not recommended for large databases
  • 41. Copyright © 2021, Oracle and/or its affiliates 41 Can you offload the work from the source database?
  • 42. Copyright © 2021, Oracle and/or its affiliates 42 Yes, you can perform the backups on a standby database
  • 43. Copyright © 2021, Oracle and/or its affiliates 43 Or simly re-use any backups that are being taken already
  • 44. Copyright © 2021, Oracle and/or its affiliates 44 Your target database must be protected by Data Guard?
  • 45. Copyright © 2021, Oracle and/or its affiliates 45 You can restore source data files on to future standby database in advance
  • 46. Incremental | Data Guard Copyright © 2021, Oracle and/or its affiliates 46 Level 0 Downtime Level 1 Target standby Target primary Source database Level 0 Level 0 Level 1 Level 1 SQL> ALTER DATABASE OPEN RESETLOGS; Archive Archive Configure: • redo transport • Redo apply RMAN> RECOVER DATABASE ...
  • 47. Copyright © 2021, Oracle and/or its affiliates 47 Your target database must have a valid backup before go-live?
  • 48. Copyright © 2021, Oracle and/or its affiliates 48 The backup pieces used by the migration, can be used for disaster recovery as well
  • 49. Incremental | Backup Copyright © 2021, Oracle and/or its affiliates 49 BEFORE AFTER Level 1 Level 0 Level 1 Archive Archive Archive Archive Level 0 Archive Archive Archive Crash Restore
  • 50. Copyright © 2021, Oracle and/or its affiliates 50 It works even if you upgraded the database
  • 51. Copyright © 2021, Oracle and/or its affiliates 51 It does not work if you also converted to a PDB
  • 52. 52 Copyright © 2021, Oracle and/or its affiliates Following a PDB conversion, new backups of the data files are required before go-live
  • 53. Copyright © 2021, Oracle and/or its affiliates 53 Your target database must be RAC?
  • 54. Copyright © 2021, Oracle and/or its affiliates 54 No problem, you can even restore a single instance to a RAC
  • 55. 55 Copyright © 2021, Oracle and/or its affiliates To make recovery as easy as possible, use shared storage as much as possible
  • 56. 56 Copyright © 2021, Oracle and/or its affiliates Incremental | RAC • Backups on shared storage enables multi-instance recovery • Recovery is easier with SPFile and password file on shared storage • For encrypted databases also place keystore on shared storage
  • 57. Copyright © 2021, Oracle and/or its affiliates 57 How about your fallback plan?
  • 58. 58 Copyright © 2021, Oracle and/or its affiliates Incremental | Fallback • To roll back (before go live): Source environment is preserved • To fall back (after go live): Redo process in reverse order • Unless database was upgraded: Downgrade • Unless database was converted: Data Pump and GoldenGate
  • 59. Copyright © 2021, Oracle and/or its affiliates 59 same ENDIAN migration technique RMAN Data Guard Golden Gate Trans- portable
  • 60. RMAN> DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE ... Data Guard | Concept Copyright © 2021, Oracle and/or its affiliates 60 Source database Target database Switchover Backup RMAN> RESTORE STANDBY CONTROLFILE ... ; RMAN> RESTORE DATABASE ... ; RMAN> RECOVER DATABASE UNTIL ... ; Configure: • Redo transport • Redo apply Optional
  • 61. 61 Copyright © 2021, Oracle and/or its affiliates Data Guard | Benefits • Preferred solution • Well-known, simple and easy • Seamless switchover with properly configured application • Some cross-platform capabilities
  • 62. Source Oracle Home is needed on target host 62 Copyright © 2021, Oracle and/or its affiliates
  • 63. Data Guard | Platform Certification 1. Migrate database to new hardware and upgrade from 11.2.0.4 to 19c 2. Target host must run Oracle Linux 8 3. To use Data Guard, you must install Oracle Database 11.2.0.4 on target host 4. Oracle Database 11.2.0.4 is not certified on Oracle Linux 8 Data Guard not possbile
  • 64. Copyright © 2021, Oracle and/or its affiliates 64 Do you need the same platform on source and target host?
  • 65. Data Guard | Heterogeneous Copyright © 2021, Oracle and/or its affiliates 65 Redo apply Primary database Standby database
  • 66. Little Endian | Linux Standby Copyright © 2021, Oracle and/or its affiliates 66 Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration (Doc ID 413484.1)
  • 67. Little Endian | Linux Standby Copyright © 2021, Oracle and/or its affiliates 67 SQL> SELECT platform_name, endian_format FROM v$transportable_platform WHERE endian_format='Little'; PLATFORM_NAME ENDIAN_FORMAT ____________________________________ ________________ Apple Mac OS (x86-64) Little HP IA Open VMS Little HP Open VMS Little HP Tru64 UNIX Little Linux IA (32-bit) Little Linux IA (64-bit) Little Linux x86 64-bit Little Microsoft Windows IA (32-bit) Little Microsoft Windows IA (64-bit) Little Microsoft Windows x86 64-bit Little Solaris Operating System (x86) Little Solaris Operating System (x86-64) Little
  • 68. SQL*Net connectivity is required between source and target database 68 Copyright © 2021, Oracle and/or its affiliates
  • 69. RMAN Compression can reduce the size and duration of the backup significantly 69 Copyright © 2021, Oracle and/or its affiliates Pro tip: Most compression algorithms require Advanced Compression Option
  • 70. Secure your RMAN backup with TDE Tablespace Encryption or RMAN Encryption 70 Copyright © 2021, Oracle and/or its affiliates Pro tip: Requires Advanced Security Option
  • 71. Using multisection backups is important in databases with bigfile tablespaces 71 Copyright © 2021, Oracle and/or its affiliates Pro tip: The keyword SECTION SIZE controls the use of multisection backups
  • 72. Redo apply, TB/Day 11.2.0.4 12.1.0.2 12.2 MIRA 2x 12.2 MIRA 4x 12.2 Batch 57 57 57 115 226 OLTP 14 15 15 29 60 REDO APPLY benchmark Source: Redo Apply Best Practices – Oracle Data Guard and Active Data Guard 72 Copyright © 2021, Oracle and/or its affiliates How To Calculate The Required Network Bandwidth Transfer Of Redo In Data Guard Environments (Doc ID 736755.1)
  • 73. Connection, Gbps 11.2.0.4 12.1.0.2 12.2 MIRA 2x 12.2 MIRA 4x 12.2 Batch 57 / 6 57 / 6 57 / 6 115 / 11 226 / 22 OLTP 14 / 2 15 / 2 15 / 2 29 / 3 60 / 6 TRANSPORT AND APPLY benchmark Source: Redo Apply Best Practices – Oracle Data Guard and Active Data Guard 73 Copyright © 2021, Oracle and/or its affiliates redo
  • 74. Consider compressing redo when using very slow connections 74 Copyright © 2021, Oracle and/or its affiliates Pro tip: Requires Advanced Compression Option
  • 75. Copyright © 2021, Oracle and/or its affiliates 75 What about upgrade?
  • 76. Copyright © 2021, Oracle and/or its affiliates 76 Downtime is required to upgrade database after switchover
  • 77. Final synchronization Data Guard | Upgrade Copyright © 2021, Oracle and/or its affiliates 77 Source 11.2.0.4 Target 11.2.0.4 Downtime Upgrade Disconnect standby Target 19c
  • 78. Data Guard | AutoUpgrade Copyright © 2021, Oracle and/or its affiliates 78 SOURCE DATABASE TARGET DATABASE java -jar autoupgrade.jar -mode analyze DOWNTIME ddddd alter system flush redo to ... confirm apply; recover managed standby database cancel; recover standby database; alter database recover managed standby database finish; alter database activate physical standby database; alter database open; java -jar autoupgrade.jar -mode deploy
  • 79. Copyright © 2021, Oracle and/or its affiliates 79 Or use a Transient Logical Standby database for rolling upgrade using DBMS_ROLLING Pro tip: Watch How Low Can You Go? Zero Downtime Operations for details
  • 80. Copyright © 2021, Oracle and/or its affiliates 80 What about PDB conversion?
  • 81. Copyright © 2021, Oracle and/or its affiliates 81 Convert to PDB after migration (and upgrade) using noncdb_to_pdb.sql
  • 82. Copyright © 2021, Oracle and/or its affiliates 82 Can you offload the work from the source database?
  • 83. Copyright © 2021, Oracle and/or its affiliates 83 Yes, you can. Instantiate the standby database from a backup
  • 84. Copyright © 2021, Oracle and/or its affiliates 84 Your target database must be protected by Data Guard?
  • 85. Copyright © 2021, Oracle and/or its affiliates 85 You can build the future standby database in advance and connect it as a cascading standby
  • 86. Data Guard | Cascading Standby Copyright © 2021, Oracle and/or its affiliates 86 Downtime Future standby Target database Source database Redo apply Redo apply Optinally, upgrade
  • 87. Copyright © 2021, Oracle and/or its affiliates 87 Your target database must have a valid backup before go-live?
  • 88. Copyright © 2021, Oracle and/or its affiliates 88 Before go-live perform level 0 backup of the target database
  • 89. Copyright © 2021, Oracle and/or its affiliates 89 It works even if you upgrade the database
  • 90. Copyright © 2021, Oracle and/or its affiliates 90 It does not work if you also convert to PDB
  • 91. 91 Copyright © 2021, Oracle and/or its affiliates Following a PDB conversion new backups of the data files are required before go-live
  • 92. Copyright © 2021, Oracle and/or its affiliates 92 Your target database must be RAC?
  • 93. Copyright © 2021, Oracle and/or its affiliates 93 No problem, your standby database can be configured as a RAC database
  • 94. Copyright © 2021, Oracle and/or its affiliates 94 How about your fallback plan?
  • 95. 95 Copyright © 2021, Oracle and/or its affiliates Data Guard | Fallback • To roll back (before go live): Source database is untouched • To fall back (after go live): Switchover • Unless database was upgraded: Downgrade • Unless database was converted: Data Pump and GoldenGate
  • 96. Copyright © 2021, Oracle and/or its affiliates 96 cross ENDIAN migration technique RMAN Data Guard Golden Gate Trans- portable
  • 97. 97 Copyright © 2021, Oracle and/or its affiliates Transport | Concept Unplug and plugin data tablespaces Migrate meta information from dictionary TBS1 TBS2 TBS1 TBS2
  • 98. Transport | Concept Copyright © 2021, Oracle and/or its affiliates 98 DATA Export with Data Pump Copy data files SYSTEM
  • 99. 99 Copyright © 2021, Oracle and/or its affiliates Transport | Benefits Endianness independent Direct migration to same or higher version Direct migration into CDB architecture
  • 100. Transport | Convert Copyright © 2021, Oracle and/or its affiliates 100 RMAN DBMS_FILE_TRANSFER Out-of-place conversion 2 x disk space needed Supported in newest version of Perl scripts In-flight conversion 1 x disk space needed Not supported in Perl scripts version 4
  • 101. Transport Methods Copyright © 2021 Oracle and/or its affiliates. Photo by Fahrul Azmi on Unsplash
  • 102. DATA SYSTEM DATA Migration | FTEX plus Incremental Backups Copyright © 2021, Oracle and/or its affiliates 102 New, empty 19c PDB Source database 12.1.0.2 Tablespaces Different endian format SYSTEM Level 0 imagefile backup Data Pump Full Transportable Export/Import Tablespace plug-in Meta data transfer (users, tables, indexes, triggers, PL/SQL ...) Level 1 incremental backup Set read-only Convert data file on restore Final
  • 103. 103 Copyright © 2021, Oracle and/or its affiliates Migration | Oracle E-Business Suite For EBS cross platform migrations to Oracle 19c, please see: • MOS 2674405.1 Using Transportable Tablespaces to Migrate Oracle E-Business Suite Release 12.2 Using Oracle Database 19c Enterprise Edition On a Multitenant Environment) • Blog post
  • 104. Transport Checklist Copyright © 2021 Oracle and/or its affiliates. Photo by Sebastian Herrmann on Unsplash
  • 105. 105 Copyright © 2021, Oracle and/or its affiliates Transportable | Starter Checklist Database Creation Backup / Recovery TDE PERL Scripts Target database requirements • COMPATIBLE must be the same or higher Target database requirements with workarounds • Identical character set • Identical national character set • Identical time zone (only with TIMESTAMP WITH LOCAL TIME ZONE) • Identical time zone file version (only with TIMESTAMP WITH TIME ZONE)
  • 106. 106 Copyright © 2021, Oracle and/or its affiliates Transportable | Starter Checklist Database Creation Backup / Recovery TDE PERL Scripts To determine character set: Convert source database to Unicode with DMU Other Character set workarounds SQL> select * from nls_database_parameters;
  • 107. 107 Copyright © 2021, Oracle and/or its affiliates Transportable | Starter Checklist Database Creation Backup / Recovery TDE PERL Scripts Database 12.2 and higher • PDB can use different character set Recommendation • Keep production CDB on AL32UTF8 • Provision temporary CDB with desired character set • Create new empty PDB in temporary CDB • Clone custom PDB to production CDB
  • 108. 108 Copyright © 2021, Oracle and/or its affiliates Transportable | Starter Checklist Database Creation Backup / Recovery TDE PERL Scripts To determine database time zone file version: If source and target database time zone file version doesn't match • Tables with TSTZ are skipped • Import using Data Pump afterwards Database time zone file version is only relevant for columns of TIMESTAMP WITH TIME ZONE How to create a database with a non-default time zone file version Documentation SQL> select * from v$timezone_file;
  • 109. 109 Copyright © 2021, Oracle and/or its affiliates Transportable | Starter Checklist Database Creation Backup / Recovery TDE PERL Scripts Enable Block Change Tracking on source for incremental backups • Conversion on destination is usually faster than on source • PERL scripts will do the conversion • Requires • Enterprise Edition (on-prem) • Enterprise Edition Extreme Performance (DBCS) • Exadata SQL> SELECT status, filename FROM V$BLOCK_CHANGE_TRACKING; SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;
  • 110. 110 Copyright © 2021, Oracle and/or its affiliates Transportable | Starter Checklist Database Creation Backup / Recovery TDE PERL Scripts TDE Encryption • Not supported • Only for same-Endianness migration Workaround • Decrypt before migration • Reminder: Online decryption available since Oracle 12.2.0.1
  • 111. 111 Copyright © 2021, Oracle and/or its affiliates Transportable | Starter Checklist Database Creation Backup / Recovery TDE PERL Scripts RMAN Incremental Backups • MOS Note: 2471245.1 V4 PERL Scripts to reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup • Source: 10.2.0.3 or newer • Target: 11.2.0.4 or newer
  • 112. 112 Copyright © 2021, Oracle and/or its affiliates Transportable | Best Practices Practice, practice, practice • Start on small database • Prove it works on production-size database Automate • To ensure consistency and avoid human error Save all logs and output • Data Pump, RMAN Clean-up procedure • In case of failure and rollback • To repeat tests • Offline source database afterwards
  • 113. Copyright © 2021, Oracle and/or its affiliates 113 How about your fallback plan?
  • 114. 114 Copyright © 2021, Oracle and/or its affiliates Transport | Fallback • To roll back (before go live): Source environment is preserved • To fall back (after go live): Reverse process back to source • Unless database was upgraded: Data Pump and GoldenGate • Unless database was converted: Data Pump and GoldenGate
  • 115. Full Transportable Export Import Step-by-step with PERL scripts Photo by asoggetti on Unsplash Copyright © 2021 Oracle and/or its affiliates.
  • 116. Transport with Incremental Backups | 6 Phases Setup 1 Prepare & Level-0 2 Roll Forward 3 Final Incremental Backup 4 Transport 5 Clean Up 6 Copyright © 2021 Oracle and/or its affiliates.
  • 117. Phase 1 - Setup | Database Creation Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 COMPATIBLE equal or higher Identical database character sets Identical national character sets Identical time zone versions Identical database time zone setting Create database or PDB
  • 118. Phase 1 - Setup | Download PERL Scripts Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 MOS Note: 2471245.1 – V4 PERL Scripts
  • 119. Phase 1 - Setup | Standard Method Backup Convert Copyright © 2021 Oracle and/or its affiliates. Staging RMAN backup and convert xttdriver.pl -–backup xttdriver.pl --restore
  • 120. Phase 1 - Setup | Non-Supported Method Backup Convert Copyright © 2021 Oracle and/or its affiliates. DBMS_FILE_TRANSFER xttdriver.pl -S xttdriver.pl –G No support with V4 PERL scripts 2 TB limitation
  • 121. Phase 1 - Setup | Configure Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 xtt.properties tablespaces=TBS1,TBS2 platformid=13 src_scratch_location=/NFS_backups/ dest_scratch_location=/NFS_backups/ dest_datafile_location=+DATA asm_home=/u01/app/19/grid asm_sid=+ASM1 parallel=16 rollparallel=2
  • 122. Phase 2 - Prepare | Level 0 Backup Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 Staging Level 0 Level 0 xttdriver.pl --backup scp res.txt
  • 123. Phase 2 – Convert/Restore | Level 0 Backup Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 xttdriver.pl --restore Level 0 Level 0 TBS1 TBS2 Staging
  • 124. Phase 3 – Roll Forward | Level 1 Backup Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 Staging Level 1 Level 1 xttdriver.pl --backup res.txt scp
  • 125. Phase 3 – Convert/Restore/Merge | Level 1 Backup Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 xttdriver.pl --restore Level 1 Level 1 TBS1 TBS2 Staging
  • 126. Phase 3 – Repeat | Level 1 Backup/Convert/Restore/Merge Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 Staging Level 1 Level 1 xttdriver.pl --backup xttdriver.pl --restore Level 1 Level 1 TBS1 TBS2 scp res.txt
  • 127. Phase 4 – Final Level 1 | Read Only Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 Read Only Read Only
  • 128. Phase 4 – Final Level 1 | Backup/Convert/Restore/Merge Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 Staging Level 1 Level 1 xttdriver.pl --backup xttdriver.pl --restore Level 1 Level 1 TBS1 TBS2 Read Only Read Only scp res.txt
  • 129. Phase 5 – Transport | Full Transportable Export Import Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 TBS1 TBS2 Read Only Read Only $ impdp SYSTEM NETWORK_LINK=v121 FULL=Y TRANSPORTABLE=ALWAYS TRANSPORT_DATAFILES='+DATA/tbs1.dbf' TRANSPORT_DATAFILES='+DATA/tbs2.dbf'
  • 130. Phase 6 - Cleanup | Validation Copyright © 2021 Oracle and/or its affiliates. TBS1 TBS2 TBS1 TBS2 Read Only Read Only RMAN Validation
  • 131. Transport with Incremental Backups | Demo Copyright © 2021, Oracle and/or its affiliates 131 Watch on YouTube
  • 132. Data Guard | Transportable Copyright © 2021, Oracle and/or its affiliates 132 Target Primary Target Standby Source Tablespaces Restore Data Pump Full Transportable Export/Import Tablespace plug-in via redo apply Redo
  • 133. Data Guard | Transportable Copyright © 2021, Oracle and/or its affiliates 133 Step by Step Process of Migrating non-CDBs and PDBs Using ASM for File Storage (Doc ID 1576755.1)
  • 134. Copyright © 2021 Oracle and/or its affiliates. 230 Terabyte in less than 24 hours PERL scripts in action at a top health care insurance Photo by Austrian National Library on Unsplash
  • 135. Customer Case | Health Care Customer • One of the top healthcare insurance providers in the United States • Over 50,000 employees, over $50 BILLION annual revenue Oracle Partner • Centric Consulting, a management and technology consulting company • Oracle Platinum Partner Customer Project 2017 Constraints Preparation Migration Success? Remarks
  • 136. Customer Case | Health Care Source • AIX 5.3, Oracle Database 11.2.0.3, DB on filesystem Target • Exadata running Oracle Linux, Database 12.1.0.2, RAC/ASM Enterprise data warehouse & operational data store • Critical for day-to-day operations • Minimizing downtime is critical • Data Guard for DR Customer Project 2017 Constraints Preparation Migration Success? Remarks
  • 137. Customer Case | Health Care Huge, active database • 230+ TB (and growing!) • Generates ~1.2TB redo per hour Initial attempts using Oracle GoldenGate were unsuccessful • Could not keep up with massive redo generation Earlier version (V.2) of PERL migrations scripts • Did not handle addition of tablespaces during migration • Single-threaded file transfer Customer Project 2017 Constraints Preparation Migration Success? Remarks
  • 138. Customer Case | Health Care Single-threaded file transfer • Use PARALLEL in xtt.properties • Number of data files to be processed in parallel Transfer was too slow during initial tests • 100 MB/sec throughput • For 230 TB: almost 27 days (!) just for the Prepare phase Customer Project 2017 Constraints Preparation Migration Success? Remarks
  • 139. Customer Case | Health Care Workarounds • 40 identical directories, each held a complete XTTS PERL script installation • Distribute >530 tablespaces into 40 tablespace groups • Run 40 jobs concurrently with PARALLEL=2, or 80 files at a time Result: ~800 MB/sec throughput • Reduced prepare phase from 27 days to 6 days Customer Project 2017 Constraints Preparation Migration Success? Remarks
  • 140. Customer Case | Health Care Additional customizations • Cross-check scripts to ensure all tablespaces were being migrated • Custom scripts • Automate 40 parallel script executions • Data Pump import par file for the plug-in step • Load balanced RMAN CONVERT • Conversion on all four nodes in the Exadata • Result: Over 230 TBs converted in under 10 hours Customer Project 2017 Constraints Preparation Migration Success? Remarks
  • 141. Customer Case | Health Care Environment Customer Project 2017 Constraints Preparation Migration Success? Remarks IBM AIX Legacy Exadata X5-2 DR QA/Dev
  • 142. Customer Case | Health Care Migration and upgrade completed in one phase • AIX to Linux • 11.2.0.3 to 12.1.0.2 • Single instance to RAC • File system to ASM • 230+ TB Customer Project 2017 Constraints Preparation Migration Success? Remarks
  • 143. Customer Case | Health Care Completed in an 18-hour READ ONLY window! Downtime Window 18 hours Customer Project 2017 Constraints Preparation Migration Success? Remarks
  • 144. Customer Case | Health Care Get the latest version of the PERL scripts Plan for the "unexpected" Customize the process for VLDBs • Otherwise, the Prepare Phase may take very long Customer Project 2017 Constraints Preparation Migration Success? Remarks
  • 145. Copyright © 2021 Oracle and/or its affiliates. Photo by Patrick Hendry on Unsplash PUSHING THE LIMITS ExaCC migration 1500 databases with an ZDLRA
  • 146. ExaCC Migration | Strategic Overview Inc Backup Restore/Recover Transport Rebuild Meta Copyright © 2021 Oracle and/or its affiliates.
  • 147. ExaCC Migration | Timeline Backups TTS Meta Restore Level 1 Restore Level 1 Restore Level 0 Copyright © 2021 Oracle and/or its affiliates.
  • 148. Copyright © 2021 Oracle and/or its affiliates. Migration Details Part 1: The ZDLRA
  • 149. ExaCC Migration | PERL Scripts Inc Backup Restore/Recover Transport Rebuild Meta dbmigusera.pl Customized PERL scripts for Recovery Appliance Copyright © 2021 Oracle and/or its affiliates.
  • 150. ExaCC Migration | libra.so Install most recent libra.so • MOS Note: 2219812.1 ZDLRA: Download new sbt library Copyright © 2021 Oracle and/or its affiliates.
  • 151. ExaCC Migration | dbmigusera.pl Download package dbmigusera.pl incl. xtt.properties • MOS Note: 2460552.1 - Cross Platform Database Migration using ZDLRA • Deploy package Copyright © 2021 Oracle and/or its affiliates.
  • 152. ExaCC Migration | xtt.properties Customize xtt.properties # SBT parameter configuration to be used for restore and recover operations sbtlibparms="SBT_LIBRARY=/u01/app/oracle/product/12.2.0.1/dbhome_1/lib/libra.so, …')" # The number of datafiles that will be restored / recovered in parallel. resparallel=16 # The list of tablespaces to be migrated ttsnames=T14_1,T14_2,T14_3,T14_4,T14_5,T14_6,T14_7,T14_8,T14_9,T14_10,T14_11 # The directory to which the datafiles will be restored storageondest=+DATAC1/dbmig/datafile sourceplatid=2 dbid=4173218531 retrycount=2 Copyright © 2021 Oracle and/or its affiliates.
  • 153. ExaCC Migration | Level 0 Backup Level 0 Backup Restore/Recover $ perl dbmigusera.pl --restore … Copyright © 2021 Oracle and/or its affiliates.
  • 154. ExaCC Migration | Level 1 Backup Inc Backup Restore/Recover $ perl dbmigusera.pl --recover … Copyright © 2021 Oracle and/or its affiliates.
  • 155. Migration Details Copyright © 2021 Oracle and/or its affiliates. Part 2: Transportable Tablespaces to ExaCC
  • 156. Restore/Recover Inc Backup ExaCC Migration | Transportable Tablespaces Transport Rebuild Meta Custom TTS Customized Transportable Tablespaces Scripts Copyright © 2021 Oracle and/or its affiliates.
  • 157. Transport New and advanced features Copyright © 2021 Oracle and/or its affiliates. Photo by Alexander Andrews on Unsplash
  • 158. Data Pump | Test Mode for Transportable Tablespaces Test TTS/FTEX export without "read only" • TTS_CLOSURE_CHECK = ON | OFF | FULL | TEST_MODE NEW IN 19c Copyright © 2021 Oracle and/or its affiliates. DIRECTORY=DP_DIR DUMPFILE=tts.dmp LOGFILE=logfile.log TTS_CLOSURE_CHECK=TEST_MODE TRANSPORT_TABLESPACES=(TTS)
  • 159. Data Pump | Keep Tablespaces Read-Only for TTS Allow "read only" tablespaces for TTS import • TRANSPORTABLE=NEVER|ALWAYS|KEEP_READ_ONLY|NO_BITMAP_REBUILD Copyright © 2021 Oracle and/or its affiliates. DIRECTORY=DP_DIR DUMPFILE=tts.dmp LOGFILE=logfile.log TRANSPORT_DATAFILES='/CDB2/pdb1/tts.dbf' TRANSPORTABLE=KEEP_READ_ONLY TABLESPACE_NAME STATUS ------------------ ---------- SYSTEM ONLINE SYSAUX ONLINE UNDOTBS1 ONLINE TEMP ONLINE TTS READ ONLY NEW IN 19c
  • 160. 160 Copyright © 2021, Oracle and/or its affiliates Migration | ZDRLA Learn the latest techniques using Recovery Appliance to simplify and speed up cross- platform database migration activities, including moving from non-Multitenant to modern Multitenant Database architectures. MOS note Cross Platform Database Migration using ZDLRA (Doc ID 2460552.1) AskTOM Office Hours Accelerate Cross-Platform Database Migration with Recovery Appliance
  • 161. Transportable | Important MOS Notes Copyright © 2021, Oracle and/or its affiliates 161 • Master Note for Transportable Tablespaces (TTS) -- Common Questions and Issues (Doc ID 1166564.1) • Transportable Tablespace (TTS) Restrictions and Limitations: Details, Reference, and Version Where Applicable (Doc ID 1454872.1) • V4 PERL Scripts to reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 2471245.1) • Known Issues for Cross Platform Transportable Tablespaces XTTS (Doc ID 2311677.1) • Cross Platform Database Migration using ZDLRA (Doc ID 2460552.1) • 11G – Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 1389592.1) • 12C – Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 2005729.1)
  • 162. Copyright © 2021, Oracle and/or its affiliates 162 zero downtime MIGRATION technique RMAN Data Guard Golden Gate Trans- portable
  • 163. GoldenGate | Concept Copyright © 2021, Oracle and/or its affiliates 163 Source database Target database GoldenGate Configure extract INSERT INTO ... UPDATE ... DELETE FROM ... Initial load Configure replicat Optionally, reverse replication
  • 164. 164 Copyright © 2021, Oracle and/or its affiliates GoldenGate | Benefits • True zero downtime • Extremely flexible • Cross-version and cross-architecture • Cross-platform and cross-endian • Test before go-live using Flashback Database (Doc ID 966212.1) Pro tip: Active Data Guard included in GoldenGate license
  • 165. 165 Copyright © 2021, Oracle and/or its affiliates GoldenGate | Architecture • SQL*Net connection between databases • Alternatively, a distribution path between two GoldenGate instances • Compress trail files to reduce network load • Example: Database generating 10 TB redo • Trail files typically 30-40 % of redo • Compress at least 1:4, most likely up to 1:8 • Result: 400 GB to 1000 GB trail files
  • 166. 166 Copyright © 2021, Oracle and/or its affiliates GoldenGate | Initial load If your initial load is a Data Pump import: • Export or re-create public and other not exported objects • Synonyms • Database links • ... • Diagnostic and tuning related information • AWR • SQL Plan Baselines • SQL Profiles • SQL Patches • ...
  • 167. Copyright © 2021, Oracle and/or its affiliates 167 To strengthen security, you can encrypt the GoldenGate trail files
  • 168. Copyright © 2021, Oracle and/or its affiliates 168 GoldenGate requires database minimal supplemental logging which does not impose a significant overhead
  • 169. 169 Copyright © 2021, Oracle and/or its affiliates GoldenGate | Considerations • Target database time zone file version must be equal to or higher than source • Possibly patches are recommended on source database to support GoldenGate • 11g • 12c and newer • DDL replication • Truncate • Sequences SQL> select * from v$timezone_file;
  • 170. Copyright © 2021 Oracle and/or its affiliates. Can you use GoldenGate on your database? GoldenGate | Database Readiness
  • 171. GoldenGate | Database Readiness Copyright © 2021 Oracle and/or its affiliates. SQL> select * from dba_goldengate_support_mode; OWNER OBJECT_NAME SUPPORT_MODE CO CUSTOMERS ID KEY CO ORDERS ID KEY CO ORDER_ITEMS FULL CO PRODUCTS ID KEY CO STORES ID KEY SQL> select * from dba_goldengate_support_mode; OWNER OBJECT_NAME SUPPORT_MODE CO CUSTOMERS ID KEY CO ORDERS ID KEY CO ORDER_ITEMS FULL CO PRODUCTS ID KEY CO STORES ID KEY
  • 172. GoldenGate | Database Readiness Copyright © 2021 Oracle and/or its affiliates. SUPPORT_MODE FULL ID KEY PLSQL INTERNAL NONE Pro tip: Visit the documentation for more details
  • 173. GoldenGate | Database Readiness Copyright © 2021 Oracle and/or its affiliates. SUPPORT_MODE FULL ID KEY PLSQL INTERNAL NONE Pro tip: Visit the documentation for more details
  • 174. GoldenGate | Database Readiness Copyright © 2021 Oracle and/or its affiliates. SUPPORT_MODE FULL ID KEY PLSQL INTERNAL NONE Pro tip: Visit the documentation for more details
  • 175. Copyright © 2021 Oracle and/or its affiliates. GoldenGate | Database Readiness What's wrong in this Oracle Database running 12.2? Identify columns supported as of Oracle Database 18c ... SQL> select * from dba_goldengate_support_mode; OWNER OBJECT_NAME SUPPORT_MODE CO CUSTOMERS ID KEY CO ORDERS ID KEY CO ORDER_ITEMS FULL CO PRODUCTS ID KEY CO STORES ID KEY
  • 176. Copyright © 2021 Oracle and/or its affiliates. GoldenGate | Database Readiness Oracle Database 21c New Feature SQL> select * from dba_goldengate_support_mode; OWNER OBJECT_NAME SUPPORT_MODE DESCRIPTION CO CUSTOMERS ID KEY A very good explanation CO ORDERS ID KEY Another good explanation CO ORDER_ITEMS FULL CO PRODUCTS ID KEY A third explanation CO STORES ID KEY Good explanation comes in abundance these days
  • 177. GoldenGate | Database Readiness Copyright © 2021 Oracle and/or its affiliates. For optimal performance all tables should have primary keys or unique keys
  • 178. GoldenGate | Database Readiness Copyright © 2021 Oracle and/or its affiliates. SQL> select * from dba_goldengate_not_unique; OWNER TABLE_NAME BAD_COLUMN IX AQ$_ORDERS_QUEUETABLE_L N IX AQ$_STREAMS_QUEUE_TABLE_L N SH SALES N SH COSTS N SH SUPPLEMENTARY_DEMOGRAPHICS N SH CAL_MONTH_SALES_MV N SH FWEEK_PSCAT_SALES_MV N
  • 179. 179 Copyright © 2021, Oracle and/or its affiliates GoldenGate | Database Readiness If the application maintains uniqueness, but it is not enforced on the database, use a KEYCOLS clause to let GoldenGate use it Pro tip: For further information, read Ensuring Row Uniqueness in Source and Target Tables
  • 180. GoldenGate | Health Check Generate report: • Check prerequisites • Database characteristics • Find database objects of interest • Extract/replicat statistics • Check database readiness 180 Copyright © 2020, Oracle and/or its affiliates
  • 181. GoldenGate | Health Check Generate report by: • Installing objects in database: ogghc_install.sql • Execute health check: ogghc_run.sql • Optionally, clean-up objects: ogghc_uninstall.sql For GoldenGate MicroServices Architecture find the scripts: /u01/app/ogg/oraclenn/lib/sql/healthcheck 181 Copyright © 2020, Oracle and/or its affiliates
  • 182. Copyright © 2021, Oracle and/or its affiliates 182 How about upgrading?
  • 183. Copyright © 2021, Oracle and/or its affiliates 183 GoldenGate can extract from one release, and replicate into another Pro tip: You can even migrate from very old releases using multiple instances of GoldenGate
  • 184. Copyright © 2021, Oracle and/or its affiliates 184 How about PDB conversion?
  • 185. Copyright © 2021, Oracle and/or its affiliates 185 GoldenGate can replicate from non-CDB directly into a PDB
  • 186. Copyright © 2021, Oracle and/or its affiliates 186 Can I offload the work from the source database?
  • 187. Copyright © 2021, Oracle and/or its affiliates 187 Yes, you can extract from a downstream database
  • 188. GoldenGate | Downstream Copyright © 2021, Oracle and/or its affiliates 188 Source database Target database Downstream database GoldenGate Redo transport Extract Replicat
  • 189. Copyright © 2021, Oracle and/or its affiliates 189 Your target database must be protected by Data Guard?
  • 190. Copyright © 2021, Oracle and/or its affiliates 190 After the initial load on the target database, start building your Data Guard
  • 191. GoldenGate | Data Guard Copyright © 2021, Oracle and/or its affiliates 191 Source database Target primary Target standby GoldenGate replication Redo apply Optional
  • 192. Copyright © 2021, Oracle and/or its affiliates 192 Your target database must have a valid backup before go-live?
  • 193. Copyright © 2021, Oracle and/or its affiliates 193 Perform and verify your backups after initial load, but before switchover
  • 194. GoldenGate | Backup Copyright © 2021, Oracle and/or its affiliates 194 Source database Target database GoldenGate replication Level 0 Start backup Backup completed
  • 195. Copyright © 2021, Oracle and/or its affiliates 195 Your target database must be RAC?
  • 196. Copyright © 2021, Oracle and/or its affiliates 196 No problem, GoldenGate can extract from and replicate to a RAC database
  • 197. Copyright © 2021, Oracle and/or its affiliates 197 How about your fallback plan?
  • 198. GoldenGate | Fallback Copyright © 2021, Oracle and/or its affiliates 198 Old database New database
  • 199. GoldenGate | Fallback Copyright © 2021, Oracle and/or its affiliates 199 Bidirectional replication
  • 200. 200 Copyright © 2021, Oracle and/or its affiliates GoldenGate | Additional Resources Certifications GoldenGate 19.1: Using Oracle GoldenGate on Oracle Cloud Marketplace OCI Marketplace: Oracle GoldenGate for Oracle Oracle GoldenGate Best Practices: Instantiation from an Oracle Source Database (Doc ID 1276058.1)
  • 201. GoldenGate | Technical Briefs Oracle Database Migration with an Oracle GoldenGate Hub Configuration Zero Downtime Database Upgrade Using Oracle GoldenGate Oracle GoldenGate with Oracle RAC Configuration Best Practices Transparent Role Transitions With Oracle Data Guard and Oracle GoldenGate
  • 202. Copyright © 2021, Oracle and/or its affiliates 202 SUMMARY
  • 203. Copyright © 2021, Oracle and/or its affiliates 203 Which one is the best technique?
  • 204. Copyright © 2021, Oracle and/or its affiliates 204 It still depends ...
  • 205. Migration | Techniques Simplicity Downtime TTS FTEX Data Guard RMAN OGG
  • 206. Webinar | Upcoming Copyright © 2021, Oracle and/or its affiliates 206 https://go.oracle.com/LP=114938?elqCampaignId=302203
  • 208. YouTube | Oracle Database Upgrades and Migrations • 100+ videos • New videos every week • No marketing • No buzzword • All tech 208 Copyright © 2021, Oracle and/or its affiliates Link
  • 211. THANK YOU DATA PUMP EXTREME Deep Dive with Development March 3, 2022 – 10:00h CET