-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Providing a path to a driver directly? #874
Comments
Hey @MarcellGranat, thanks for the issue. Oracle is indeed painful to work with.🙃 You're right—you'll need to tell odbc where to find that Instant Client. First, note that you'll need both the "Basic Package" and the "ODBC Package" linked on that Instant Client page and to fully follow the "Installation Instructions" dropdown on that page to merge them into that one For the more R odbc-specific slant: run [Oracle]
Description=Oracle ODBC Driver
Driver=/Users/YOUR_USERNAME/Downloads/instantclient_23_3/libsqora.dylib.23.3 At that point, you should be able to see the driver in your |
Thank for the quick reaction! 🙌 I modified the odbcinst.ini file as you described, but the connection still runs into an error.
But the file does exist 🥲 I also copied the whole folder into wd, to check whether the issue is that R cannot read external folders, but I still get the same error. 🤯 |
Been there! If you see a "file not found" error for a driver that does exist, it's because some dependency for the driver doesn't exist; use |
Note to odbc developers: Line 212 in 629595a
Where we could append some (OS-specific) advice along the lines of that recommended in the comment above. |
Thanks, that helped truly a lot! 🙏 Now I figured out that /usr/lib/libresolv.9.dylib and /usr/lib/libSystem.B.dylib are not in the /usr/lib/ folder instead, they are placed at "/Library/Developer/CoreSimulator/Volumes/iOS_22B81/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libSystem.B.dylib" I cannot even copy or symlink them even with sudo. 😳 |
Hi, ✌️
I am using Mac M1 🍎 and as for many the installation of instantclient didn't went well 🥵. For installation it creates a new folder "instantclient_23_3" in the downloads folder, but
odbc::odbcListDrivers()
cannot recognise that.In the description of the function it's written that: Driver names that are not configured with the driver manager (and thus do not appear in this function's output) can still be used in dbConnect by providing a path to a driver directly. Although it requires and odbc::odbc() input, where I cannot provide the path.
I only saw in #709 that you can achieve similar with Sys.setenv(ODBCSYSINI = ""), but after the installation from the website I do not see any
odbcinst.ini
file in the folder.Any suggestion how to provide the path then?
Thanks in advance! 🙏
The text was updated successfully, but these errors were encountered: