Loading...

Creating the SAP HANA HDBUSERSTORE Key

If you want to have the SAP HANA client computer communicate with the SAP HANA Secure User Store, create a SAP HANA HDBUSERSTORE key on the client computer.

Best Practice: Use a SAP HANA HDBUSERSTORE key instead of a user name and password.

Procedure

  1. Log on as the <SID> admin in SAP HANA, on the command line, type the following command:

    su - <SID>adm
    hdbuserstore -i set <key_name> <client_computer>:3NN13,<client_computer>:3NN15 <user_name> <password>

    where NN is the HANA SID number starting from 00 to 99.

    Example:

    • If you have HANA SID with One Node (machine01 only) with the SID name X01 and instance number 10, use the following command:

      su – x01adm
      hdbuserstore -i set MYKEY machine01:31013,machine01:31015 SYSTEM Password@12

    • If you have HANA SID with four nodes (machine01 to machine04) with SID name Y01 and instance number 99, then create the key only on the node that appears first in the SAP HANA database instance or on the node that the user has manually set to appear as the first node. You do not create the KEY on the other three nodes. To create the key, use the following command:

      su – y01adm
      hdbuserstore -i set MYKEY machine01:39913,machine01:39915,machine02:39913,machine02:39915,machine03:39913,machine03:39915,machine04:39913,machine04:39915 SYSTEM Password@12

  2. On the command line, type the following command to verify the key information.

    hdbuserstore LIST <KEY>

    where, KEY is the SAP HANA HDBUSERSTORE key.

    Example:

    • To verify one node HANA SID machine01:

      hdbuserstore list MYKEY
      KEY MYKEY
        ENV : machine01:31013,machine01:31015
        USER: SYSTEM

    • To verify four node HANA SID machine01 to machine04:

      hdbuserstore list MYKEY
      KEY MYKEY
        ENV : machine01:39913,machine01:39915,machine02:39913,machine02:39915,machine03:39913,machine03:39915,machine04:39913,machine04:39915
        USER: SYSTEM

Note: In a HANA replication setup, for example, if you have a replication system of HANA SID where the first two nodes (machine01 and machine 02) are master nodes, and the other two nodes (machine03 and machine04) are standby nodes, then create the key only on the node that appears first in the SAP HANA database instance or on the node that the user has manually set to appear as the first node.

Last modified: 11/4/2019 4:42:58 PM