【发布时间】: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