HANA Migrating Single DB To Multi Tenant Database
HANA Migrating Single DB To Multi Tenant Database
HANA Migrating Single DB To Multi Tenant Database
DB to Multi Tenant
Database
Purpose/Benefit :
You can run multiple tenant databases on one
Options Available
1. Start from scratch with a new SPS09 installation,
during the installation you get the option to install
a single container or a multi container database
node
Options Available
2. Convert an existing single server to a multi
tenant database, please not that the change is
permanent and cannot be reversed.
Prerequisites :
SPS 9 and above
Statistics Server should be migrated to
Nameserver.
Steps to Convert :
Steps to Convert :
2. Execute below command
Hdbnsutil convertToMultiDB
Steps to Convert :
This action executes the following steps:
1. Set multidb mode flag in the configuration
2. Create the system and tenant database
3. Updates the secure store in the file (SSFS) system.
The newly created database maintains the original data
and has the original port configuration, the initial "HDB
start" command only starts the system database
though. Therefore it shows that you can start the
tenant database by an SQL statement, after you do
this it will automatically start when using the "HDB
start" command in the future.
Steps to Convert :
This action executes the following steps:
1. Set multidb mode flag in the configuration
2. Create the system and tenant database
3. Updates the secure store in the file (SSFS) system.
The newly created database maintains the original data
and has the original port configuration, the initial "HDB
start" command only starts the system database
though. Therefore it shows that you can start the
tenant database by an SQL statement, after you do
this it will automatically start when using the "HDB
start" command in the future.
TroubleShooting
When you try to connect with hdbsql to this new
SystemDB database it will fail with the error:
* 10: invalid username or password SQLSTATE: 28000
Reason : This is because you need to reset the
password of the SYSTEM user for the SystemDB
database.
Solution : Make sure database is stopped or stop using
command HDB stop.
Then reset the system password of the user SYSTEM
with the command hdbnameserver
-resetUserSystem.
Troubleshooting