EF:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specified
报告错误:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specified
解决办法:
1.先配置好tnsnames;
2.到Oracle安装目录下面(如:C:\oracle\product\10.2.0\client_1\network\ADMIN),找到tnsnames.ora文件;
3.复制tnsnames.ora文件到Oracle Client的admin目录下面(如:C:\app\Administrator\product\11.2.0\client_1\Network\Admin)。