月份: 2016-04

OSX上安装cx_Oracle

OSX 上安装cx_Oracle

一、下载cx_Oracle 安装包和Oracle Instant Client + SDK

1、cx_Oracle — Source Code Only Option — (http://cx-oracle.sourceforge.net/)
2、Oracle Instant Client Basic 64-bit (http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html)
3、Oracle Instant Client SDK 64-bit (http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html)

二、安装

1、安装环境准备

sudo su
mkdir /Users/Terry/oracle
mv /Users/Terry/Downloads/instantclient-* /Users/Terry/oracle
cd /Users/Terry/oracle
unzip instantclient-basic-macos.x64-11.2.0.3.0.zip
unzip instantclient-sdk-macos.x64-11.2.0.3.0.zip
cd instantclient_11_2/sdk
unzip ottclasses.zip
cd ..
cp -R ./sdk/* .
cp -R ./sdk/include/* .
ln -s libclntsh.dylib.11.1 libclntsh.dylib
ln -s libocci.dylib.11.1 libocci.dylib
vim ~/.bash_profile

.bash_profile中增加如下内容 阅读详细 »