EF:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier

報告錯誤:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specifiedoracle

 

解決辦法:app

1.先配置好tnsnames;ide

2.到Oracle安裝目錄下面(如:C:\oracle\product\10.2.0\client_1\network\ADMIN),找到tnsnames.ora文件;ci

3.複製tnsnames.ora文件到Oracle Client的admin目錄下面(如:C:\app\Administrator\product\11.2.0\client_1\Network\Admin)。io

相關文章
相關標籤/搜索