ODBC Administrator Can't Find Oracle TNS Names File

隐身守侯 提交于 2019-12-03 12:14:28
Srinivas

If service name doesn't show in the dropdown, directly type in the service name and see if you are able to test the connection.

It appears the tumbleweed rolled by on this one but just for everyone who may be experiencing the same issue; I was able to fix this by using the Net Configuration Assistant wizard and providing the right information. It generated tnsnames.ora in proper format AND it should be noted that the filename given to me was tsnames.ora!

For the stupid souls like me: if you're writing out tnsnames.ora via notepad or so, make sure it doesn't have the .txt extension which is by (our) default not visible in windows explorer

Becks TibiaFun

Make sure that:

  • Your tnsnames.ora is encoded in ANSI and not UTF8.
  • You do not have special characters as üäö, not even in comments.

Sorry to revive an ancient thread, but I had the same problem, and Net Configuration Assistant wouldn't run.

(Windows XP SP3, Oracle 11gR2 client)

SOLUTION:
1. Uninstall all other Oracle_Home instances using the Oracle (De-)Installer (don't just go deleting registry keys!), so that you only have the one Oracle_Home that you want to keep:
%oracle-home-that-you-want-to-keep%\client\oui\bin\setup.exe
2. Create or set Windows environment variables:
TNS_Admin = %oracle_home%\client_1\network\admin
Path = %oracle_home%\client_1; ...
3. Reboot. (sigh...)

Anyway, that's what worked for me.

Or just use a connection string that you enter in the textbox (the one that is supposed to get populated using the dropdownbox), e.g. 127.0.0.1/XE see here.

Chrisvb

For some reason windows 2012R2 did not have an ORACLE_HOME environment variables set. This can case issues so either add oracle_home or tns_admin. Windows 2012 installs had a oracle_home variable.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!