Oracle TNS - can't connect through ODBC Administrator

∥☆過路亽.° 提交于 2020-01-25 07:21:03

问题


my Oracle ODBC has stopped working today and i can't figure out why.

the error im getting when testing the connection in ODBC Administrator is: connect failed because target host or object does not exist

getting the same error when trying to do a tnsping on it.

everything worked on friday, and no updates or anything has been done to the server.

what could it be?


回答1:


TNSPING and PING will go a long way.
If you see a line like

.. Attempting to connect to (ADDRESS=SomeServerOrIPAddress)(PORT=1521) ...

from TNSPING, try pinging the address yourself from the command prompt

PING SomeServerOrIPAddress

If you get a good reply from PING but not TNSPING it's now an issue for your DBA.
If PING doesn't work you need to look at network issues:
- Is the client actually connected to the network ?
- Name resolution if PING said it can't resolve the server name - Firewalls / Virus checkers blocking your traffic
- any number of other things



来源:https://stackoverflow.com/questions/6902061/oracle-tns-cant-connect-through-odbc-administrator

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