Академический Документы
Профессиональный Документы
Культура Документы
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal
a n y
G e rm
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 2
Slides download and other resources
• https://MikeDietrichDE.com/slides
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 3
Overview
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 5
Project Goal
• Cross platform migration
– AIX (Big Endian) to Linux (Little Endian)
– Options:
• Data Pump
– Simple but slow due to complexity and amount of data
• Transportable Tablespaces
– More prep work due to complexity but can deal with high amounts of data
• Full Transportable Export/Import
– Combines both but may be harder due to unforeseeable log errors
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 6
Decision
• Build a universal Transportable Tablespaces solution
• Utilize the ZDLRA for cross platform incremental backup/restore
Restore/Recover
Rebuild Meta
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 8
Migration with Transportable Tablespaces - Overview
Rebuild meta information
(views, synonyms, trigger, roles etc)
Read Only
SYSTEM CODE
SYSTEM CODE
HUGO HUGO
TEMP TEMP
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 9
TTS: Using Incremental Backups
impdp"'"sys/sys
expdp "'"sys/sysasassysdba"'"
sysdba"'"…
…
TRANSPORT_DATAFILES=…
TRANSPORT_TABLESPACES=TS1,TS2 …
Convert and apply
Downtime!!! backups
Read Only
SYSTEM CODE SYSTEM CODE
HUGO HUGO
TEMP TEMP
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 10
What is the plan?
Restore Level 1
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 12
Migration Details
Part 1 - The ZDLRA
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 13
ZDLRA: Strategy Overview
Restore/Recover
dbmigusera.pl
Inc Backup Transport
Customized PERL scripts
for Recovery Appliance
Rebuild Meta
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 14
Zero Data Loss Recovery Appliance
• Install most recent libra.so
– MOS Note: 2219812.1 - ZDLRA: Download new sbt library
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 15
Zero Data Loss Recovery Appliance
• Download package dbmigusera.pl incl. xtt.properties
– MOS Note: 2460552.1 - Cross Platform Database Migration using ZDLRA
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 16
Zero Data Loss Recovery Appliance
• Deploy package dbmigusera.pl
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 17
Zero Data Loss Recovery Appliance
• 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, …')"
sourceplatid=2
dbid=4173218531
retrycount=2
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 18
Restore and Recover
Level 0 Backup Restore
Restore/Recover
Inc Backup
$ perl dbmigusera.pl --restore …
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 19
Restore and Recover
Level 1 Backup Restore-Recover
Restore/Recover
Inc Backup
$ perl dbmigusera.pl --recover …
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 20
Restore and Recover
Level 1 Backup Restore-Recover
Restore/Recover
Inc Backup
$ perl dbmigusera.pl --recover …
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 21
Migration Details
Part 2 - Transportable Tablespaces to ExaCC
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 22
TTS: Strategy Overview
Custom TTS
Restore/Recover
Customized Transportable
Tablespaces Scripts
Inc Backup Transport
Rebuild Meta
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 23
Check Script on all Sources
• Check script
– Checks for objects in SYSTEM tablespace
– Size of database
– Tablespaces
– Object count meta objects
CHECK
– And more …
• AWR extract
• Plan Capture
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 24
Prep Work on ExaCC
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 25
Prep Work on Source
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 26
Incremental Backup-Restore - No Downtime
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 27
Prep Work on ExaCC
• Create
– Profiles
– Dummy tablespaces
Restore/Recover – Temporary tablespaces
– Users
Transport
– Directories
Rebuild Meta • Drop
– Dummy tablespaces
• Create
– Grants, Roles, Directories, Functions for tables/indexes
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 28
Final Incremental Backup-Restore - Downtime
Tablespaces
Read Only
• Level 1 backup restore/recover
– $ perl dbmigusera.pl --recover
Restore/Recover
Transport
Rebuild Meta
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 29
Export Tablespace and Meta Information
• Metadata export
– function, package, procedure,
database_link, sequence, view,
Restore/Recover synonym
Transport • TTS export
Rebuild Meta
• Important:
– GATHER_SCHEMA_STATS('SYS')
– GATHER_SCHEMA_STATS('SYSTEM')
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 30
TTS Import
• TTS Import
– Afterwards tablespaces are attached
– Duration: 60 mins in test environment
Restore/Recover
Transport
Rebuild Meta
TTS
Import
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 31
Rebuild of Meta Information
• Meta Import
–Rebuilds:
• Functions
Restore/Recover
• Packages
Transport • Procedures
Rebuild Meta
• Database links
• Sequences
• Views
• Synonyms
Metadata
Import
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 32
Check Script: Comparison
• Clean up
– Drop GRP
– Other treatments
• Run check script
CHECK CHECK – Comparison Before/After
• Encryption
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 33
Back to reality …
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 34
Oracle Database Cloud Migration
@Metro|nom
Oracle Open World, 25.10.2018
36
Introduction
37
Oracle Database Cloud Migration @ Metro|nom
Introduction
Soner Toraman
Product Owner Relational Databases @
Team: 13 DBAs
Managing > 2500 Databases
2100 Oracle Databases
Backup Infrastructure ZDRLA
38
Oracle Database Cloud Migration @ Metro|nom
Introduction
00 employees
s 20
0,000 employee
15
es
IT-Servic
on
€37 Billi ons
IT-Soluti
tries
25 Coun
39
1 Our Vision
what was our trigger & strategy?
3 Best Practices
facts and recommendations
40
Our Vision
41
Oracle Database Cloud Migration @ Metro|nom
Our Vision
y
xit ses go ud
e es ce o
pl c u n cl
m o yo rie lic
co pr as pe b
ce if
y y ex pu
du pl pa in to
re si
m
ga
lif
t
42
Oracle Database Cloud Migration @ Metro|nom
Our Vision
Phase4 DUS
IBM 2 OCC
Phase2 FRA
IBM 2 OCC
Phase1 DUS
IBM 2 OCC
Oracle Public Cloud
1y 2y 3y 4y t
43
Oracle Database Cloud Migration @ Metro|nom
Our Vision
2018 2022
Jul. ‚18 Aug. ‚18 Sep. ‚18 Oct. ‚18 Nov. ‚18 Dec. ‚18 Jan. ‚19 Feb. ‚19 Mar. ‚19 Apr. ‚19 Mai. ‚19 Jun. ‚19 Jul. ‚19 Nov. ‚20
Cross-platform
PoC migration 200
Core Applications databases
FRA Frozen FRA Approx. 1500
OCC/ECC database
Cross-platform migrations
migration 40 DUS Frozen DUS In 4y
databases on ECC
Cross-platform
migration 204
databases on OCC
Restore/Recover
Rebuild Meta
44
Oracle Database Cloud Migration @ Metro|nom
Our Vision
DC1 Düsseldorf
DC2 Frankfurt
Oracle Cloud
Backup
Oracle Cloud
Archive
45
Cloud Migration Tool
And The Reality
46
Oracle Database Cloud Migration @ Metro|nom
CMT and the Reality
!!
e!
im
nt
Our expectations: ow
D
o
N
Higher Management
!!
e!
im
nt
Experts ow
D
um
im
in
M
47
Oracle Database Cloud Migration @ Metro|nom
CMT and the Reality
!!
e!
im
nt
ow
What did we get? D
um
m
i ni
M
Error-prone
Too many manual interventions
48
Oracle Database Cloud Migration @ Metro|nom
CMT and the Reality
m
te
sys
s,
sy ts ly
in ip ts on
Source ts s cr r ip d
ec e s c a …
ob
j
vl0 th 1 vl1 re vl1 TS
or pl te p lvl th
e
pl to pl rtT
f u r a u y u B ku po
k ck ne ck p ck tD c ex
ec ba ba co ba se ba
ch ge
b
pd lvl
0 vl1 vl1
… n
rl rl TS tio
cr
ea
te
st
or
e
co
ve
ve rtT ryp t
re re co po c
Target re Im en
49
Best Practices
50
Oracle Database Cloud Migration @ Metro|nom
Best Practices
• Automate your Pretasks
- no modifications of generated scripts - avoid human errors
• Define directory structures
- you should know where to find your logfiles and scripts
• Use a shared directory for scripts & logfiles
- avoid switching from source to target vice versa and copy activities
• Do the Pretasks 2-3 days before
- risk of major changes in the database
• Don‘t concentrate on databases with individual errors
- you have a fallback in place
• Check the load on your ZDLRA
- when you do mass migrations
• Check the load on your target infrastructure
- even it is a ExaCC
• Give feedback to the authors of the cloud migration tool
- they will enhance the tool
51
Oracle Database Cloud Migration @ Metro|nom
Best Practices
52
Oracle Database Cloud Migration @ Metro|nom
Best Practices
Our wishes …
• for the Pretasks
… a procedure included within the database
53
54
Thank you for
Soner Toraman
your attention!
Slides download and other resources
• https://MikeDietrichDE.com/slides
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 55
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Database Cloud Migration: Fast, simple, universal 56