on 07-09-2012 8:38 PM
Hi there,
I'm attempting to connect to HANA, as a data store, using ODBC from a SuSE client machine. The HANA instance is on AWS and was installed using the SAP standard HANA AMI v1.0 Rev 28.
The client is using unixODBC, and the DSN is defined as a .odbc.ini in the user's home folder:
[hana]
Driver = /usr/sap/hdbclient/libodbcHDB.so
Host = imdbhdb
Port = 30015
I'm able to reach the HANA server, imdbhdb is defined in /etc/hosts and points to the correct Elastic IP, via telnet to port 30015.
But, when I attempt an isql connection I get the following:
user @ client:~> isql -v hana SYSTEM manager
[08S01][unixODBC][SAP AG][LIBODBCHDB SO][HDB] Communication link failure;-10709 Connection failed (RTE:[89006] System call 'connect' failed, rc=111:Connection refused)
[ISQL]ERROR: Could not SQLConnect
I have verified that the SuSE Firewall on the HANA server, imdbhdb, is in fact turned off.
What am I missing?
Thanks in advance!
Hello Nass,
Need your help, We are trying to connect to SAP HANA through SUSE Linux (SAS). We installed Unix ODBC ana HANA Client on the server. Here is /etc/odbc.ini file content.
[HDB]
Driver = /appl/SAS/hdbclient/libodbcHDB.so
Host = deeh12z1a1008
Port = 34015
But, when I attempt an isql connection I get the following error message.
mdpfhlsc1:/etc # isql -v HDB wsasbatch MZE3RG5W
[08S01][unixODBC][SAP AG][LIBODBCHDB SO][HDBODBC] Communication link failure;-10709 Connection failed (RTE:[89006] System call 'connect' failed, rc=111:Connection refused)
[ISQL]ERROR: Could not SQLConnect
Looks like you are also facing the same issue. Please help me to sort out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use Strace to get where the location odbc refer to and create a link to it.
It could be eiher /etc/unixODBC or /usr/local/etc
Details on this source: SAP HANA Academy - SAP HANA installation: 7. HANA ODBC on Linux - YouTube
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm sure you have done this already...but...have you checked that the port 30015 is added as Inbound in the Security Groups of your AWS instance? Should be there by default...but who knows...
Greetings,
Blag.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the tip, Blag. The problem was actually the fact that the connection was going against localhost, and being refused - like the error message said, because nothing was listening locally obviously. It was never going over the wire.
Once I changed that, it worked like a charm.
Thanks again.
Hi,
We are new to Linux, we are uisng SuSE, We need to access HANA DB uisng python code.
We have installed HANA client and we have got pyodbc folder in my system. When i ran setup.PY it gave me an error "gcc failed withe exit status 1"
When we tried to resolve it we found that we need unixodbc and odbcinst to be installed. Could you please help us doing it? is there any document on it?
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.