gpt4 book ai didi

macos - 如何处理 "no ocijdbc11 in java.library.path"SQL Developer 错误

转载 作者:行者123 更新时间:2023-12-01 22:51:24 25 4
gpt4 key购买 nike

我正在尝试在我的 Mac 笔记本电脑 (OS X 10.9.5) 上的 SQL Developer 中创建 TNS 连接。我收到此错误no ocijdbc11 in java.library.path我用谷歌搜索并发现我需要安装oracle的即时客户端。我在这里找到了实例客户端文件:

http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html

这些文件只是您需要下载并解压到某处的 zip 文件。然后我找到了实际告诉您如何处理 zip 文件的说明:

https://docs.oracle.com/cd/E11882_01/install.112/e38228/inst_task.htm#BABHEBIG

说明说:

Set the DYLD_LIBRARY_PATH and the NLS_LANG environment variables to the full path of the instantclient_11_2 directory. For example, if you unzipped the Instant Client zip file in the /bin/oracle directory, then set the DYLD_LIBRARY_PATH environment variable to /bin/oracle/instantclient_11_2.

这些说明没有告诉我如何永久设置环境变量以及如何使 SQL Developer 等 GUI 工具可以访问环境变量。

有人让 SQL Developer 与 instantclient 一起使用吗?

最佳答案

基于 @Alex Poole 的回答:在 El Capitan 时 SIP启用后,此 doesn't seem to work ,因为 DYLD_LIBRARY_PATH 环境变量不会传输到 bash ./sqldeveloper 启动的环境(SQLDeveloper.app/Contents/MacOS/的最后一行) sqldeveloper.sh) .

解决方案:我编辑了文件SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin/sqldeveloper,而不是编辑文件SQLDeveloper.app/Contents/MacOS/sqldeveloper.sh 并添加了 export DYLD_LIBRARY_PATH=/path/to/instantclient 行。

#!/bin/bash

export DYLD_LIBRARY_PATH=/path/to/instantclient

#=============================================================================
# Launcher for Oracle SQL Developer
# Copyright (c) 2005, Oracle. All rights reserved.
#=============================================================================

...

关于macos - 如何处理 "no ocijdbc11 in java.library.path"SQL Developer 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29707986/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com