Closed Ethelom closed 3 months ago
Hello and thanks @kubo (and the rest of the contributors) for your work!
It seems that Oracle has patched the latest instant client and now it works 🎉 🎉 🎉
I have installed instantclient-basic-macos.arm64-23.3.0.23.09-1
instead of instantclient-basic-macos.arm64-23.3.0.23.09
and everything works as expected 🚀 .
$ mkdir ~/oracle
$ cd ~/oracle
$ curl -O https://download.oracle.com/otn_software/mac/instantclient/233023/instantclient-basic-macos.arm64-23.3.0.23.09-1.dmg
$ curl -O https://download.oracle.com/otn_software/mac/instantclient/233023/instantclient-sdk-macos.arm64-23.3.0.23.09.dmg
$ curl -O https://download.oracle.com/otn_software/mac/instantclient/233023/instantclient-sqlplus-macos.arm64-23.3.0.23.09.dmg
$ hdiutil mount instantclient-basic-macos.arm64-23.3.0.23.09-1.dmg
$ hdiutil mount instantclient-sdk-macos.arm64-23.3.0.23.09.dmg
$ hdiutil mount instantclient-sqlplus-macos.arm64-23.3.0.23.09.dmg
$ sh /Volumes/instantclient-basic-macos.arm64-23.3.0.23.09/install_ic.sh
$ mv ~/Downloads/instantclient_23_3 ~/oracle/
$ echo 'export OCI_DIR="$HOME/oracle/instantclient_23_3"' >> ~/.zshrc
$ source ~/.zshrc
# cleanup
$ /usr/bin/hdiutil unmount /Volumes/instantclient-basic-macos.arm64-23.3.0.23.09
$ /usr/bin/hdiutil unmount /Volumes/instantclient-sdk-macos.arm64-23.3.0.23.09
$ /usr/bin/hdiutil unmount /Volumes/instantclient-sqlplus-macos.arm64-23.3.0.23.09
$ rm ~/oracle/instantclient*.dmg
$ gem install 'ruby-oci8'
@Ethelom can you approve that it also works for you?
Although you're not on MacOS, I'm adding a link to instructions to get OCI running on Windows also: https://notepad.onghu.com/2021/ruby-oracle-oci-windows-sequel/
@kosdiamantis It works fine on my Silicon M2 Mac, thanks!
Setup
Sonoma 14.5
Apple M2 / M3
(have tried on both)ruby 2.5.5p157 (2019-03-15 revision 67260) [-darwin22]
2.2.12
19r
23.3
(for macOS ARM64)Error
Although
bundle install
is successful, when trying to connect the following error occurs:Steps to reproduce
FYI, the same error occurs whether the username + password combination is correct or not.
Notes
OCI_DIR
variable points to the directory where Oracle client is installedsqlnet.ora
&tnsnames.ora
, but to no availsqlplus
command line tool works fine.