You need to edit nameserver.ini file. Use the operating system user <SID>adm to edit the file /usr/sap/<SID>/global/hdb/custom/config/nameserver.ini in the file system and add the following lines −
[trace] licensing = debug
Once you edit the file → Restart the instance.
Check the latest nameserver trace file nameserver_<your host name>.<port>.<filenumber>.trc, which is to be found under /usr/sap/<SID>/HDB<InstanceNumber>/<hostname>/trace/
Check the end of that trace file to find the installation and system number in lines.
Licensing AbstractLicenseManager.cpp(00063) : Installation # : "XXXX0XX234X"
Licensing AbstractLicenseManager.cpp(00063) : System # : "XXXXXXXXXXXX4234523432434”
You have to use this installation number and system number to request a new license key for your database.