Sie sind auf Seite 1von 95

SAP SRM UPGRADE & MIGRATION WITH DMO

Source system:
SAP : EHP1 FOR SAP SRM 7.0
Database : Oracle 11.2.0.4
Operating System : Linux 11.3

Target system :
SAP : EHP3 FOR SAP SRM 7.0
Database : HANA 1.00.102
Operating System : Linux 11.3

1 Overview
This document shows you all steps of the update procedure with the Software Update
Manager (SUM) tool using its Downtime Migration Option (DMO).To smooth the way to the
target database, SAP introduced a one-step procedure that combines the system update and
the database migration. This is provided with the Database Migration Option (DMO) feature,
which is delivered with the Software Update Manager (SUM) tool, a part of the Software
Logistics Toolset (SLToolset).

The main benefits of DMO are:


Simplified migration steps
System update and database migration combined in one tool
Reduced business downtime
The source database remains consistent, thus a fast fallback is possible.

2 Prerequisites
Download the below s/w from the Service Market Place

SUM tool SUM10SP14_8-20006543.SAR


HANA client IMDB_CLIENT100_102_3-10009663.SAR
Kernel 7.42 51049350_5.ZIP

Capgemini Public
Register the Source system SRT in Service market place (SMP) apply and install license key.

Generating HANA DB license key.

Capgemini Public
You need the hardware key of Hanadb host for generating license key.
logon to hanadb SQL prompt using command
hdbsql -n localhost -i 00 -u SYSTEM -p ucs4HANA
use below sql command for hardware key.
hdbsql> SELECT HARDWARE_KEY, PRODUCT_NAME FROM M_LICENSE

Capgemini Public
Capgemini Public
Install the hana db license key using hana studio

Enable digital signature SE38: RTCCTOOL

Capgemini Public
Its in green status

Else:

Capgemini Public
Check pool, cluster tables & invalid BCD numbers.

Execute report SDBI_CLUSTER_CHECK for checking cluster tables.

Capgemini Public
Capgemini Public
All ok.

Execute report SDBI_POOL_CHECK for checking pool tables.

Capgemini Public
Execute report SDBI_CHECK _BCD_NUMBERS for checking invalid BCD numbers.

Capgemini Public
Check whether transport system is working properly

Capgemini Public
SE14 - Check and delete invalid Temporary tables.

Capgemini Public
DB02 : Check and create missing indexes

SM13: delete all cancelled and error updates.

Capgemini Public
SM12: Remove old system locks.

SM58: Delete old transactional RFC'S.

Capgemini Public
SMQ1:Process all the stuck queues & delete failed queues.

Capgemini Public
SMQ2 :Process all the stuck queues & delete failed queues.

Capgemini Public
Configure SSFS for oracle:

SAPNOTE: 1622837 - Secure connection of AS ABAP to Oracle via SSFS

If SAPGLOBALHOST runs on Unix or Linux, proceed as follows (Permission 700):

Log on to SAPGLOBALHOST to the operating system as user <sid>adm and execute the
following commands:
chmod 700 <dir_global>/security
chmod 700 <dir_global>/security/rsecssfs
chmod 700 <dir_global>/security/rsecssfs/data
chmod 700 <dir_global>/security/rsecssfs/key
Use "ls -al" to check the result. For example:

drwx------ <sid>adm sapsys data


drwx------ <sid>adm sapsys key

Capgemini Public
Maintaining the SSFS profile parameters in Default profile:
rsec/ssfs_datapath = $(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$
(DIR_SEP)data
rsec/ssfs_keypath = $(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$
(DIR_SEP)key

Set below environmental variables:


setenv RSEC_SSFS_DATAPATH /usr/sap/EC5/SYS/global/security/rsecssfs/data
setenv RSEC_SSFS_KEYPATH /usr/sap/EC5/SYS/global/security/rsecssfs/key

Log on to SAPGLOBALHOST as the <sid>adm user.


Make sure that the environment variables RSEC_SSFS_DATAPATH and
RSEC_SSFS_KEYPATH are set.
Use the command line tool of the secure storage rsecssfx from the SAP kernel to add entries for
the user <name> and the password <pwd>, and to add any information about the target
database as follows:

rsecssfx put DB_CONNECT/DEFAULT_DB_USER <name> -plain


rsecssfx put DB_CONNECT/DEFAULT_DB_PASSWORD <pwd>

Set the below values:

Capgemini Public
Default Profile parameter : rsdb/ssfs_connect = 1
Environment variable: rsdb_ssfs_connect 1
Set the environment variable permanently for both sidadm, orasid .
Go to /home/sidadm
Go to /home/orasid

Reset below parameter:

Delete table sapuser.

Capgemini Public
Restart the system.

Upgrade Host agent:

Current version:

Download latest version of host agent


Uncar them in temperory loaction
Go the temp location and execute command:

Capgemini Public
./saphostexec -upgrade

Run update statistics

Capgemini Public
Options: 7, 1,c,c,c

Collect dictionary statistics

Options
Brtool options
7,5,c,c

Collect system statistics


Brtool options
7,6,c,c,

Oracle: Suppressing Long-Running Phases:


brconnect -u / -c -f stats -o <schema_owner> -t all -f allsel,collect,space p 8

Capgemini Public
Migration optimization Techniques for oracle DB:

Capgemini Public
Tuning the Oracle parameters for optimized export: change in PFILE

Capgemini Public
Restart the database.

Disable archive log mode:

Go to /sapmnt/sid/exe and execute sql scripts for privileges.

Command to disable archive log mode.

start the oracle db in Mount mode.

startup mount;

sql>alter database noarchivelog;

shutdown and start the database.

Capgemini Public
Source System : SAPSYSTEMNAME Must be set to SID

Generate Migration Key:

Capgemini Public
Capgemini Public
Add entries in etc/hosts file in both hosts:
Enter hosts names of both source and targets apps and db servers.

Hope you guys know how to do this.

Add the required parameters in SAPup_add.par file.

By default the schema of HANADB will be SAP<SID>

if you want to keep your own schema name then add the parameter

/migrate/targetschemasid = SRM

Now schema name would be SAPSRM.

Also add the parameter /ORA/update_spacestat = 0 as per sap standard document procedure.

If the file SAPup_add.par file does not exist in SUM/abap/bin then create the file and add the
parameters and place the file in SUM/abap/bin.

Generating the STACK.XML file for DMO

Execute the Verification Check for ECT system, registered in Solution manager system.
T-Code : LMDB

Capgemini Public
Verification check should be green before proceeding with stack file generation.

Capgemini Public
Tcode: solman_workcenter

Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
For DMO we need to select two kernels.

One for source system database(oracle) & other for target system database (HANA).

Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
3 DMO Upgrade & Migration:

Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
AS EPS/in was 100% full we moved EPS/in to different directoty and created a soft link.

Capgemini Public
Capgemini Public
Capgemini Public
Perform SPDD and SPAU changes

Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Implement the below notes

Implemented above mentioned notes in source system.

Capgemini Public
Capgemini Public
Capgemini Public
Downloaded the IW_FNDGC 100 addon and repeated the phase.

Capgemini Public
Downloaded the required files and repeated the phase.

Capgemini Public
Even after providing the required files(IW_FNDGC) in download directory SUM tool was unable
to pick them.

SAP Note: 1931992

Capgemini Public
New stack file generation as per above mentioned sap note.

Capgemini Public
Capgemini Public
Capgemini Public
2.3 Add-on selection, now select SAP GATEWAY 2.0 as per SAP note.

Capgemini Public
Below are the add-ons which we have selected as they were in green color (Mandatory
addon's).

Capgemini Public
2.4 section OS/DB INDEPENDENT FILES

For DMO we need to select two kernels one for source system db(oracle) and the other for
target system db (HANA).

Capgemini Public
The required files are automatically selected here in stack, which has actually caused the addon
conflicts.

Capgemini Public
`

Capgemini Public
Capgemini Public
We have provided the new stack file and repeated the phases from begining.

As we have generated new stack file few software components were added newly which were
missing from download directory.

when error was occured we have downloaded those files and placed them in download directory
and repeated the error phase.

Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
brspace -function tscreate -tablespace PSAPSR3740 -class none -data both -size 200 -incrsize
200 -maxsize 32000 -autoextend yes

brspace -function tsextend -tablespace PSAPSR3740 -size 200 -incrsize 200 -maxsize 14095
-autoextend yes

Capgemini Public
Capgemini Public
Capgemini Public
Release all the transports from source system.

Capgemini Public
Capgemini Public
Mentioned object not found in database.

Re-run with init option for this task.

Capgemini Public
SA38: Execute the program BTCTRNS1 to pause the jobs.

Capgemini Public
Capgemini Public
Above highlighted command is used for migration.

Capgemini Public
Above Screen print shows the Migration process.

Capgemini Public
Capgemini Public
Hana memory issue:

Taken the restart of Hana DB.

And started from phase it was stopped.

Error: transaction rolled back due to memory issue in HDB

Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
Capgemini Public
4 Post activities
SGEN : Run sgen for compiling the all newly created programmes.

Capgemini Public
SA38: Release all the paused jobs using program BTCTRNS2.

Capgemini Public