如何配置我的 Oracle tnsnames 文件位置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5568342/
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
How can I configure my Oracle tnsnames file location?
提问by AndyGeek
I have Oracle 10g installed on Windows. Currently, my tnsnames file is stored at %ORACLEHOME%\network\admin. However, I want to configure Oracle to look somewhere else for that file.
我在 Windows 上安装了 Oracle 10g。目前,我的 tnsnames 文件存储在 %ORACLEHOME%\network\admin。但是,我想将 Oracle 配置为在其他地方查找该文件。
How can I do this?
我怎样才能做到这一点?
Andrew L
安德鲁·L
回答by Chandu
You can use the TNS_ADMIN environment variable to specify a custom location of TNSNAMES.ORA file. Check this wiki: http://www.orafaq.com/wiki/TNS_ADMIN
您可以使用 TNS_ADMIN 环境变量来指定 TNSNAMES.ORA 文件的自定义位置。检查这个维基:http: //www.orafaq.com/wiki/TNS_ADMIN