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
  • 相关阅读:
    hadoop中map和reduce的数量设置问题
    Flink基础
    Leetcode中的SQL题目练习(二)
    Redis-2- 基本概念
    Redis-1-安装
    C#事件(1)
    java(13)内部类
    java(12)异常处理
    java(11)构造器
    java(10)接口抽象类
  • 原文地址:https://www.cnblogs.com/alangwansui/p/3571115.html
Copyright © 2011-2022 走看看