oracle 设置 ORACLE_HOME 的正确方法?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/761557/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Proper way to set ORACLE_HOME?
提问by Ethan
On OS X should my ORACLE_HOME env variable be...
在 OS X 上,我的 ORACLE_HOME 环境变量应该是...
/usr/local/oracle
or...
或者...
/usr/local/oracle/instantclient_10_2
采纳答案by Ethan
Set it to /usr/local/oracle
and everything is working now. Don't know if that means /usr/local/oracle
is necessarily correct.
将其设置/usr/local/oracle
为现在一切正常。不知道这意味着/usr/local/oracle
是否一定正确。
回答by razlebe
It should be set to the value of the directory that contains your \bin directory, which in your case I believe would be /usr/local/oracle/instantclient_10_2.
它应该设置为包含您的 \bin 目录的目录的值,在您的情况下,我认为应该是 /usr/local/oracle/instantclient_10_2。
回答by Mark Harrison
If you follow the instructions here:
如果您按照此处的说明进行操作:
installing Oracle Instantclient on Mac OS/X without setting environment variables?
在 Mac OS/X 上安装 Oracle Instantclient 而不设置环境变量?
you won't need to set any environment variables. Its nice not to have to worry about it!
您不需要设置任何环境变量。不用担心它真好!