---
title: "install Oracle instant client for linux HOWTO"
author: "mineral"
date: "2010-07-28T16:52:50Z"
tags: [".net", "Linux", "Oracle", "Python"]
categories: ["操作系统"]
slug: "install-oracle-instant-client-for-linux-howto"
draft: false
lastmod: "2010-08-07T08:00:22Z"
id: 723545
url: "https://mineral.iteye.com/blog/723545"
---

install Oracle instant client for linux HOWTO

 

 

Guide for:

 

1.install oracle instant client

2.install cx\_oracle for python

 

 

 

wget http://prdownloads.sourceforge.net/cx-oracle/cx\_Oracle-5.0.4.tar.gz?download

download instantclient-basic-linux-x86-64-10.2.0.3-20070103.zip  from oracle

download instantclient-sdk-linux-x86-64-10.2.0.3-20070103.zip from oracle

 

unzip instantclient-basic-linux-x86-64-10.2.0.3-20070103.zip 

unzip instantclient-sdk-linux-x86-64-10.2.0.3-20070103.zip

 

mv instantclient\_10\_2 /usr/local/oracle

 

 

```
ORACLE_HOME=/usr/local/oracle
LD_LIBRARY_PATH=$ORACLE_HOME:/usr/local/lib:${LD_LIBRARY_PATH}
SQLPATH=$ORACLE_HOME
PATH=$PATH:$ORACLE_HOME
 
export LD_LIBRARY_PATH SQLPATH ORACLE_HOME PATH
```

 

 

cd /usr/local/oracle

ln -s libclntsh.so.10.1 libclntsh.so 

 

cd cx\_Oracle-5.0.4

python setup.py build

python setup.py install