码迷,mamicode.com
首页 > 数据库 > 详细

Python操作Oracle

时间:2017-09-14 23:31:03      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:bho   2.x   packages   conf   x86_64   pac   oracle   software   war   


[root@oracle02 pythonsoftware]# rpm -ivh oracle-instantclient-basic-11.1.0.1-1.x86_64.rpm
Preparing... ########################################### [100%]
1:oracle-instantclient-ba########################################### [100%]
[root@oracle02 pythonsoftware]# rpm -ivh cx_Oracle-5.3-11g-py26-2.x86_64.rpm
Preparing... ########################################### [100%]
1:cx_Oracle ########################################### [100%]
[root@oracle02 pythonsoftware]# cp /opt/oracle/11g/lib/libnnz11.so /usr/lib/python2.6/site-packages/
[root@oracle02 pythonsoftware]# cp /opt/oracle/11g/lib/libclntsh.so.11.1 /usr/lib/python2.6/site-packages/
[root@oracle02 pythonsoftware]# cp /usr/lib/oracle/11.1.0.1/client64/lib/libociei.so /usr/lib/python2.6/site-packages/

####ln -s /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1 libclntsh.so.11.1

vim /etc/ld.so.conf.d/oracle.conf
/usr/lib/oracle/11.1.0.1/client64/lib
ldconfig

Python操作Oracle

标签:bho   2.x   packages   conf   x86_64   pac   oracle   software   war   

原文地址:http://www.cnblogs.com/liang545621/p/7523425.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!