cx_Oracle install

STEP 1. install Oracle Client

1.1 download:

http://download.oracle.com/otn/linux/instantclient/121020/instantclient-basic-linux.x64-12.1.0.2.0.zip

http://download.oracle.com/otn/linux/instantclient/121020/instantclient-sdk-linux.x64-12.1.0.2.0.zip

1.2 extract

extract to /opt/oracle

cd /opt/oracle

sudo cp libclntsh.so.12.1 libclntsh.so

1.3. setup env

append next lines into ~/.bashrc

export ORACLE_HOME = /opt/oracle

exportLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ORACLE_HOME}

export PATH=${PATH}:${ORACLE_HOME}/bin

SETP 2. install cx_Oracle

2.1 download:

https://pypi.python.org/packages/source/c/cx_Oracle/cx_Oracle-5.2.tar.gz#md5=6a49e1aa0e5b48589f8edfe5884ff5a5

2.2 install

tar xfz cx_Oracle.5.2.tar.gz

cd cx_Oracle.5.2

python setup.py build

python setup.py install

时间: 2024-08-26 10:09:15

cx_Oracle install的相关文章

install cx_Oracle on Linux

step 1 : install oracle client library url: http://www.oracle.com/technetwork/topics/linuxsoft-082809.html or search:  instant clients download for Linux x86 download:    instantclient-basic-linux-version.zip   # choose your version !!!! instantclien

python   install cx_Oracle

1.安装python linux 自带安装了python2.6.6 2.安装easy_install 按照官网说明,无法安装 [[email protected] backup]# wget https://bootstrap.pypa.io/ez_setup.py -O - | python --2014-09-05 16:59:01--  https://bootstrap.pypa.io/ez_setup.py 正在解析主机 bootstrap.pypa.io... 103.245.222

centos下安装cx_oracle 源码安装 64位

本次配置的环境:centos6.5 64位  需要的文件: instantclient-basic-linux-x86-64-11.2.0.2.0.zip instantclient-sdk-linux-x86-64-11.2.0.2.0.zip cx_Oracle-5.1.2.tar.gz 我把这三个文件放/home/hadoop/oracle 代码实现: su root 输入密码切换到root用户 cd /home/hadoop/oracle unzip instantclient-basi

Python源码安装cx_Oracle

最近线上有个数据表一个月竟然没有数据,都没有监控,老大让我做一个监控,让Python写脚本监控oracle数据是否正常. 一.涉及软件包 1.cx_Oracle 下载地址:http://sourceforge.net/projects/cx-oracle/files/?source=navbar 我下载的是最新版的cx_Oracle-5.1.2.tar.gz 2.Oracle_client 使用cx_Oracle必须要安装Oracle_client端,或者你已经安装了Oracle数据库 下载地址

使用pip安装 cx_Oracle 模块

1. 系统环境,linux, python3.5, pip以下命令的执行均使用root用户. 2. 执行 pip install cx_Oracle出错,提示不能定位Oracle的安装.出现该问题的原因是因为没有安装Oracle客户端相关的库文件.下载文件:instantclient-basic-linux.x64-12.1.0.2.0.zip下载链接:http://www.oracle.com/technetwork/database/features/instant-client/index

cx_Oracle python模块安装

1. 需要从oracle网站下载一下两个包 instantclient-basic-linux.x64-11.2.0.4.0.zip instantclient-sdk-linux.x64-11.2.0.4.0.zip 2. 下载后解压到某目录下,如:/oracle 3. 根据解压后的 BUILD.txt 步骤进行配置: 3.1 cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc

安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1

1.安装cx_Oracle 1)下载cx_Oracle,https://pypi.python.org/pypi 2)解压压缩包 3)执行python setup.py install 执行后报错:error: command 'gcc' failed with exit status 1 排查: 1)检查是否安装oracle客户端软件 2)查看当前环境变量中是否配置oracle的相关变量,如echo $ORACLE_HOME 3)如果没有配置需要将oracle环境变量配置到当前用户.bash_

python 安装cx_Oracle模块

想访问远程Oracle数据库,本地又不想安装几百兆的Oracle Client(也木有root权限),安装python的cx_Oralce 模块需要依赖Oracle Instant Client 代替完整的Oracle Client. Oracle Instant Client 下载:http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html 下载: instantclient-basic-linux.x64-11.2

windows下python3 使用cx_Oracle,xlrd插件进行excel数据清洗录入

我们在做数据分析,清洗的过程中,很多时候会面对各种各样的数据源,要针对不同的数据源进行清洗,入库的工作.当然python这个语言,我比较喜欢,开发效率高,基本上怎么写都能运行,而且安装配置简单,基本上有网的环境pip install全部都搞定,没网的话,把whl包copy过来一行命令也就解决了(windows下python3.5使用pip离线安装whl包). 本篇博客就针对,在windows平台下使用python3(python2社区将要停止支持,使用3是大势所趋),读取xls,xlsx格式的数