Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simba Athena ODBC: unable to use SQLGetPrivateProfileString functions

Tags:

r

odbc

simba

This is very strange, I want to setup a connection from RStudio to my instance in AWS Athena.

I am using unixodbc as the driver manager, and succeded by testing the connection using isql -v 'Simba Athena'. However, when I test the connection in RStudio with...

con <- DBI::dbConnect(
  odbc::odbc(),
  "Simba Athena"
)

... it gives me the error Error: nanodbc/nanodbc.cpp:1021: 00000: [Simba][ODBC] (11560) Unable to locate SQLGetPrivateProfileString function.. Any clue about it, I am a bit stuck.

like image 656
Carlos G. Cardenas V. Avatar asked Dec 01 '25 08:12

Carlos G. Cardenas V.


1 Answers

It is basically not finding the correct ODBC driver. Simba by default references the driver in its /Library/simba/athenaodbc/lib/simba.athenaodbc.ini setup file to libodbc.dylib but it should be libodbcinst.dylib. At least in MacOS.

This solved my problem.

like image 143
Carlos G. Cardenas V. Avatar answered Dec 03 '25 23:12

Carlos G. Cardenas V.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!