Oracle - What TNS Names file am I using?

前端 未结 11 671
长发绾君心
长发绾君心 2020-12-07 13:50

Sometimes I get Oracle connection problems because I can\'t figure out which tnsnames.ora file my database client is using.

What\'s the best way to figure this out?

11条回答
  •  半阙折子戏
    2020-12-07 14:24

    On my development machine I have three different versions of Oracle client software. I manage the tnsnames.ora file in one of them. In the other two, I have entered in the tnsnames.ora file:

    ifile=path_to_tnsnames.ora_file/tnsnames.ora
    

    This way, if for some reason the wrong tnsnames.ora file is used by a client, it will always end up at the up-to-date version.

提交回复
热议问题