hana migrating single db to multi tenant database

Upload: ravinderpalsingh

Post on 21-Feb-2018

252 views

Category:

Documents


1 download

TRANSCRIPT

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    1/20

    Converting Single

    DB to Multi TenantDatabase

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    2/20

    Purpose/Beneft :You can run multiple tenant databases on one

    SAP Hana System while still having only onesotware version or a SAP HAA system!

    Some advantages are:

    Strong separation o data and users!

    Bac"up and restore available by tenantdatabase!

    #esource management by tenant $cpu%memory&

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    3/20

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    4/20

    'ptions Available+! ,onvert an e-isting single server to a multi

    tenant database% please not that the change ispermanent and cannot be reversed!

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    5/20

    Prere.uisites :

    SPS * and above

    Statistics Server should be migrated toameserver!

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    6/20

    Steps to ,onvert :

    (! Stop HAA database

    HB stop

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    7/20

    Steps to ,onvert :+! 0-ecute below command

    Hdbnsutil 1convert2o3ultiB

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    8/20

    Steps to ,onvert :2his action e-ecutes the ollowing steps:

    (! Set 4multidb mode5 6ag in the confguration

    +! ,reate the system and tenant database

    7! 8pdates the secure store in the fle $SS9S& system!

    2he newly created database maintains the original dataand has the original port confguration% the initial HB

    start command only starts the system databasethough! 2hereore it shows that you can start thetenant database by an S;< statement% ater you dothis it will automatically start when using the HBstart command in the uture!

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    9/20

    Steps to ,onvert :2his action e-ecutes the ollowing steps:

    (! Set 4multidb mode5 6ag in the confguration

    +! ,reate the system and tenant database

    7! 8pdates the secure store in the fle $SS9S& system!

    2he newly created database maintains the original dataand has the original port confguration% the initial HB

    start command only starts the system databasethough! 2hereore it shows that you can start thetenant database by an S;< statement% ater you dothis it will automatically start when using the HBstart command in the uture!

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    10/20

    2roubleShooting=hen you try to connect with hdbs.l to this new

    SystemB database it will ail with the error:

    * 10: invalid username or password SQLSTATE: 28000

    #eason : 2his is because you need to reset thepassword o the SYS203 user or the SystemBdatabase!

    Solution : 3a"e sure database is stopped or stop using

    command HB stop!2hen reset the system password o the user 4SYS2035

    with the command 4hdbnameserver?reset8serSystem5!

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    11/20

    2roubleshooting

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    12/20

    ow connect to the database with the hdbs.lcommand 4hdbs.l ?i @instance number ?n@hostname:7--(7 ?d SystemB ?u SYS2035ater which the system will as" you or apassword!

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    13/20

    ow you have to start the tenant database with theS;< command 4A

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    14/20

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    15/20

    Ater doing this you can e-it the hdbs.lcommand and chec" i the tenant database isrunning with the 4sapcontrol ?nr @instance?unction DetProcess

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    16/20

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    17/20

    How to Add tenant B to HAAStudio

    2o Add 3ulti 2enant atabase to HAA studio%ollow below steps!

    (! Select Add ew system

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    18/20

    How to Add tenant B to HAAStudio+! Select Add ew system

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    19/20

    How to Add tenant B to HAAStudio7! 0nter 8sername and Password

  • 7/24/2019 HANA Migrating Single DB to Multi Tenant Database

    20/20

    How to Add tenant B to HAAStudioF! 2enant atabase is shown separately!