License expired and SAP HANA system is locked

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 −

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.

Ex −

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.