Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 845

CMS DB Migration from SQLAnywhere to HANA Database for Linux/Unix environment

$
0
0

This document helps the user to migrate CMS DB from SQLAnywhere to HANA Database where BOE is installed in Linux/Unix environment.

To make it simple I have divided the migration into two phases where Phase 1(Configuration Phase) deals with the configuring the required settings for migration and Phase 2(Migration Phase) deals with the actual migration.


Phase 1: Configuration Phase                     

In this phase we install the HANA client, configure the DSN, which is explained in detail below.


  1. Install HDB Client in the machine where BOE is installed.
  2. Using the below command copy libodbcHDB.so file from HDB Client directory to linux_x* directory.
  3. cp <HDB_Client_Install_Directory>/libodbcHDB.so<BOE_Install_Dir>/sap_bobj/enterprise_xi40/linux_x64/
  4. cp <HDB_Client_Install_Directory>/libodbcHDB.so<BOE_Install_Dir>/sap_bobj/enterprise_xi40/linux_x86/
  5. Add the details of HANA server in odbc.ini which is present in <BOE_Install_Dir>/sap_bobj/enterprise_xi40/

                                  Below is the screenshot, which has details of HANA driver

                                  Note: ServerNode Value should be ServerNode=<HOSTNAME OF HANASERVER>:3<INSTANCENUMBER>15

                              1.png

 

                                                                                               echo $ODBCINI


                                          Note: Output should be: <BOE_Install_Dir>/sap_bobj/enterprise_xi40/linux_x64/

 

 

Phase 2: Migration Phase

                            In this phase, we perform the actual migration using cmsdbsetup.sh script.


                                 Step 1: Run cmsdbsetup.sh script present in <BOE_Install_Dir>/sap_bobj/


                                                                   ./ cmsdbsetup.sh


                                 Step 2: Specify the name of the node and press enter. In this example "lnxsuse11x64" is the name of the node.

 

                                                  2.jpg

                                 Step 3: You need to stop the node before migration so select option 3 to stop the node.

                                                   3.jpg

                                 Step 4: Select option 4 "copy" for Database Copy(by default it will be "update").

                                     4.jpg

                 Step 5: It will show a warning message that this operation will deleted BIP tables in destination DB. Select option 3 "Yes"(by default it will be "No")

                                                                5.jpg

                         Step 6: It will prompt whether you need current DB(SQLAnywhere) as destination database. You need to select option 2 "No"(by default it                                            will be "Yes")

 

                                        Note: If you choose yes it will delete all BIP tables from current DB. In this our destination DB is HANA so select option 2.

                                                    6.jpg

                        Step 7: Select option 8 “SAP HANA” as destination database.

                                                                     7.jpg

                        Step 8: Enter the ODBC DSN for connecting HANA DB(This values should be same as values entered in odbc.ini file). In this                                                             example “Hana_Migration” is DSN name for HANA DB.

                                                    8.jpg

                        Step 9: Enter User Name for connecting HANA DB.

                                                   9.jpg                        Step 10: Enter Password for connecting HANA DB.

                                                   10.jpg

                        Step 11: Enter CMS Cluster Key.

                                                   11.jpg

                        Step 12: Now you need to specify Source CMS database. In this case you need to select option 2 “SQLAnywhere”.

                                                    12.jpg

                        Step 13: Enter the ODBC DSN for connecting SQLAnywhere DB(This values should be same as values entered in odbc.ini file).

                                      In this example “BI4_CMS_DSN_1452244015” is DSN name for SQLAnywhere DB.

                                                   13.jpg

                        Step 14: Enter User Name for connecting SQLAnywhere DB.

 

                                                       14.png

 

                        Step 15: Enter Password for connecting SQLAnywhere DB.

                                                    15.jpg

                        Step 16: Enter CMS Cluster Key.

                                                  16.jpg

                                Step 17: Data successfully migrated to HANA DB.

                                                      17.jpg

                                Step 18:  You can see CMS tables in HANA DB using HANA Studio.

                                              18.jpg


Viewing all articles
Browse latest Browse all 845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>