Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTERNAL
Downtime-optimized DMO (1-pager)
Reducing the technical downtime: migrate big application tables in uptime (target Suite-on-HANA)
Technical downtime of a database migration (DMO run of SUM) scales with database size
➢ Downtime-optimized DMO approach moves migration of selected big application tables to uptime
➢ A delta replay mechanism ensures that any uptime changes (by end users) are considered
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 3
Downtime-Optimized DMO: Motivation
▪ Technical downtime of Database Migration Option (DMO) of SUM scales with database size
➢ Approach is not yet general available, only used for accepted pilot projects
targeting Suite-on-HANA (not SAP S/4HANA)
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 4
Downtime-optimized DMO of SUM – procedure overview
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 5
Downtime-optimized DMO of SUM – sequence
EU_CLONE_MIG_OPTDMO_RUN
Delta depends on
Initial migration
user change rate
RUNASYN_RRC_REPLICATE
Uptime
delta migration
RUN_RRC_REPLICATE_FINAL
Downtime
delta migration
EU_CLONE_MIG_DT_RUN
Remaining
tables migration
Downtime-optimized DMO of SUM
Uptime Business Downtime
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 6
Trigger are set in MAIN SHD RUN
Agenda
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 7
Downtime-Optimized DMO: Project Considerations (1/2)
➢ Feature is only available for accepted service-based projects with SAP colleagues onsite
See SAP Note 2442926 for details
➢ Recommended Sequence is
➢ Run standard DMO with optimizations
➢ Determine big 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: an additional instance is used on the PAS host (size like shadow instance, but additionally)
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 8
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
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 9
Downtime Optimized DMO: Criteria for big tables to be selected
▪ via SL UI after plain DMO run (menu More / Utilities -> Migration Preparation / Table Sequence)
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 10
Preparation: Report RSDMODBSIZE
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 11
RSDMODBSIZE with change rates
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 12
Impact Analysis (1/2)
Why Impact Analysis is relevant
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
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 13
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>
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 14
Agenda
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 15
Downtime Optimized DMO: enable the option
(depending on SAPup_add.par)
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 16
Check status on end of uptime
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 17
Replication monitoring and configuration
Part of SUM Utilities section
Transaction CRR_CONTROL
is deprecated (read only)
with SUM 2.0 SP 04 and higher
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 18
SUM 2.0 SP 04: Replication based on TMP instance and R3load
Cluster tables are replicated by R3load mechanism (with SUM 2.0 SP 04 and higher)
New kernel versions 7.53 are no longer cluster-aware, can’t read clusters.
R3load is used for cluster table replication, even for lower target releases like Suite-on-HANA
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 19
Agenda
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 20
Downtime-optimized DMO: Procedure Start
PAS Host
SUM is started
PRD Instance
PAS
Source
Kernel
SUM
Target
Release
PAS Host
Uptime:
PRD Instance Shadow system
PAS is created
Source
Kernel
SUM
SHD Instance
SHD Kernel
PRD REP
SHD REP
Application Data
PAS Host
Uptime:
PRD Instance
Shadow repository
PAS
is copied
Source
Kernel Later, trigger are activated by SUM
SUM
R3load R3load
SHD Instance
SHD Kernel TGT Kernel
SHD Instance
SHD Kernel TGT Kernel
* SUM
R3load R3load
SHD Instance
CRR replicator Writer
SHD Kernel TMPTGT
Instance
Kernel MAIN_MIGTMPSTART/
SUBMOD_MIGTMP_REPLICATOR_START/
RUNASYN_RRC_REPLICATE
Source DB Host SAP HANA DB Host * Cluster table replication via R3load
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 25
Downtime optimized DMO: remaining migration of triggered tables
RUN_RRC_REPLICATE_FINAL
PAS Host
Downtime:
PRD Instance
Remaining Delta
PAS
transfer of
Source
triggered tables
Kernel
* SUM
R3load R3load
SHD Instance
CRR replicator Writer
SHD Kernel TMPTGT
Instance
Kernel
Source DB Host SAP HANA DB Host * Cluster table replication via R3load
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC | downtime-optimized DMO with SUM 2.0 SP 04 26
Downtime optimized DMO: migration of remaining tables
PAS Host
Downtime:
PRD Instance
Non-triggered
PAS
application tables
Source
are migrated
Kernel
R3load R3load
PAS Host
Downtime:
PRD Instance
Target kernel
PAS
for PRD instance
TGT
Kernel
PAS Host
Downtime:
PRD Instance Application tables
PAS are updated
TGT
Kernel Procedure finished