Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
Showing results for 
Search instead for 
Did you mean: 

In my last post of Hana with odbc on Ubuntu 12.04,I mentioned I will write another post about how to install HANA client on Linux, well, here it is. Install HANA client on Linux is a little bit tricky. Several things need to bring out just in case someone else run into the same issues.

1, Download HANA client

Download HANA client installation zip file from here, make sure you select the appreciate version.

2, Unzip the downloaded file

Navigate to the unzip folder and go into SAP_HANA_CLIENT

3, Execute following Command

chmod +x hdbinst

chmod +x hdbsetup

chmod +x hdbuninst

chmod +x instruntime/sdbrun

The last execution command is very important, otherwise hdbinst, hdbsetup and hdbuninst couldn't execute due to missing sdbrun.

4, Install

In order to install hana client on Ubuntu, type following command in your terminal.

     sudo ./hdbinst -a client

If everything run smoothly, you will get following response.

ethanz@ubuntu:~/Downloads/SAP_HANA_CLIENT$ sudo ./hdbinst -a client

SAP HANA Database Client kit detected.

SAP HANA Database Installation Manager - Client Installation

Select a SAP HANA Database Client installation:

No  | Installation Path                    | Version        | Mode
[0] | /opt/sap/hdbclient                   | | 64bit
    |                                      |                |
1   | Install new SAP HANA Database Client | | 64bit

Enter number [0]:

You can install HANA client into your favorite folder, as you can see, mine was installed under /ops/sap/hdbclient

5, Last Step

It's not finished, now if you run ./hdbsql, you probably will get error "hdbsql error while loading shared libraries:".

what you need to do is install libaio-dev package by running following command.

          sudo apt-get install libaio-dev

6, Test your connection

Congratulations if you see this

ethanz@ubuntu:/opt/sap/hdbclient$ ./hdbsql

Welcome to the SAP HANA Database interactive terminal.


Type:  \h for help with commands         

       \q to quit                        


Congratulations, now you can play around HANA on Ubuntu. you can run test script and anything allowed.