Ora 12154 error

前端 未结 9 1482
长发绾君心
长发绾君心 2021-01-20 00:09

I recently deploy one web application in one of my development servers. I\'m using oracle, asp.net and c#. When I run the application in the server everything works fine, bu

9条回答
  •  礼貌的吻别
    2021-01-20 00:35

    Resolving TNS errors can be a real pain. A few things to keep in mind.

    Most development environments (like visual studio) keep their own copy of the TNS connection information, and do not use the TNSNAMES.ora file. The file where this information is kept does not have to be called TNSNAMES.ora, that's just the default name. Which may be the reason you can't find it on Server B.

    If you have the oracle client software (or an oracle database) you can use tnsping to check if your TNSNAMES.ora file is configured correctly.

    The most frequent problems with a TNSNAMES.ora file configuration are using the wrong service name and/or using the wrong host name. You may need to change the "ODB_A" to "ODB_A.WORLD" or vice versa, depending upon the SQLNET settings. For Oracle 10, the latter is the default SQLNET setting. For the latter, you need to use ping to see server "A", and know if you need to use "SERVERA" or "SERVERA.DOMIN.COM" or an IP address.

提交回复
热议问题