on-internet
← Community

oracle connection String with C# using oledb

Stack Overflow ·

Im developing an application in C# that connects to Oracle 10g. When I use ODP. Net and this Connection String "Data Source=Angelo-HP/XE;User ID=MAPFRE;Password=123456" I can connect and perform any action with the database, but when I use OleDbConnection (System.Data.OleDb) with this connection String: "Provider=OraOLEDB.Oracle;OLEDB.NET=true;PLSQLRSet=true;User ID=mapfre;password=123456;Data Source=XE" I got this error: ORA-12154: TNS:could not resolve the connect identifier specified When I try use Open() method from OleDbConnection. I think is not oracle configuration because I can connect

Comments

Sign in or sign up to comment and upvote.

No comments yet.