个人工具
登录
查看“UbuntuHelp:DCOracle2”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:DCOracle2”的源代码
来自Ubuntu中文
←
UbuntuHelp:DCOracle2
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/DCOracle2}} {{Languages|UbuntuHelp:DCOracle2}} DCOracle2 is an Oracle database connector for Python and Zope. This page describes how to install it. This procedure has been tested on Dapper 6.06 LTS. === Prerequisites === 1. DCOracle2 requires '''libclntsh.so''' to be present in your '''LD_LIBRARY_PATH'''. This is part of an Oracle database install and may be present in a client-only install such as the Oracle Instant Client. 2. Some things from the Ubuntu repositories: <pre><nowiki> sudo apt-get install build-essential python-dev zope2.9 </nowiki></pre> (zope2.9 is required because DCOracle2 uses some zope libraries) 3. In order for Python to be able to find the Zope libraries we need to modify the python path. To do this create (or edit) the file '''/usr/local/lib/python2.4/site-packages/sitecustomize.py''' to have these contents: <pre><nowiki> import sys sys.path.append( '/usr/lib/zope2.9/lib/python2.4/site-packages' ) </nowiki></pre> === Procedure === 1. Obtain DCOracle2 from http://www.zope.org/Members/matt/dco2 . 2. Read the README on how to build it (usually just typing '''make''' in the (uncompressed) folder. 3. After compiling DCOracle2 move the directory to /usr/local/lib: <pre><nowiki> sudo mv DCOracle2 /usr/local/lib </nowiki></pre> 4. Make DCOracle2 available for python import: <pre><nowiki> sudo ln -s /usr/local/lib/DCOracle2/DCOracle2 /usr/local/lib/python2.4/site-packages/DCOracle2 </nowiki></pre> === To get DCOracle working (as ZOracleDA) in Zope2.9 === 1. Create a symbolic link in the Zope2.9 Packages directory: <pre><nowiki> sudo ln -s /usr/local/lib/DCOracle2 /usr/lib/zope2.9/lib/python2.4/site-packages/Products/ZOracleDA </nowiki></pre> 2. Edit the environment section in the zope.conf file for each zope instance (usually in the /var/lib/zope2.9/<instance>/etc directory) to ensure that ORACLE_HOME is set. For example: <pre><nowiki> <environment> ORACLE_HOME /opt/oracle/product/9.2.0.4.0 </environment> </nowiki></pre> [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:DCOracle2
。