【问题标题】:difference between installing oracle-instantclient with conda install oracle-instantclient tsnames使用 conda install oracle-instant client tnsnames 安装 oracle-instant 客户端的区别
【发布时间】:2018-08-16 09:07:48
【问题描述】:

为 ubuntu 安装 oracle-instantclient 时

用 conda 和 ubuntu 安装有什么区别:

我确信它完全不同。我只想使用一些访问 oracle 服务器的 python 脚本。 选项:

  1. ubuntu 的 Ubuntu 安装说明
  2. Conda 安装

1。 Ubuntu 安装说明

安装

有关 Instant 的更多信息,请参见 Instant Client 主页 客户端包。

客户端-服务器版本互操作性在文档 ID 207303.1 中有详细说明。 例如,Oracle Call Interface 12.2 可以连接到 Oracle Database 11.2 或更高版本。某些工具可能有其他限制。

  1. 为您的平台下载适当的 Instant Client 软件包。所有安装都需要 Basic 或 Basic Light 软件包。

  2. 将包解压到单个目录,例如 C:\oracle\instantclient_12_2

  3. 将此目录添加到 PATH 环境变量中。如果您安装了多个版本的 Oracle 库,请确保新的 目录首先出现在路径中

  4. 从 Microsoft 下载并安装正确的 Visual Studio Redistributable。 Instant Client 12.2 需要 Visual Studio 2013 可再分配。 Instant Client 12.1 需要 Visual Studio 2010 可再分配。 Instant Client 11.2 需要 Visual Studio 2005 可再分发。

  5. 如果您打算将可选的 Oracle 配置文件(例如 tnsnames.ora、sqlnet.ora、ldap.ora 或 oraaccess.xml)与 Instant 放在一起 客户端,然后创建一个子目录 C:\oracle\instantclient_12_2\network\admin

这是默认的 Oracle 客户端配置目录 与此 Instant Client 链接的应用程序。

或者,可以将 Oracle 客户端配置文件放入 另一个可访问的目录。然后设置环境变量 TNS_ADMIN 到该目录名称。

  1. 启动您的应用程序。 Oracle source info

2。康达安装

conda install -c anaconda oracle-instantclient

几乎空了source conda 安装链接的信息

我还没有找到任何文档

【问题讨论】:

    标签: conda cx-oracle


    【解决方案1】:

    对于 Ubuntu 上的基本 Python 使用,我只需遵循官方 cx_Oracle 安装说明:

    python -m pip install cx_Oracle --upgrade
    

    使用 Instant Client zip 的 cx_Oracle 步骤很简单:https://cx-oracle.readthedocs.io/en/latest/installation.html#oracle-instant-client-zip-files

    一般情况下,您应该下载官方的 Oracle Instant Client 'Basic' 或 'Basic Light' 软件包,这样您就知道它们没有被更改并且您知道您使用的是什么许可证。由于您使用的是 Ubuntu,因此请从 http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html 获取其中一个 zip 文件(假设您有 64 位 Python)。

    您在上面发布的步骤适用于 Windows,对 Ubuntu 不太有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-27
      • 2018-05-29
      • 2016-10-09
      • 1970-01-01
      • 2014-10-18
      • 2019-03-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多