Oracle Mac OS X Sierra 10.12.2中的tsnames.ora文件

Oracle Mac OS X Sierra 10.12.2中的tsnames.ora文件,oracle,macos,Oracle,Macos,我需要在macOS Sierra 10.12.2中使用文件tsnames.ora,但我不知道它位于何处 MacBook-Pro-de-lopes: lopes$ locate tsnames.ora WARNING: The locate database (/var/db/locate.database) does not exist. To create the database, run the following command: sudo launchctl load -w /

我需要在macOS Sierra 10.12.2中使用文件
tsnames.ora
,但我不知道它位于何处

MacBook-Pro-de-lopes: lopes$ locate tsnames.ora

WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.
对于Mac OSX,只有可用的。 但该客户机没有提供示例tnsnames.ora文件

因此,除非您或应用程序将tnsnames.ora文件放在某个地方,否则它就不在那里


如果创建的tnsnames.ora文件内容正确,则需要设置ORACLE_HOME或TNS_ADMIN环境变量。instant client与默认客户端安装有一些小差异,因此请阅读以了解详细信息。

您是否在mac上安装了oracle客户端?如果是,tnsnames.ora应该位于:/network/admin/如果不存在,您可以创建它,也可以创建tnsnames.ora文件。