MDM OS DB Migration
Share

[[{“value”:”

SAP MDM Migration-Heterogeneous Steps by Steps

 
In this blog, we will cover SAP MDM installation on the target server, SAP HANA database installation on the target server, repository export from the source server, and repository import into the target server.
 
Before starting the MDM installation, let’s understand some important terms used in MDM.

What is MDM?

SAP MDM (Master Data Management) is a tool used to store, manage, and maintain important business data in one central place.
Example
SAP ERP
CRM
SRM

MDM Component Used during the Installation.

MDM Import Server (MDIS) Package
MDM Server (MDS) Package
MDM Shared Server Content Package

MDM Console 

MDM Console is the administration tool in SAP MDM that is used to manage and monitor the SAP MDM server environment.
 
Prerequisites
You need install any Database server it will connect to MDM Application. In my case i am using HANA DB. So HANA DB need to install first. 

Our Landscape

This slide presents the Source and Target Landscape, with a high-level summary of each process step.  Distributed Environment.  SAP MDM Application is on Different Hardware and HANA DB is on Different Hardware in Target.

 
shalabhkumar_1-1789984657129.png

 

This slide present Post Steps in Target SAP MDM Application Server with HANA DB.

 

 

shalabhkumar_1-1789982919097.png

 
 
Source System Details
Windows Server 2016
Ram 16 GB
Database SQL Server 2012
MDM Version 7.1

Target System Details

Linux  Enterprise Server 15 SP6  with 8 GB Ram
Database HANA SPS08 with 16 GB Ram
MDM Version 7.1
We need to install HANA DB on different Hardware.

MDM Application File System Details.
/sapmnt/SID
/usr/sap
/usr/sap/SID

MDM Installation in Target System 

Step 1

Target Server File System Details.
You need to install MDM Server in Target.
You need to install HANA DB in Target.

shalabhkumar_8-1788853157328.png

Step 2 

Execute SWPM.

shalabhkumar_0-1788852731821.png

Step 3 

Select Custom.

shalabhkumar_1-1788852820966.png

Step 4

Give SID of Server.

shalabhkumar_2-1788852864393.png

Step 5

Give Master Password.

shalabhkumar_4-1788852924482.png

Step 6

Next with default screen.

shalabhkumar_5-1788852970445.png

Step 7

Give MDS Instance No.

shalabhkumar_6-1788853016396.png

Step 8

shalabhkumar_7-1788853054518.png

Step 9

HANA Client need to install first and give HANA client path here.

shalabhkumar_0-1788853376176.png

Step 10

MDIS Instance No

shalabhkumar_1-1788853433573.png

Step 11

This Default MDIS Port

shalabhkumar_2-1788853521000.png

Step 12

This is main Screen you should handy below MDM package.

shalabhkumar_3-1788853582582.png

Step 13

Click next and Installation will start.

shalabhkumar_4-1788853716709.png

Step 14

SAP MDM Installation has been finished.

Step 15

As you already installed HANA DB in your Environment.
Now you need to create one User in HANA DB level from Studio with any name.
I have created here MDMUSER.
Now disable password lifetime of MDMUSER.
ALTER USER MDMUSER DISABLE PASSWORD LIFETIME;

shalabhkumar_4-1789384217214.png

shalabhkumar_5-1789384248671.png

Step 16

Now preform Post step from MDM application side.
You can see /usr/sap/SID below MDIS62 and MDS 61 Instances created

shalabhkumar_5-1788853996545.png

Step 17

You can see mds.ini in screenshot. We need to modify this file to connect the HANA DB but before we need to take backup of mds.ini file and then we will modify.

shalabhkumar_6-1788854155040.png

Step 18

After backup of mds.ini file open this in vi mode and paste below entry and saved the file.
HANA Repository Type=COLUMN
HANA DSN Connect=True
HANA Library Path=/usr/sap/hdbclient

shalabhkumar_0-1789382047426.png

Step 19

Now create odbc.ini file in home/sidadm from vi ~/.odbc.ini command.
Now perform the steps below

vi ~/.odbc.ini
export ODBCINI=$HOME/.odbc.ini
echo $ODBCINI
/home/sidadm/.odbc.ini
echo ‘export ODBCINI=$HOME/.odbc.ini’ >> ~/.profile
source ~/.profile
odbcinst -q -s

shalabhkumar_10-1788855237829.png

Step 20

Now run this command to check connection Status

Same MDMUSER and Password will use here which is you in created Step 15.
isql -v MDMHANA MDMUSER password
Connected.

shalabhkumar_11-1788855410240.png

Till here our MDM installation HANA DB installation and Connection Connectivity has been completed.

Step 21

Now we are going to Export repository  from Source System.

For repository Export take the backup of your source system, log in to the source system and open the MDM Console.
Ensure that the sidadm password is available before starting the activity.

shalabhkumar_0-1788873819472.png

Step 22

Open MDM Console and first Mount the Server.

shalabhkumar_1-1788874508429.png

Step 23

It will ask you MDM server name. Provide Server name and press Ok.
MDM Server Mounted on Left Side.

shalabhkumar_2-1788874617458.png

shalabhkumar_3-1788874723087.png

Step 24

Now Right Click ok SRM_MDM_CATALOG and Connect to Repository.
It will ask you user name password.

shalabhkumar_4-1788874892041.png

shalabhkumar_5-1788874939993.png

After putting password. Below screen will come.
Then you need Start Repository
Right Click on SRM_MDM_Catalog Start Repository and Update Indices.

shalabhkumar_7-1788875316736.png

Step 25

Now Right Click on Catalog and Archive Repository.
It will ask you Verify Repository Click Yes.

shalabhkumar_8-1788875500318.png

shalabhkumar_9-1788875619680.png

Click Ok You can see Repositary.
It will show you Repositary Export Result. Click on Yes.

shalabhkumar_10-1788875729770.png

shalabhkumar_11-1788875882119.png

Step 26

You can check at Server level Repository path.
/usr/sap/SID/MDSxx/mdm/archives

shalabhkumar_0-1788876175744.png

Source System Activity has been completed here.  Now will Start on Target Server 

Step 27

Now transfer this Repository to Target server in same location for import.
Login in Target Server
/usr/sap/SID/MDS/mdmxx/acchives

shalabhkumar_1-1788876512728.png

Repository  copied in Target Linux Server in same location.

Step 28

Now go to Target MDM Application Server and take backup of mds.ini file.
Again open MDM Console and Mount Target MDM Server there.
Right Click and Mount Mount MDM server
You need to provide MDM hostname.

shalabhkumar_2-1788876875048.png

Step 29

Now Start MDM Server.
Give sidadm password.
Again Right Click on MDM Server Unachives Repository (It means we are importing Source repository to Target Server)

shalabhkumar_3-1788876956684.png

shalabhkumar_4-1788877101078.png

 

shalabhkumar_5-1788877184334.png

Add

Step 30

Click on right 3 dots for making connections.
DBMS Server Add
Select DBMS Server MDMHANA. Selct DBMS Type HANA

shalabhkumar_6-1788877442592.png

shalabhkumar_7-1788877465228.png

shalabhkumar_8-1788877481213.png

shalabhkumar_9-1788877497757.png

Step 31

Provide mdmuser and password here which we created in HANA Studio.
Give any Repository Name and Finish

shalabhkumar_10-1788877910415.png

shalabhkumar_11-1788877942881.png

shalabhkumar_12-1788877981381.png

Step 32

Unarchive Repository Process has been started. Once it is finished.
Then connect to Repository.
Provide Source Repository User and Password here.
Now Start Repository with Update Indices.

shalabhkumar_0-1788879749574.png

shalabhkumar_1-1788879803770.png

shalabhkumar_2-1788879860437.png

shalabhkumar_3-1788879914449.png

Step 33

Repository has been restored in Target Server.
We can verify Source MDM Repository User and Roles showing in Target Server after Unarchive Repository.
We can verify Repository after Unarchive in Target.
Right Click on Server Verift Repository and check.

shalabhkumar_4-1788880110555.png

Step 34

Now we can check MDM application connected to HANA Server.
Run select * from M_CONNECTIONS query in HANA Studio.
You can see Client IP is MDM application IP.

shalabhkumar_5-1788880346765.png

Step 35

Once Repository imported in Target Server. Go to below path
/usr/sap/SID/MDSxx/config
Open the MDS.INI file in read-only mode to review the repository configuration details. The repository user ID and password can be found in the file.
MDMUSER is the same user which is created in Step15.
If you create any new repository in MDM Console that information will save in mds.ini file.

shalabhkumar_0-1789386402873.png

Congratulations! You have successfully learned SAP MDM installation, repository export from the source server, and repository import into the target server through this blog.
 
Conclusion:

OS/DB Migration means moving the SAP MDM system from one Operating System and/or Database platform to another while keeping the same MDM repository data and business functionality. All MDM repositories, configurations, users, workflows, and interfaces from the source environment to the target operating system and database platform.

The SAP MDM OS/DB migration was successfully completed with zero data loss, validated repository consistency, successful interface connectivity, and stable system performance, ensuring business continuity in the new environment.

After migration:
All MDM Repositories Were Successfully Migrated.
Repository structure remained unchanged.
No data loss occurred during migration.

System Performance Improved:
Faster database processing in HANA DB.
Better hardware and operating system utilization.

“}]] 

  Read More Technology Blog Posts by Members articles 

#abap

By ali

Leave a Reply