cx_Oracle Oracle home does not refer to an 8i, 9i, 10g or 11g installation
来源:互联网 发布:胡夫金字塔的结构数据 编辑:程序博客网 时间:2024/05/22 17:05
1.去官网下载最新的源码,自行编译安装
sudo python setup-py buildsudo python setup.py install
2.
Oracle home does not refer to an 8i, 9i, 10g or 11g installation.
The next problem to arise was that the setup script did not recognize the version of oracle that was being used. To fix this I needed to do a slight hack on the setup script. I created the following patch that should work a treat. (Any suggestions on how to improve this would be greatly appreciated. I could add more filesToCheck for other versions of oracle, maybe adding (“11g”, “libclntsh.dylib.11.1”),
to filesToCheck for Oracle 11g for example.)
--- setup.py.bak2008-08-25 14:13:13.000000000 +0100+++ setup.py2008-08-25 14:16:17.000000000 +0100@@ -153,6 +153,11 @@ ("9i", "oraclient9.dll"), ("8i", "oraclient8.dll") ]+ elif sys.platform in ("darwin"):+ subDir = ""+ filesToCheck = [+ ("10g", "libclntsh.dylib.10.1")+ ] else: subDir = "lib" filesToCheck = [
To patch your version of setup.py save the above code into a file in the same directory as setup.py
, with the name leopard_cx_oracle.patch
. Now, execute the following to apply it:
patch < leopard_cx_oracle.patch
This should allow the setup script recognise oracle instant client for leopard and behave correctly.
- cx_Oracle Oracle home does not refer to an 8i, 9i, 10g or 11g installation
- How to: Manage CBO Statistics During an Upgrade from 10g or 9i into 11g (文档 ID 465787.1)
- oracle 8i 、oracle 9i 、oracle 10g 和oracle 11g区别详细剖析
- Oracle 8i/9i/10g/11g 组件(Components) 说明
- oracle 8i/9i/10g/11g 间的区别
- 关于Oracle后面8i,9i,10g,11g的问题
- Upgrade Oracle 9i RAC to Oracle 10g RAC
- oracle 9i、10g、11g在线文档地址
- Oracle 9i、10g、11g版本的区别
- oracle 9i 10g 11g比较
- oracle 9i 10g 11g 升级路线图
- Rails 连接 Oracle 8i, 9i, and 10g
- oracle 8i,9i和10g 的区别
- Oracle 6i Home and 10g Home and Work Flow Home Install
- oracle 9i && oracle 10g
- 9i upgrade to 10g
- Handling Oracle Block Corruptions in Oracle7/8/8i/9i/10g/11g (文档 ID 28814.1)
- 18 Oracle 9i & 10g Books
- 修改浏览器快捷方式的启动参数
- IOS开发BUG集锦_20150204
- pointer on C programming exercise P6.18 Q2
- Mysql慢查询日志
- Download Protocol Buffers
- cx_Oracle Oracle home does not refer to an 8i, 9i, 10g or 11g installation
- java 把数据填充到表格EXL中
- java 学习笔记3
- Decode Ways --- LeetCode
- 【POJ1681】Painter's Problem 高斯消元,求最小∑系数的异或方程组
- timestamp应用——乐观锁和悲观锁【转】
- redis info内容详解
- VS2010使用MFC类向导时提示“灾难性故障”的解决
- Qt中槽函数如何获取按钮QPushButton的按钮文本