2017-09-26 152 views
0

我需要在macOS Sierra 10.12.2中使用文件tsnames.ora,但我不知道它位於何處。Mac OS X中的tsnames.ora文件Sierra 10.12.2

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. 
+1

您是否在您的Mac上安裝了oracle客戶端?如果是,則tnsnames.ora應該位於:/network/admin/ 如果不存在,您可以創建它並創建tnsnames.ora文件。 –

回答

0

對於Mac OSX,只有instant client可用。 但是這個客戶端不帶一個示例tnsnames.ora文件。

所以,除非你或者應用程序在某處放置了tnsnames.ora文件,否則它就不存在。

如果你創建了一個tnsnames.ora文件,並且內容正確,你需要設置ORACLE_HOME或TNS_ADMIN環境變量。即時客戶端與默認客戶端安裝有一些細微差異,因此請閱讀FAQ以瞭解詳細信息。