Details: SAP is installed with alias name. Hdbuserstore always points to alias name, but instead I wanted it to point to the hostname to which it is required.
Under the /usr/sap/SAPSID/hdbclient/install , there is a file "installation.ini" .
Modify the parameter - Hostname=<hostname/aliasname>
This will redirect the command "hdbuserstore list" to look for the correct directory and key files.
Solution:
The snote that is helpful to resolve this issue is 2120226 - SAP HANA client software and entries in hdbuserstore when using virtual host names for SAP application servers.Under the /usr/sap/SAPSID/hdbclient/install , there is a file "installation.ini" .
Modify the parameter - Hostname=<hostname/aliasname>
This will redirect the command "hdbuserstore list" to look for the correct directory and key files.
If it is only HANA , then the location of the hdbuserstore is always pulled from the environment variables.
Eg: Check for the following env variables
HDB_USE_IDENT
or from /hana/shared/(SID>/HDBXX/home/.sapenv.csh or .sapenv.sh