You are on page 1of 5

How to Change HANA DB Hostname in Working System

This document explains about changing HANA database hostname and provides steps to that should
be performed to make sure that the database connection remains intact after the DB hostname
change.

Prerequisites
• Root and sidadm user access.
• HANA Database is stopped and killed the sapstrartsrv service of HANA.
• All the applications connecting to the database are stopped.

Steps
1. Launch the resident hdblcm with root user.

Go to path /hana/shared/SID/hdblcm trigger the below command

./hdblcm and provide the details as per the screenshots below.

Choose option 9

1
How to Change Hostname of HANA Database
2. Provide the new hostname

3. Select the respective system

4. Select local

5. Provide the inputs for the below location, Press enter for the default input

2
How to Change Hostname of HANA Database
6. The output provides summary

7. HANA Database will be started – Y

The log will show that SAP HANA Database System Renamed.

3
How to Change Hostname of HANA Database
ABAP Connection Settings
After changing HANA Database hostname, the same must be updated at ABAP. Else R3trans -d
connection will fail, and DB connection would have become obsolete.

• Change DB hostname in profile


• Set the hdbuserstore with new hostname in SAP ABAP application (PAS, AAS etc.)

> hdbuserstore set DEFAULT <new_db_hostname>:3<nn>15 <schema>


<password>

4
How to Change Hostname of HANA Database
JAVA Connection Settings
For Java connection to work, the DB hostname has to be changed in configtool

• Change the DB hostname in profiles.


• Update JAVA to DB connection details using configtool.

Launch the config tool –


>\usr\sap\<SID>\J <Instance_No>\j2ee\configtool\configtool.sh

Click on Save and start the java system.

5
How to Change Hostname of HANA Database

You might also like