所以我有一个客户在跨平台环境中部署多个版本的 oracle。他们将 TNS 名称文件存储在网络资源上。用户将通过 Windows 8.1 访问。12c 将有 32 位和 64 位版本。客户端希望能够使用 TNS_ADMIN 环境变量来解析 TNS 名称,并且基本上希望这成为每个登录工作站的用户的永久设置。我读过很多文章,有人说在环境密钥下设置在 HKLM 下,有人说在 HKLM 和软件下创建它。有人说 HKCU 只适用于当前登录的用户。对此的任何帮助将不胜感激。
1 回答
I personally set it through the environment variables, and not the registry. You should be able to add to the global environment variables on that machine. If you do set it in the registry it should be HKLM (Local Machine) as that is the default used by Oracle for the Oracle homes and configuration variables, though Oracle doesn't use the Windows software registry, it keeps track in its own database that is manged through OUI.
A simple way to test is to create a tnsnames.ora file in a nonstandard location, point TNS_ADMIN to it, add an entry (FOO1) and save, then try to tnsping FOO1 from command prompt.
You'll see quickly if the setting is in effect.