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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 18:05:05  来源:igfitidea点击:

Proper way to set ORACLE_HOME?

oracle

提问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/oracleand everything is working now. Don't know if that means /usr/local/oracleis 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!

您不需要设置任何环境变量。不用担心它真好!