Py第二十四问「实战」mac os 安装 cx_Oracle

1.获取root 权限,百度

2.

oracle网站的下载需要注册一个账户。请自行申请。下载

http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html

basic:instantclient-basic-macos.x64-12.1.0.2.0.zip

sdk:instantclient-sdk-macos.x64-12.1.0.2.0.zip


sudo su #切换到root用户


mkdir /Users/guanguan/oracle #创建oracle文件


mv /Users/guanguan/Downloads/instantclient-* /Users/guanguan/oracle #将下载的两个Oracle包放到/Users/guanguan/oracle目录下


cd /Users/guanguan/oracle 进入oracle文件中


unzip instantclient-basic-macos.64-12.1.0.4.0.zip #解压


unzip instantclient-sdk-macos.64-12.1.0.4.0.zip #解压


cd instantclient_12_1


Add links to $HOME/lib or /usr/local/lib to enable applications to find the library. For example:

mkdir ~/lib
ln -s /opt/oracle/instantclient_12_2/libclntsh.dylib.12.1 ~/lib/

ln -s /Users/yuguoqin/Oracle/instantclient_12_2/libclntsh.dylib.12.1 /usr/local/lib

ln -s /Users/yuguoqin/Oracle/instantclient_12_2/libocci.dylib.12.1 /usr/local/lib

 


done!!!






你可能感兴趣的:(Python)