- Get Oracle instant client for MacOSX
- Go to the download site - http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html
- Download "instantclient-basic-macos.x64-12.1.0.2.0.zip"
- Download "instantclient-sqlplus-macos.x64-12.1.0.2.0.zip"
- Download "instantclient-sdk-macos.x64-12.1.0.2.0.zip"
- Unarchive downloaded zip files into a same directory
- ex:
$HOME/Downloads/instantclient_12_1
- Create
install.sh
and copy the following code and past it on that file. - Run
source /usr/local/share/instantclient/instantclient.sh
- Run
sqlplus
to check if you can run "sqlplus" in any place - Add
source /usr/local/share/instantclient/instantclient.sh
to your .bashrc
Hi,
I have created the install.sh file mentioned above and executed it but the following error comes:
➜ instantclient_12_2 sqlplus
dyld: Library not loaded: @rpath/libsqlplus.dylib
Referenced from: /usr/local/bin/sqlplus
Reason: image not found
[1] 8397 abort sqlplus
➜ instantclient_12_2 /usr/local/bin/sqlplus
dyld: Library not loaded: @rpath/libsqlplus.dylib
Referenced from: /usr/local/bin/sqlplus
Reason: image not found
[1] 8403 abort /usr/local/bin/sqlplus
➜ instantclient_12_2 otool -L /usr/local/bin/sqlplus
/usr/local/bin/sqlplus:
@rpath/libsqlplus.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libclntsh.dylib.12.1 (compatibility version 0.0.0, current version 0.0.0)
@rpath/libclntshcore.dylib.12.1 (compatibility version 0.0.0, current version 0.0.0)
@rpath/libnnz12.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
➜ instantclient_12_2 otool -L sqlplus
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 'sqlplus': No such file or directory
I have followed the steps in the following but no luck .
https://blog.caseylucas.com/2013/03/03/oracle-sqlplus-and-instant-client-on-mac-osx-without-dyld_library_path/
https://blogs.oracle.com/taylor22/sqlplus-and-dyldlibrarypath-on-mac-osx