Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Connect Oracle Database 10g Express Edition ?

718702Sep 7 2009 — edited Sep 10 2009
From 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 น.
This post has been answered by Mark Williams-Oracle on Sep 10 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2009
Added on Sep 7 2009
3 comments
2,422 views