Install Oracle (cx_Oracle) module for Python
2012-06-11 17:02
459 查看
cx_Oracle 5.0
I came across several (CodingNaked
WebSite & Pedro Emanuel de Castro Faria Blog ) howTo's on
the internet explaining how to compile and install previous versions of this connector. I decided to write my own howTo describing the latest version of the module (as of writing cx_Oracle 5.0).
(I am assuming you have the Xcode developers tools already installed since you will need the GCC compiler)
You need the follwing software:
Oracle Instant Client
cx_Oracle Module 5.0
Download the following packages from the Oracle Instant client site:
Instant Client Package - Basic
Instant Client Package - SQL*Plus
Instant Client Package - SDK
Extact all of these, then place their contents into a single directory
In my case I created a director called /opt/oracle/instantclient_10_2, and place all of the contents from all three archives in this directory.
Then run the following commands (assuming you created the same directory)
Now you need to edit you profile:
Copy and paste the below (Please note the paths and adjust accordingly)
now run the following commands (you need to do this or the build will fail).
I extracted the cx_Oracle module to /opt/oracle/cx_Oracle-5.0. All you have to do now is run these commands at the module will be built and installed.
原文转自: http://wiki.unixcraft.com/display/MainPage/Install+Oracle+(cx_Oracle)+module+for+Python
Oracle Database connector module for Python
I came across several (CodingNakedWebSite & Pedro Emanuel de Castro Faria Blog ) howTo's on
the internet explaining how to compile and install previous versions of this connector. I decided to write my own howTo describing the latest version of the module (as of writing cx_Oracle 5.0).
(I am assuming you have the Xcode developers tools already installed since you will need the GCC compiler)
You need the follwing software:
Oracle Instant Client
cx_Oracle Module 5.0
Download the following packages from the Oracle Instant client site:
Instant Client Package - Basic
Instant Client Package - SQL*Plus
Instant Client Package - SDK
Extact all of these, then place their contents into a single directory
In my case I created a director called /opt/oracle/instantclient_10_2, and place all of the contents from all three archives in this directory.
Then run the following commands (assuming you created the same directory)
相关文章推荐
- ubuntu python install oracle module cx_Oracle
- install_driver(Oracle) failed: Can't load `.../DBD/Oracle/Oracle.so' for module DBD::Oracle
- Python cx_Oracle - import not a valid win32 app or ImportError: No module named cx_Oracle Found
- install_driver(Oracle) failed: Can't load `.../DBD/Oracle/Oracle.so' for module DBD::Oracle
- install_driver(Oracle) failed: Can't load `.../DBD/Oracle/Oracle.so' for module DBD::Oracle
- Python cx_Oracle & Oracle Client for Mac OS
- python cx_Oracle install
- Oracle client 12.1.0.2 for MacOS[Python:cx_Oracle]
- python 解决方法:ImportError: No module named cx_Oracle
- How to download and install setuptools module for Python
- Python module “cx_Oracle” module could not be found
- python中cx_Oracle模块安装遇到的问题与解决方法
- Oracle 12c agent install for windows
- Debian for ARM install python 3.5.x
- Oracle RDBMS Server 11gR2 Preinstall RPM For Oracle Linux 6
- 在Python中使用cx_Oracle调用Oracle存储过程
- python对于cx_Oracle模块的封装
- aix5下安装python和cx_Oracle
- 在PYTHON中,用cx_Oracle连接ORACLE数据库简单示例
- Python用cx_Oracle链接Oracle数据库中文乱码解决方案