How to install cx_Oracle on mac?

step 1.
download software
instantclient-basic-xxxx-xxxx-x64.zip
instantclient-sdk-xxxx-xxxx-x64.zip

step 2.
解壓縮 上述檔案到同一路徑

step 3.
create symbolic link
ln -s ~/path/path/libclntsh.dylib.11.1 libclntsh.dylib.11.1
ln -s ~/path/path/libclntsh.dylib.11.1 libclntsh.dylib
ln -s ~/path/path/libocci.dylib.11.1 libocci.dylib.11.1
ln -s ~/path/path/libocci.dylib.11.1 libocci.dylib

step 4.
setup env variable
export ORACLE_HOME=/path/path
export DYLD_LIBRARY_PATH=$ORACLE_HOME
export LD_LIBRARY=$ORACLE_HOME
export PATH=”$ORACLE_HOME:$PATH”

step 5.
disable sip
reboot CMD+R
command line:
csrutil disable

step 6.
install cx_Oracle
pip install cx_Oracle

done…:P

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.