How to Connect Oracle Database 10g Express Edition ?
718702Sep 7 2009 — edited Sep 10 2009From example
http://www.oracle.com/technology/obe/hol08/dotnet/getstarted-c/getstarted_c_otn.htm
using Oracle.DataAccess.Client; // ODP.NET Oracle managed provider
using Oracle.DataAccess.Types;
string oradb = "Data Source=ORCL;User Id=hr;Password=hr;";
OracleConnection conn = new OracleConnection(oradb); // C#
conn.Open(); <== Connect Error
Error Message "ORA-12154: TNS:could not resolve the connect identifier specified"
I used
Visual Studio 2005
Oracle Database 10g Express Edition
setup "Oracle Developer Tools for Visual Studio .NET with ODAC 10.2.0.2.21"
Best Regards,
Edited by: user1949694 on 8 ก.ย. 2552, 9:20 น.