zoukankan      html  css  js  c++  java
  • python cx_Oracle install

    Ubuntu install  python-cx_Oracle

    1: install alien tools  .  

         sudo apt-get install alien

    2: dowload follow files and translate them to deb files. Pls care the version.

    oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpm
    oracle-instantclient11.2-basiclite-11.2.0.1.0-1.i386.rpm
    oracle-instantclient11.2-devel-11.2.0.1.0-1.i386.rpm
    oracle-instantclient11.2-jdbc-11.2.0.1.0-1.i386.rpm
    oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.i386.rpm

        sudo alien  *.rpm

        sudo dpkg *.deb

    3: set env

     ###add Oracle env

    export ORACLE_HOME=/usr/lib/oracle/11.2/client
    export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib
    export ORACLE_SID=xx-x-xx

    ###

    add the code to /etc/profile , then "source /etc/profile"

    4:dowload   cx_Oracle-5.1.2.tar.gz, install cx_Oracle lib

    ====================

    Error:  cx_oracle libaio.so.1: cannot open shared object file: No such file or directory

    dowload:    "libaio-0.3.106-5.i386.rpm" install it.    

     

    ~~~~~~~ 需要odoo 实施,二开,培训 等服务 QQ:190170444
  • 相关阅读:
    Mybatis 持久层框架
    spring beans文件
    java_抽象类&抽象方法
    java——类
    python 安装 HTMLtestRunner
    pychram永久激活
    unittest单元测试框架
    pandas常用函数
    linux 下分别使用pip2、pip3
    linux 下切换Python版本(某用户,共存,替换)
  • 原文地址:https://www.cnblogs.com/alangwansui/p/3571115.html
Copyright © 2011-2022 走看看