【问题标题】:Can't run SQL*Plus on macOS 11 (Big Sur)无法在 macOS 11 (Big Sur) 上运行 SQL*Plus
【发布时间】:2021-03-10 13:16:43
【问题描述】:

我使用此命令安装 oracle 即时客户端基本版,但它不起作用

//mount instantclient-basic-macos.x64-19.8.0.0.0dbru.dmg

cd /Volumes/instantclient-basic-macos.x64-19.8.0.0.0dbru

./install_ic.sh

ln -s ~/Downloads/instantclient_19_8/libclntsh.dylib /usr/local/lib/

echo 'export PATH=~/Downloads/instantclient_19_8:$PATH' >>~/.bash_profile

我在 python 中也有这个错误:

DPI-1047: Cannot locate a 64-bit Oracle Client library: "dlopen(libclntsh.dylib, 1): image not found". See https://oracle.github.io/odpi/doc/installation.html#macos for help

【问题讨论】:

  • ln -s 可能不会给你买任何东西??你用过init_oracle_client() 吗?请参阅 cx_Oracle 文档 [使用 cx_Oracle.init_oracle_client() 设置 Oracle 客户端目录](cx-oracle.readthedocs.io/en/latest/user_guide/…)。
  • Big Sur 不适用
  • 如果您能提供更多详细信息,我们或许可以提供帮助。 SQL*Plus 可以在 Big Sur 上运行
  • 例如看stackoverflow.com/a/64654317/4799035中的评论。如果 PHP 可以在 Big Sure 上运行,那么 Python 和 SQL*Plus 也可以。
  • SQL*Plus 终于可以工作了,但是 cx-oracle 无法连接。

标签: python oracle macos sqlplus


【解决方案1】:

installation instructions好像不支持Big Sur。

更新

由于我发布了之前的截图,现在 19.8 客户端似乎支持 Big Sur。

【讨论】:

  • 该页面有一个标题,上面写着最后更新日期是2018-04-19T19:17:32Z。 Big Sur 直到 2020-11-12 才发布,因此在 2.5 年前创建的页面上没有提及它也就不足为奇了。
  • 截至目前,Instant Client 19.8 已通过 Big Sur 认证。
【解决方案2】:

什么是没有 Homebrew 的 MacOS?没有sqlplus的Oracle数据库是什么?

我还没有尝试过 Big Sur,但这个 Tap 在 Catalina 上运行良好。也许有人可以验证?

确保首先下载客户端压缩文件。

# install on MacOS
brew tap InstantClientTap/instantclient
cp ~/Download/instantclient*.zip /usr/local/Homebrew/Library/Taps/instantclienttap/homebrew-instantclient
brew install instantclient-basic
brew install instantclient-sqlplus
brew install instantclient-tools

【讨论】:

猜你喜欢
  • 2020-10-20
  • 1970-01-01
  • 1970-01-01
  • 2021-06-05
  • 2021-01-12
  • 2023-04-03
  • 2021-06-08
  • 2022-01-14
  • 2021-03-01
相关资源
最近更新 更多