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.
Download HANA client installation zip file from here, make sure you select the appreciate version.
Navigate to the unzip folder and go into SAP_HANA_CLIENT
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.
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 1.00.32.363548
***************************************************************************
Select a SAP HANA Database Client installation:
No | Installation Path | Version | Mode
-------------------------------------------------------------------
[0] | /opt/sap/hdbclient | 1.00.32.363548 | 64bit
| | |
1 | Install new SAP HANA Database Client | 1.00.32.363548 | 64bit
Enter number [0]:
You can install HANA client into your favorite folder, as you can see, mine was installed under /ops/sap/hdbclient
It's not finished, now if you run ./hdbsql, you probably will get error "hdbsql error while loading shared libraries: libaio.so".
what you need to do is install libaio-dev package by running following command.
sudo apt-get install libaio-dev
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
hdbsql=>
Congratulations, now you can play around HANA on Ubuntu. you can run test script and anything allowed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
12 | |
11 | |
11 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 |