hdbsql -n localhost -i 1 -u username -p Password \s
This command will display the details of HANA database such as the host name, database, user, Kernel version, SQLDBC version, etc.
hdbsql -n localhost -i 1 -u username -p Password "SELECT CNO,TITLE,FIRSTNAME,NAME,ZIP FROM Database_Name"
The above command displays the following result about concurrent sessions −
CNO | TITLE | FIRSTNAME | NAME | ZIP
To start and stop HANA database using HDB, you have to login to HANA system host as <sid>adm and run the following command −
/usr/sap/<SID>/HDB<instance number>/HDB start /usr/sap/<SID>/HDB<instance number>/HDB stop