Professional Documents
Culture Documents
October 2021
Cloud and Lifecycle Management, SAP SE
Boris Rubarth, Product Manager, CLM
PUBLIC
Downtime-Optimized DMO (1-pager)
Reducing the technical downtime: migrate large application tables in uptime
Technical downtime of a database migration (DMO run of SUM) scales with database size
➢ Downtime-optimized DMO approach moves migration of selected large application tables to uptime
➢ A delta replay mechanism ensures that any uptime changes (by end users) are considered
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 3
Downtime-Optimized DMO: Motivation
▪ Technical downtime of Database Migration Option (DMO) of SUM scales with database size
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 4
Downtime-Optimized DMO
Procedure overview
Standard DMO of SUM
Uptime Business Downtime
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 5
Downtime-Optimized DMO
Sequence
Delta depends on
Initial migration
user change rate
Uptime
delta migration
Downtime final
delta migration
Remaining
tables migration
Downtime-optimized DMO of SUM
Uptime Business Downtime
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 6
Trigger are set in MAIN SHD RUN
Agenda
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 7
Agenda
Project considerations
Table selection
Impact analysis
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 8
Downtime-Optimized DMO: Project Considerations (1/2)
▪ Recommended Sequence is
▪ Run standard DMO with optimizations
▪ Determine large tables for uptime migration
▪ Run downtime-optimized DMO on copy of PRD
▪ (optional) Run downtime-optimized DMO on PRD until end of uptime, determine change rate on selected tables, reset
▪ Start downtime-optimized DMO on PRD, using one weekend for initial data transfer, following weekend for downtime
▪ Note
▪ SUM uses its own delta record and replay technology (CRR), no DMIS AddOn is required
▪ Hardware requirements: the additional shadow instance is used on the PAS host
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 9
Downtime-Optimized DMO: Project Considerations (2/2)
➢ Impact analysis
➢ SLT Trigger considerations: trigger to be re-established on target; (MaxDB as source: trigger can’t remain)
➢ If tables are specified that can’t be replicated, an error is displayed, and the table name has to be removed from the list
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 10
Agenda
Project considerations
Table selection
Impact analysis
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 11
Downtime-Optimized DMO: How to select tables for uptime migration
➢ SUM restrictions apply: not all tables can be chosen, e.g. BASIS tables are not suitable
➢ Change rate is relevant: tables with high change rate shall not be selected,
as replication may not be fast enough to work against change rate
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 12
Report RSUPGBA_DODMO_SELECT for table selection
Estimated
Create text file containing
downtime
names of selected tables
reduction
Migration duration
➢ File SUM/abap/doc/analysis/MIGRATE_DT_DUR.XML
Table sizes From standard
▪ File SUM/abap/log/EUMIGRATEDTSIZES.LOG DMO run on SBX
For a system conversion only: specific tables can’t be selected as anyhow handled in uptime
➢ File SUM/abap/mem/SFIN_TABLES.DMP
➢ dynamically determined after standard conversion run
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 14
Report RSUPGBA_DODMO_SELECT
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 15
Statistics file ZDIMPANA.ZIP
Created by report ZRSUPG_IMPACT_ANALYSIS_EXPORT
PRD
SUM/abap/save/ZDIMPANA.ZIP
RSUPGBA_DODMO_SELECT SBX
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 17
Agenda
Project considerations
Table selection
Impact analysis
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 18
Impact Analysis (1/2)
Why Impact Analysis is relevant
Downtime-optimized DMO includes additional activities: table content is migrated during uptime
➢ Changes on these tables (by end-user activities) must be recorded via triggers
To avoid business impact on your production system, it is necessary to estimate in advance how
much additional database space will be required. The Impact Analysis approach provides an
estimation for this.
SAP Note 2402270 - Export of Table Statistics for SUM Impact Analysis
SAP Note 2481983 - SUM Impact Analysis for downtime-optimized DMO
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 19
Impact Analysis (2/2)
HowTo execute the Impact Analysis
Procedure:
Report
➢ Create report and transport report to PRD ZRSUPG_IMPACT_ANALYSIS_EXPORT
(SAP Note 2402270)
SUM/abap/log/IMPANAUPG.<SID>
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 20
Agenda
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 21
Downtime-Optimized DMO
Choosing the scenario
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 22
Check status on end of uptime
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 23
Replication monitoring and configuration
Part of SUM Utilities section
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 24
SUM 2.0 SP 06 (and higher): Replication based on TMP instance and R3load
▪ Only tables that require collision handling are replicated by ABAP (so tables that get an import)
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 25
Agenda
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 26
Downtime-Optimized DMO: Procedure Start
PAS Host
PAS
Source PRD Instance
Kernel
SUM
SUM is started
TGT Kernel
Legende
PAS Host
PAS
Source
Uptime:
Kernel
SUM Shadow repository
is created on the target database
SHD Instance
TGT Kernel
PAS Host
PAS Uptime:
Source Initial transfer of
Kernel triggered tables
SUM
R3load R3load
TMP Instance
TGT Kernel
PAS Host
PAS
Source
Kernel Uptime:
SUM Delta replication of
R3load R3load relevant tables
TMP Instance
ABAP
TGT Kernel
* Secondary DB connection
Source DB Host SAP HANA DB Host
© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ Downtime-optimized DMO introduction | Attachment to SAP Note 2547309 30
Downtime-Optimized DMO: Remaining migration of triggered tables
PAS Host
PAS Downtime:
Source Remaining Delta
Kernel transfer of
SUM triggered tables
R3load R3load
TMP Instance
ABAP
TGT Kernel
PAS Host
PAS Downtime:
Source Non-triggered
Kernel application tables
SUM are migrated
R3load R3load
TMP Instance
TGT Kernel
PAS Host
PAS
TGT
Kernel Downtime:
SUM Target kernel
for PRD instance
PAS Host
Downtime:
PAS
TGT Application tables
Kernel are updated
SUM
Procedure finished