VS2010 + Oracle driver: ORA-12154: TSN:could not resolve the connect identifier specified

前端 未结 4 1456
粉色の甜心
粉色の甜心 2021-01-21 06:34

I am using:

  • Visual Studio 2010
  • .Net Framework Data Provider for Oracle
  • Oracle Developer Tools for Visual Studio (from Oracle\'s website)
4条回答
  •  情深已故
    2021-01-21 07:01

    You should use the Oracle Data Access Client library, and then the OracleConnection object instead.

    http://www.oracle.com/technology/sample_code/tech/windows/odpnet/howto/connect/index.html

    I know that Oracle is kind of picky with TNS names file. I usually count on the DBA's for this. SQL-Server is much easier to get going...

提交回复
热议问题