75
Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 1 SAP BW Migration to HANA Published: 7 September 2016 Terry Kempis & Linh Nguyen Introduction This eBook is a result of a 3-parts blog series which provided an overview and explanation of major steps and considerations for BW on HANA upgrade and migrations, based on a trial BW 7.5 system and HANA SPS10 Part 1 : Migrating a BW system from anyDB (any database) to HANA involves Preparatory work in the BW system Part 2 : SUM DMO Tool for SAP Upgrade and Migration Part 3: Post processing on the migrated system Any DB Migrate Upgrade Preparation Post-processing

BW Migration to HANA - eBook

  • Upload
    others

  • View
    26

  • Download
    2

Embed Size (px)

Citation preview

Page 1: BW Migration to HANA - eBook

Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 1

SAP BW Migration to HANA

Published: 7 September 2016

Terry Kempis & Linh Nguyen

IntroductionThis eBook is a result of a 3-parts blog series which provided an overview and explanation of major steps and considerations for BW on HANA upgrade and migrations, based on a trial BW 7.5 system and HANA SPS10• Part 1: Migrating a BW system from anyDB (any database) to HANA

involves Preparatory work in the BW system• Part 2: SUM DMO Tool for SAP Upgrade and Migration• Part 3: Post processing on the migrated system

Any DB

Migrate

Upgrade

Preparation Post-processing

Page 2: BW Migration to HANA - eBook

BW Migration to HANA

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 2

Part 1 of 3

Preparation in BW SystemBy OZSoft Consulting for ITConductor.com

Page 3: BW Migration to HANA - eBook

Introduction

• This series of publication intends to provide an overview and explanation of major steps and considerations for BW on HANA migrations

• Migrating a BW system from anyDB (any database) to HANA involves

1. Preparatory work in the BW system

2. DMO and Actual migration

3. Post processing on the migrated systems

• This first part focuses on the preparation tasks on the BW system.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 3

Page 4: BW Migration to HANA - eBook

Preparatory work in the BW system

Preparation is a collaborative work between Basis, BW support team and ABAP/development team.

Create a production copy Sandbox

Best practice in doing an upgrade is to create and use a production copy sandbox first before starting with the development system. It offers the following benefits:

1. Identify potential issue and get a fix ready before hitting the other systems used in development and production.

2. Allows optimization of the process to reduce the downtime and impact to the business. The update and migrate tool, SUM’s DMO, provides a special feature which allows repetition of the downtime for optimization.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 4

Page 5: BW Migration to HANA - eBook

Target BW and HANA DB

• Recommended to always use the latest BW release/level for the target system.

• The target HANA system has been installed as per SAP requirements.

• The target support package should be the latest, and ideally installed with the DSP (datacenter service point).

• The capacity should meet the result from the sizing report -discussed at later stage.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 5

Page 6: BW Migration to HANA - eBook

BW Housekeeping/data clean-up

Similar to preparing a BW system for upgrade and/or Unicode conversion, reduction of the data volume should be done -normally referred to as BW housekeeping tasks. This will reduce the data to be exported from the source system and imported to the target DB. This will reduce the downtime of the system during the upgrade, and it also reduces the capacity requirement of the target HANA DB.

The normal housekeeping/clean-up tasks involves the BW functional team, which includes

• PSA reduction and change log

• Infocube compression

• Deletion of temporary objects

• Deletion of statistics data

In addition, the ‘SAP BW Migration Cockpit’ includes a Housekeeping section for common housekeeping tasks. Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 6

Page 7: BW Migration to HANA - eBook

SAP BW Migration Cockpit for SAP HANA

SAP provides the BW migration cockpit program, which is the main entry point to all the tools for the BW to HANA migration preparation. It also includes some post-task items (e.g. ASU, Down-sizing – Near-line Storage, extended tables)

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 7

Page 8: BW Migration to HANA - eBook

Migration Cockpit

• From the cockpit, all the tools needed for can be executed (e.g. sizing, list program codes that can be optimized for HANA). Also incorporated previous tools like ASU, normal housekeeping tasks, BW Checks.

• Each tab has different tasks within it. If you hover to the right side ‘Documentation’, it provides either• OSS note which contains the ABAP program to be uploaded to perform

the check, and ‘how-to-guide’, e.g. BW Checklist for SAP HANA• Link to the relevant SAP HELP page

• The cockpit is installed by creating ABAP program ZBW_HANA_MIGRATION_COCKPIT from OSS note 1909597, which also contains the guide ’SAP Migration Cockpit’.

• The document SAP First Guidance - BW Housekeeping and BW-PCA covers some of the major checks/tools• HANA checklist• Sizing Check• Note Analyzer

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 8

Page 9: BW Migration to HANA - eBook

Checks tab

This section has several items

Upgrade Paths • Install ABAP program from

OSS note 2296693, which also contains the documentation.

• Sample report below – note that DMO will be used

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 9

Page 10: BW Migration to HANA - eBook

Checklist Tool

• Install the program ZBW_HANA_CHECKLIST from OSS note 1729988 –which also contains two documents:• How to … Checklist Tool for

SAP BW powered by SAP HANA

• SAP BW powered by SAP HANA Checklist Tool

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 10

Page 11: BW Migration to HANA - eBook

Sample BW Checklist Report

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 11

Page 12: BW Migration to HANA - eBook

Other Checks

The lower screen contains more checks. The Documentation tab points to the SAP Help page.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 12

Page 13: BW Migration to HANA - eBook

BW (consistency) Checks

These are standard BW transactions/programs.

• BW Object Checks – this is transaction RSRV

• BEx Query Check – this runs the ABAP program ANALYZE_RSZ_TABLES

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 13

Page 14: BW Migration to HANA - eBook

Planning Function Check

This run program RSPLS_PLANNING_HDB_ANALYSIS – it checks if a planning function can be executed in memory, with the following default screen

• ‘How to check whether a Planning function or Disaggregation in PAK is executed in Memory’ ← provides very good explanation on this subject.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 14

Page 15: BW Migration to HANA - eBook

Sizing

This tab contains several sections

Sizing Tool

• The tool provides an estimated size of eventual BW system in the HANA database.

• Note that the figure from this report does not include other memory requirements within HANA (e.g. calculation space).

• OSS note 2296290 provides more detail/guide on how the sizing program works, prerequisite, how to run it, and how to read the summary report. One of the attached guide also provide overview on HANA BW Scale Out.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 15

Page 16: BW Migration to HANA - eBook

Sizing Tool

• Provides several options/factors/simulation

• Output report is written into a file, into the work directory

The report has several sections:

• Source DB contents, e.g. size of different table types (e.g. infocubes, PSA)

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 16

Page 17: BW Migration to HANA - eBook

Sizing Tool Sample Report

• Minimum Sizing Requirements - with recommended number of nodes

• Sizing Details

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 17

Page 18: BW Migration to HANA - eBook

Iterative Sizing

• Run the sizing tool several times with or without selecting any option to compare results of the clean-up/data reduction activities:• Change the filename of the

output result for comparison purposes.

• Result of each table are shown in the report’s Table Details, broken down by row/column types, and for each table -estimated ABAP and HANA size.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 18

• There is also an CSV file containing the Table Detail, for easier comparison, containing total_size, ABAP size, HANA size.

• Note that some of options can only be implemented after the migration, e.g. Dynamic Tiering. However, it is a good idea to run this several times with several options to see the impact if they are done after the migration, i.e. ‘what if’.

• Reference : OSS note 1736976 – Sizing Report for BW on HANA, which contains two document on sizing and Scale-out.

Page 19: BW Migration to HANA - eBook

Future Growth Simulation

• This option allows you to extrapolate the size based on growth factor or absolute number.

• With the example above, the report will show minimum and recommended size per year

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 19

Page 20: BW Migration to HANA - eBook

Non-Active Data, Dynamic Tiering

• This options are another ‘what-if’ scenario, e.g. what if dynamic tiering is used.

Non-Active Data

• This is in relation to the new ‘multi-colored’ - refer to blog SAP BW on HANA : Data Classification (HOT/WARM/COLD)

• If selected, there will be a section ‘Non-Active data’ in the report.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 20

Page 21: BW Migration to HANA - eBook

Dynamic Tiering

• BW on HANA introduced the multi-temperature data. Briefly, data are classified as:• HOT data – accessed very often, should stay in HANA memory

• WARM data – infrequent access, using HANA dynamic tiering (i.e. extended storage, extended table), e.g. data more than 2 years old

• COLD data – sporadic/infrequent access, using Near-line Storage (NLS)

• PSA tables and Change Logs are considered ‘non-active automatically’ – Reference OSS Note

• References: • ‘Big Data Management in HANA BW.pdf’ from OSS note 1983178

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 21

Page 22: BW Migration to HANA - eBook

Dynamic Tiering - Brief

• Dynamic Tiering (aka extended storage) is another way of reducing HANA memory footprint by moving some data into Dynamic storage server.

• For example, data from an infocube which are more 12 months old can be moved to the dynamic storage, hence only the current year’s data are the only ones that occupy the HANA memory. This is done by

1. defining another table with the same definition as the current table, with additional ‘extended storage’ clause.

2. moving the data from the current table to the ‘extended table’

3. creating a view with a join of the current table and the ‘extended table’. If an SQL issue a select SQL which include data from the extended table, then it is retrieved from the ‘extended storage’ into the Dynamic Tiering server’s memory - but still does not occupy HANA memory

• References:• SAP HANA Dynamic Tiering for Using Extended Tables• OSS note 1983178 - HANA Dynamic Tiering

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 22

Page 23: BW Migration to HANA - eBook

Memory Configurations

• Allowed Memory Configurations

• Down-sizing (configuration) – these are post-task activities• The document points to SAP Help portal on the subjects of NLS and

Data Archiving

• Down-sizing (execution)• The ‘Move to Extended Tables’ document refers to

• OSS note 2557636 – conversion of PSA and write-optimized DSO in SAP-HANA extended tables which also contains document ‘Changing the Multi-Temperature Category of BW objects’.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 23

Page 24: BW Migration to HANA - eBook

Housekeeping

The tasks in this section are to be used in conjunction with the ASU tool (under Migration). This has 2 sections:

• Housekeeping Automation -this is transaction STC01

• Housekeeping Tasks

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 24

Page 25: BW Migration to HANA - eBook

Migration

ASU Toolbox:

• Refer to 1000009 - ASU Toolbox 2008, upload the relevant DMO task list (ASU_BW_70x_75x_DMO_3.zip). As in other upgrade, there are pre and post-tasks.

• There are other tools on this tab, but note below.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 25

Page 26: BW Migration to HANA - eBook

WHM

• This contains the ‘Transformation Finder’. There are several options/selection on the transformation

• Install ABAP program ZBC_TRANSFORMATION_FINDER from OSS note 1908367 , which also contains the ‘SAP BW Transformation Finder’, a how-to-guide.

• The following blog provides a good understanding of the transformation and links to various blogs on this subject, HANA Transformations

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 26

Page 27: BW Migration to HANA - eBook

Optimization

• Program to scan custom ABAP codes for potential optimization for HANA.

• Install the ABAP program from OSS note 1847431, which also contain the how-to-guide.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 27

Page 28: BW Migration to HANA - eBook

Next – SUM DMO and Migration

• Now that we have prepared the source BW system, we are ready to proceed with SAP SUM (Software Update Manager) using DMO (Database Migration Option) to carry out the upgrade and migration of the BW system from anyDB to BW on HANA.

• Stay tuned for the next section DMO and Migration.

Author: Terry KempisEditor: Linh Nguyen

ITConductor.com 28

Page 29: BW Migration to HANA - eBook

BW Migration to HANA

Part 2 of 3

SUM DMO Tool for SAP Upgrade & MigrationBy OZSoft Consulting for ITConductor.com

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 29

Any DB

Migrate

Upgrade

Page 30: BW Migration to HANA - eBook

Introduction

• This is Part 2 of the series of publication which provides an overview and explanation of major steps and considerations for BW on HANA migrations

• Migrating a BW system from anyDB (any database) to HANA involves

1. Preparatory work in the BW system

2. SUM DMO Tool for SAP Upgrade and Migration

3. Post processing on the migrated systems

• This part focuses on the tool used for the migration, pre-requisites, optimization and the actual migration steps.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 30

Page 31: BW Migration to HANA - eBook

DMO, Guides

• SUM’s DMO (Database Migration Option) is the tool to update and migrate anyDB (any Database) to HANA.

• HINT: It cannot be used for pure migration purposes only! If your current release/level already meet the HANA requirement and does not want to do go the latest release/level, then at least update other package (e.g. ST-PI) so that you will have stack xml which is needed by DMO.

• Before embarking on doing migration using DMO, first go through the following

• ‘SAP First Guidance - Using the DMO Option to Migrate BW on HANA, • ‘Database Migration Option (DMO) of SUM - Introduction’ - it provides a

very good introduction of DMO and contains links to other related blog (e.g. optimization, technical background).

• All notes in this document and the steps followed in this migration exercise were based on the cookbook, blogs and the references below.

• The central note 2257362 for DMO with SUM 1.0 SP 17• Update of SAP Systems using SUM 17 <— read this one to appreciate

the SL Common UI, features, etc.• Database Migration Option of SUM SP17 - Target Database SAP HANA

ITConductor.com 31Author: Terry Kempis Editor: Linh Nguyen

Page 32: BW Migration to HANA - eBook

DMO (Database Migration Option)

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 32

(SOURCE) SID ABABASIS 750/02

SYBASE DB

(TARGET) SID ABABASIS 750/04

HANA DBKERNEL 745 patch 200

DMO needs two sets of kernel

Target software release of the source DB – i.e. 745 patch 200 for SYBASE DB

Target software release of the target DB – i.e. 745 patch 200 for HANA DBTarget software release of the target DB – i.e. 745 patch 200 for HANA DB

Source and Target System for this exercise

DMO is an inplace-migration using SUM (Software Update Manager). The target PAS will replace the source PAS in the same host, using same ID, network configuration

SOURCE PAS

TARGET PAS

Page 33: BW Migration to HANA - eBook

DMO uses memory pipe mode

The export and import occurs within the same server, so data is passed through the same memory segment

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 33

SOURCE SYBASE DB

TARGET HANA DB

PPEXPORT

Kernel : 745/200 SYBASEImport

Kernel: 745/200 HANAMemory

Reference: DMO: comparing pipe and file mode for R3load

Page 34: BW Migration to HANA - eBook

DMO - more

DMO’s migration repetition for testing purposes of the downtime phase

See: 4.3.4 Using the Migration Repetition Option for Testing of the DMO Guide

DMO supports MDC

The target database in DMO can be a tenant database. DMO has option to create the target DB, if it does not exist yet.

DMO Unicode conversion

DMO can convert a non-Unicode system to Unicode – at the same downtime. Note that only single-code page is supported, not multi-code (MDMP).

DMO SQL DDL generation

DMO generates the DDL in one of its phase, so there is no need to manually run this.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 34

Page 35: BW Migration to HANA - eBook

SLUIGUI – going around

The tab in the right hand side are Legend, More, Task List, Logs, Breakpoints. Clicking on any tab to expand, click again on the tab to hide.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 35

Page 36: BW Migration to HANA - eBook

SLUIGUI - MORE

Under More,SUM Guide – this will take you to SAP marketplace, right to SUM guide page

SUM Note – this will take you to the central note of the current SUM you are using

SAP Help Portal – goes to https://help.sap.com

Log Tail – this is the log ‘tail viewer’. You can choose any log file, e.g. SAPup.log

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 36

Page 37: BW Migration to HANA - eBook

SLUIGI – Utilities and Task List

Utilities can also be viewed directly from the ‘extended viewer’ -<server>:1128/lmsl/sumabap/<SID>/doc/sluigui_ext/

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 37

Page 38: BW Migration to HANA - eBook

SLUIGUI – LOGS, BREAKPOINTS

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 38

V

Logs can be viewed without going to the OS

Breakpoints can be set from here

Page 39: BW Migration to HANA - eBook

Observer Mode

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 39

This feature allows monitoring for the update process from a mobile device or desktop. To use,

1. Prepare the observer mode (create new user <sid>obs, add a password, then add group SAPSYS to <sid>obs.

2. Start the observer monitor with the following URL, login with the <sid>obs user

<server>:1128/lmsl/sumobserver/ABA/monitor/index.html

Page 40: BW Migration to HANA - eBook

Resetting DMO, source DB instance after migration

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 40

RESETing the DMOAfter migration, the source database remains intact. It’s on the state before the shutdown. If for whatever reason, it can be used again after a reset which is provided by DMO. Note that the reset will delete data from the target HANA DB.

Reference: DMO technical background

Source database after migrationAfter the migration testing, we installed another PAS pointing to the source database – so we ended up with two running systems:1. A migrated system in HANA2. The original source ASE systemThe normal steps in installing a Distributed system are: 1. ASCS instance 2. Database Instance3. Primary Application System (PAS)But only step 1 and 3 are needed. Note that by skipping step 2, the profile parameter, environment (env.csh) and DB (dbenc.csh) variables may have some missing items. Fortunately, that DMO backup the source system versions, including the kernel for reference/re-use.

This is handy for production copy sandbox – for comparison purposes, but not on production. Ensure that this is totally isolated from normal use.

Page 41: BW Migration to HANA - eBook

DMO - Optimization

During the days of Combined Upgrade and Unicode Conversion (CUUC) – downtime optimization was a challenge. You need to manually specify table split, which tables to do first, etc.

With DMO, tools and features are available to reduce the downtime, including optimized table splitting

• Benchmark Tool

• Migration repetition

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 41

Page 42: BW Migration to HANA - eBook

Benchmarking tool

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 42

DMO’s ’benchmarking’ (migration) tool is available to simulate the export and import process to check the migration rate/speed. It has repetition option to enable optimization by adjusting the process parameters (SQL uptime, SQL downtime, R3load uptime, R3load downtime).

This should be done before the DMO and against a production copy which mirrors the production setting, (i.e. capacity, network, target HANA)

HINT: benchmark both export and import to simulate production run

For more details, refer to the followingOptimizing DMO Performance

Page 43: BW Migration to HANA - eBook

Migration Repetition/Optimizing downtime

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 43

DMO provides ‘migration repetition’ to help reduce the system downtime.

For each DMO run, the following files are created • ‘MIGRATE_UT/DT_DUR.XML’ - contains

statistics for each migrated table • UPGANA.XML

These files can be use for subsequent DMO run to optimize and reduce the downtime. See DMO Guide Cookbook

DMO

UPGANA.XMLMIGRATE_*_DUR.XML

Page 44: BW Migration to HANA - eBook

Preparations/Checks - 1

Migration Key - Generate the system migration key

License - Generate the license for the target migrated system (i.e. based on HANA DB).

Time zone

• Make sure both source system and the HANA severs have the same time zone settings and within SAP (transaction STZAC).

DB Free space

• As a shadow system is created, there should be at least 50Gb database free space, or more, depending on the existing components.

SAPLOCALHOST/Hostname

Make sure that the profile parameter SAPLOCALHOST matches the hostname in SM51.

WARNING: Hostname 'XXXXXXXX' is different from hostname 'YYYYYYYY' system runs with!

If you encounter the issue in the shadow instance, stop SAPup, stop the shadow instance, edit the parameter in the SHADOW profile directory, restart the shadow instance. Resume the process.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 44

Page 45: BW Migration to HANA - eBook

Preparations/Checks - 2

SAP Host agent – install/update to the latest version

SPAM Update to the latest SPAM, or download and extract it into /trans/EPS/in

SAPCAR download the latest SAPCAR for extraction

HANA Client

• Download and extract the HANA client

• For LINUX PAS, the DMO will install it as part of the migration

• For Windows PAS, install it manually before starting the DMO.

DOWNLOAD/Stack.xml

• The Maintenance Planner is now used to generate the stack.xml and download the target components, including the latest SUM, ACPs, and kernel (for all platforms)

Target HANA DB log mode

• Set the log_mode parameter to ‘overwrite’

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 45

Page 46: BW Migration to HANA - eBook

Preparations/Checks - 3

Deletion of some BW objects

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 46

In one of the dialog, you will enter values as per below. Discuss with your BW team.

Delete temporary BW query bookmarks older than ... days:: 99Delete sent BW query bookmarks older than ... days:: 9Delete BW traces older than ... days:: 99Delete BW statistics older than ... days:: 9

After extracting the SUM package, change owner to <sid>adm and the group to sapsysAs root, register to host agent -

cd <download directory>/SUM ./STARTUP confighostagent <SID>

Normal upgrade preparations are not included in this document, e.g. pre-downtime tasks like queue processing, stopping jobs, locking users, etc.

SUM

Page 47: BW Migration to HANA - eBook

Migration Steps/Screenshots - 1

Start DMO

http://sid-aba-aba:/1128/lmsl/sumabap/<SID>/doc/sluigui

Extracts from SAPupConsole.log – note that only DMO-related phases are included here

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 47

======= This is SAPup release lmt_008 V53.000 - all engines are running =======

=========== Welcome to Software Update Manager ===========

Important information for this program is included in * SAP Note 2223738* and further SAP Notes mentioned therein. The keyword is included in the relevantproduct-specific SAP Note. Read the current version before you start preparingthe procedure and check the SAP Note again for changes before you start theprocedure.

Page 48: BW Migration to HANA - eBook

Migration Steps/Screenshots - 2

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 48

>> 2016/08/05 13:14:32 START OF PHASE PREP_INPUT/MIG2NDDB_INI=========== Database Migration Option ===========Enter the target database type:01) - No migration02) * SAP HANADATABASE TYPE: SAP HANA

=========== Migration Parameters ===========Select tables for table comparison checks.01) * Do not compare table contents02) - Operate on all tables3) - Operate on selected tables only

Provide a valid migration key for installation number "0123456789".

For a detailed description of generating the key, see SAP note *317096* .

Migration Key: 1W5gdEM50D001eqtdQQ011e3

Page 49: BW Migration to HANA - eBook

Migration Steps/Screenshots - 3

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 49

SAP HANA SCALE OUTAre you running a SAP HANA Scale Out Landscape as a target for this migration?*If so, you can enable the landscape reorganization during the preprocessingof the migration.* .01) Execute Landscape ReorgEnter a number/range/"all" to change selection or "ok" or <ENTER> to complete

Test cycle This option will stop the tool after the downtime migration phase, enabling asimple repetition of it to optimize the procedure by tuning the parameters(like R3load processes). You should in no case use this option for aproductive run!01) X Enable Migration Repetition Option

Migration Repetition

Choose an execution strategy for transaction SGEN.Select option ‘Do not start ABAP load generation during the update’. There is more flexibility when doing it as a post-task (e.g. use more servers)

NOT for production

Page 50: BW Migration to HANA - eBook

Migration Steps/Screenshots - 4

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 50

PREP_CONFIGURATION/SUBMOD_MIG_INSTCLIENT/HDB_INSTCLIENT

=========== Target database client ===========The tool needs access to the target database client.Enter the following information:Path to "hdbinst" for client installation:

(This is where the HANA DB Client will be installed in LINUX. For Windows, this should be installed before starting DMO)

=========== Database Migration Initialization ===========You are going to migrate your system to a new database.Enter the following parameters of the target database:Target Hostname: xxxxxxxx

Enter the SID and instance number of the target database instance (might bedifferent from your SAP system):

SID of the target database: A4HTarget Instance Number: 00

Tenant DB name. If it does not exist yet, it will be created during the process. See next slide

Page 51: BW Migration to HANA - eBook

Migration Steps/Screenshots - 5

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 51

Enter the path of the SAP License file for your migrated SAP system:Target System License: (License key based on HANA DB)

*Additional Information:*

Specify the database connectivity data of the target database to be used forthe SAP system migration.In case you are using a SAP HANA multitenant database container, specify theconnectivity data of the target database tenant.In case you are using a SAP HANA multitenant database container, and want tocreate a new database tenant, specify the connectivity data of the databasetenant to be created.Enter password for target database user "SYSTEM".Enter password for target database SYSTEMDB superuser (MultiDB).

Page 52: BW Migration to HANA - eBook

Migration Steps/Screenshots - 6

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 52

=========== Parameters for BW-Specific reports ===========Within the next phases certain BI housekeeping tasks will be performed. Pleasedecide which data shall be deleted in the database.**Caution:* The data deleted during the next phases as specified in the fieldsbelow cannot be restored by resetting update process.*

Enter the amount of data to be deleted:Delete temporary BW query bookmarks older than ... days:: 99Delete sent BW query bookmarks older than ... days:: 9Delete BW traces older than ... days:: 99Delete BW statistics older than ... days:: 9

Values agreed with BW team

Page 53: BW Migration to HANA - eBook

Migration Steps/Screenshots - 7

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 53

=========== Perform Scale Up (Single Node) Prerequisite on SAP HANA if necessary ===========

*Action Required (if condition is met):*

*You decided to NOT run the SAP HANA Landscape Reorganization.

However, if you run an SAP HANA Single-Node system with scale-up, you must

manually import a file with specific SQL-information to enable the optimal

table partition.

Carry out the following procedure:*

1. Download the appropriate file that is in the attachment of the following

SAP Notes:

* For SAP Business Warehouse on SAP HANA, see SAP Note 1908075. From the

attachment TABLE_PLACEMENT_BW.zip, select the suitable SQL-file.

* For SAP Business Suite on SAP HANA or SAP S/4HANA, see SAP Note 1899817.

Choose the attachment: TABLE_PLACEMENT_ERP_* or TABLE_PLACEMENT_S4H_*

according to the version and SP level of the target system.

2. Edit the downloaded file by replacing all occurrences of $$PLACEHOLDER with

your SAP<sid>.

3. Import the edited files to SAP HANA using one of the following commands on

OS level of the managed system:

* */usr/sap/ABA/hdbclient/hdbsql -U SYSTEM -I <filename> -E 1*

* */usr/sap/ABA/hdbclient/hdbsql -U SUPER -I <filename> -E 1*

4. After the import, continue with the migration procedure.

Page 54: BW Migration to HANA - eBook

Migration Steps/Screenshots –Export/Import/Downtime

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 54

Checks after phase MAIN_SWITCH/SUBMOD_MIG_SWITCH_ORG/SUBMOD_MIG_DOWNTIME_RUN/EU_CLONE_MIG_DT_RUN were negative!Last error code set: Found 12 failed export processesFound 64 failed import processes

<< 2016/08/10 18:35:33 END OF PHASE MAIN_SWITCH/SUBMOD_MIG_SWITCH_ORG/SUBMOD_MIG_DOWNTIME_RUN/EU_CLONE_MIG_DT_RUN

REPEAT – some errors due to export and import server capacity (e.g. memory)

=========== Testcycle ===========Downtime migration finished successfully.01) - Yes, initialize the downtime migration phase and repeat02) * No, continue with next phaseDo you want to repeat the downtime migration phase?: No, continue with next phase

Downtime reached, migration repetition prompt

Page 55: BW Migration to HANA - eBook

Next – Post-processing on the New System

• Now that we have prepared the source BW system, and

• We have completed the SAP SUM (Software Update Manager) upgrade & migration using DMO (Database Migration Option) for the BW system from anyDB to BW on HANA.

• Stay tuned for the next section Post-processing on the Upgraded/Migrated System.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 55

Page 56: BW Migration to HANA - eBook

BW Migration to HANA

Part 3 of 3

Post-processing on the Migrated System

By OZSoft Consulting for ITConductor.com

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 56

Any DB

Migrate

Upgrade

Preparation Post-processing

Page 57: BW Migration to HANA - eBook

Introduction• This is Part 3 of the series of publication which provides an

overview and explanation of major steps and considerations for BW on HANA migrations

• Migrating a BW system from anyDB (any database) to HANA involves

1. Preparatory work in the BW system

2. SUM DMO Tool for SAP Upgrade and Migration

3. Post processing on the migrated system

• This part focuses on post-processing, which includes standard tasks after upgrade and HANA-specific post-tasks.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 57

Page 58: BW Migration to HANA - eBook

Post-processing - general

After migrating a BW system to HANA, there are two general groups of post-tasks

1. Standard tasks after a release upgrade or Unicode conversion

2. HANA-specific tasks

After the downtime processing AND before doing anything:

1. Create a backup of the database

2. Configure HANA parameter log_mode to ‘normal’

3. Configure HANA parameter enable_auto_log_backup to ‘YES’

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 58

Page 59: BW Migration to HANA - eBook

Standard post tasks

Below are some post tasks after a release upgrade/or Unicode conversion. The list is not exhaustive, not necessarily in sequence, and does not include site-specific process.

Note that the DMO tool, automatically run RS_BW_POST_MIGRATION during its post-processing phase, but there maybe a case of running some steps.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 59

Adapt dialog instances to the new release/kernel Run SECSTORE (OSS note 816861)

Run SICK Configure SAINT parallelism (OSS note 1309506)

For each instances, run SM51 and SM21 RZ12 – configure number of free WPs

Run SGEN (SAP_BASIS first, then the rest) DB13 – maintain standard jobs

Reconfigure/adapt 3rd party products RSA1 – check source systems - activate

Import profile parameters Solution Manager configuration

Page 60: BW Migration to HANA - eBook

HANA-specific post-tasks

• The cookbook, SAP First Guidance – DMO – BW on HANAlists down the tasks and steps in detail.

• OSS notes, blogs that were referenced while doing the steps, (i.e. to get more background information), are added in this document.

• Some of the tasks need to be a collaborative work with the BW Administrators and Security team.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 60

Page 61: BW Migration to HANA - eBook

HANA-specific post-tasks - 1

Task – Activate new HANA server functions (scriptserver)

• Login to the system database container to adjust the scripserver section of the daemon.ini and nameserver.ini

Task – Enable ‘Dynamic Range Partitioning’ feature of DataStore objects

• Refer to OSS note 2081135 for background on this Dynamic Range Partitioning

Task – Install Application Function Library (AFL)

• For the brief on AFL, refer to SAP help page - AFL

• For HANA Analysis Process (HAP) background, refer to First Guidance –SAP BW 7.40 powever by HANA - HANA Analysis Process

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 61

Page 62: BW Migration to HANA - eBook

HANA-specific post-tasks - 2

Task – Configuring DBMS User Management for SAP HANA

• This task need to be done in collaboration with the security team

• For more detail/additional document, refer to DBMS Users in SAP NW ABAP 7.40

• Additional information – Configuring DBMS User Management for SAP HANA

• SQL syntax to get the SQL_port for the connection information in DBCO

select sql_port from sys.m.services where service_name = ‘indexserver’

• SQL syntax to list DBMS user’s assigned roles

select * from effective_roles where user_name = ‘<DBMS_USER>’

• If you remove the assigned DBMS user through SU91, the DBMS user will notbe deleted from the HANA side. Remove it through program RSUSR_DBMS_USERS

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 62

Page 63: BW Migration to HANA - eBook

HANA-specific post-tasks - 3

• DBMS roles that are available for DBMS users

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 63

Page 64: BW Migration to HANA - eBook

HANA-specific post-tasks - 4

Task – Install Smart Data Access (SDA) Drivers

• Reference: SAP help page – SDA

Task – Transaction RS3HANA_CHECK/ADMIN

• This is for SAP HANA view. For background, refer to SAP First Guidance -SAP BW 7.40 on HANA - View Generation

Task – Create CDS views after migration

• CDS stands for ‘Core Data services’

• For brief on CDS, see Enhanced ABAP development with CDS

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 64

Page 65: BW Migration to HANA - eBook

HANA-specific post-tasks - 5

Task – RowStore to Column conversion

• In our migration, only empty, temporary

tables were listed during the check

Task – Check HANA with DBACOCKPIT

• No issue found

Task – RS_BW_POST_MIGRATION

• As the source system was already on 750/02, all mentioned OSS notes were already in place and no issue found.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 65

Page 66: BW Migration to HANA - eBook

HANA-specific post-tasks - 6

Task – ASU Tool box

• There are some follow-up post-tasks

Task – RSDU_TABLE_CONSISTENCY

• For more information, refer to Table Consistency Check for BW Tables on HANA

Task – RSDDB_INDEX_CREATE_MASS

• For more information, refer to BWonHANA: InfoProvider column views

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 66

Page 67: BW Migration to HANA - eBook

HANA-specific post-tasks – 7

Task - Migration Check – SHDB_MIGRATION_CHECK

Task - RS_BW_POST_MIGRATION

• If OSS note 2060342 has been implemented, then run step 12 ‘Create views for InfoProvider’. This was not performed since the system is already 7.50

Task - Repair inconsistent PSA tables

No issue found

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 67

• Note 1785060 - Recommendations for performing the migration to SAP HANA

Page 68: BW Migration to HANA - eBook

HANA-specific post-tasks - 8

Task - Regenerate all Transformations

• For reference, see Transformation – Consistency check programs

• Refer to OSS note 1408161 – Program for transformation activation

The note refers to required input parameters

• Transformation ID can be derived from table RSTRAN

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 68

Page 69: BW Migration to HANA - eBook

HANA-specific post-tasks - 9Task - Convert InfoCubes into in-memory optimized

• It is highly recommended to convert existing InfoCubes to SAP HANA-optimized Infocubes to reduce the data load. Note that after the migration to HANA, all newly created InfoCubes will be automatically be SAP HANA-optimized Infocubes.

• References:

Converting Standard InfoCubes to SAP HANA-Optimized InfoCubes

Aspects of the HANA-optimized InfoCube

• To check if an infocube is optimized, go to RSA1, under Settings Subtype = ‘SAP HANA optimized Infocube’.

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 69

Page 70: BW Migration to HANA - eBook

HANA-specific post-tasks - 10

Task – Migrate BW Workspaces

• Report RS_BW_POST_MIGRATION – steps 12 - 15

For explanation on ‘Unload Priority’, refer to SAP BW on HANA: Data Classification

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 70

Page 71: BW Migration to HANA - eBook

HANA-specific post-tasks - 11

The following tasks were not performed in our migration, some of them maybe required to take advantage of simpler data models on BW, and especially with the new BW/4HANA, just announced by SAP in Sep-2016:

• Converting DataStore Objects and Infocubes into advanced DSO

• Convert MultiProvider to CompositeProvider

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 71

Page 72: BW Migration to HANA - eBook

SummaryThe SAP BW upgrade and migration to SAP HANA has over 100 steps, and each environment maybe a little different based on the usage scenario and customer specific data encountered. However, these publication seek to provide an overview of the processes for planning and guidance so that you can confidently create a roadmap for BW on HANA and even next generation BW/4HANA migration involving:

• Preparation of the source BW system

• Carrying out the SAP SUM (Software Update Manager) upgrade & migration using DMO (Database Migration Option) for the BW system from anyDB to BW on HANA.

• Finally, post-processing on the Upgraded/Migrated System.

GOOD LUCK!

Author: Terry Kempis Editor: Linh Nguyen

ITConductor.com 72

Page 73: BW Migration to HANA - eBook

Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 73

About OZSOFTOZSOFT CONSULTING HEADQUARTER Email: [email protected] Stevens Creek Blvd., Suite 261 Worldwide: +1 (408) 416-2482Cupertino, CA 95014. USA North America Toll-free: +1 (888) 876-2482

http://www.ozsoft-consulting.com

Company> Delivering IT, with Peace of Mind! Specializing in SAP since 1996

ServicesSAP on AWS (Amazon Web Services) Cloud-based Managed ServicesPlan, Practice, Perform & Perfect IT• SAP Implementation: SAP Netweaver, SAP HANA, SAP BusinessObjects architected for secure, scalable,

high-performance and availability, as well as time/cost efficiencies.• SAP OS/DB Migration: Certified migrations using best practices to mitigate risks and minimize downtime.

Combined Upgrade and Migration support.• Cloud Excellence Operations: IT Process Automation increases operating efficiencies, and agility best

suited for cloud services. We provide partial to fully managed services while your SAP environment runs at AWS, using IT-Conductor for Cloud-based monitoring & automation.

Software Solutions

Full suite of SAP systems monitoring solutions for Microsoft Systems Center Operations Manager (SCOM) focus on Availability, Alerting, and Performance Management:

• SAP Management Pack• HANA Management Pack• BusinessObjects Management Pack• ASE Management Pack

Page 74: BW Migration to HANA - eBook

Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 74

About IT-ConductorIT-CONDUCTOR HEADQUARTER Email: [email protected] Stevens Creek Blvd., Suite 261 Worldwide: +1 (408) 416-2565Cupertino, CA 95014. USA North America Toll-free: +1 (888) 666-2899

http://www.itconductor.com

Company> Stop Guessing, Start Managing!IT-Conductor is the AMMO you need to:

• Automate

• Monitor• Manage &

• Optimize your SAP Performance & Operations including Performance Testing/Tuning as a Service.

IT-Conductor was officially founded in 2014 after more than 10 years of turning a big idea of automating IT into a practical solution. The big idea is to enable customers to "Stop Guessing, and Start Managing" their enterprise IT application environment. It's all about the integrated ability to collect vast amount of application and supporting infrastructure instrumentation data into standardized and time-synchronized intelligence that can be action upon.

> Monitor SAP WITHOUT Installation!The power of IT-Conductor lies in it's ease of access through a cloud platform to simply hook up to your environment via a secured connection and start agentlessly monitor and manage the applications, databases, hosts and related infrastructure components. Templates make application discovery fast and easy to go from monitoring to managing in minutes!

___________________________________________________________________________________________________________________________________________

© 2016 IT-Conductor, Inc. and/or its affiliates. All rights reserved. IT-Conductor is a trademark of IT-Conductor, Inc. or its affiliates. This publication may not be reproduced or distributed in any form without IT-Conductor’s prior written permission. If you are authorized to access this publication, your use of it is subject to the Terms of Service and Copyright and Trademarks posted on itconductor.com. The information contained in this publication has been obtained from sources believed to be reliable or from IT-Conductor’s own experience and research. IT-Conductor disclaims all warranties as to the accuracy, completeness or adequacy of such information and shall have no liability for errors, omissions or inadequacies in such information. This publication consists of the opinions of IT-Conductor organization and should not be construed as statements of fact. The opinions expressed herein are subject to change without notice. Although IT-Conductor may include a discussion of related legal issues, IT-Conductor does not provide legal advice or services and its research should not be construed or used as such.

Page 75: BW Migration to HANA - eBook

• Any Questions?

• Contact Info:

Linh Nguyen [email protected]

Terry Kempis [email protected]

Let

itconductor.com

@itconductor

75