- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在我的 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 theNLS_LANG
environment variables to the full path of theinstantclient_11_2
directory. For example, if you unzipped the Instant Client zip file in the/bin/oracle
directory, then set theDYLD_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/
我是一名优秀的程序员,十分优秀!