"Can not obtain Oracle client..." error in Direct mode

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
showdep
Posts: 2
Joined: Thu 08 Jul 2010 04:29

"Can not obtain Oracle client..." error in Direct mode

Post by showdep » Thu 08 Jul 2010 04:38

Hello,

I am using dotConnect for Oracle 5.70.146 to access Oracle 10g Express Edition. No Oracle client installed, I want to use direct mode. My connection string is as follows (all according to http://www.devart.com/dotconnect/oracle ... tMode.html):

User Id=SYS;Password=1q2w3e;Direct=true;Data Source=127.0.0.1;Port=1521;SID=XE

My code:

DbProviderFactory fact = DbProviderFactories.GetFactory();
_dbConnection = fact.CreateConnection();
_dbConnection.ConnectionString = ;
_dbConnection.Open();

Open method throws an exception:

"Can not obtain Oracle client information from registry. Make sure that Oracle Client Software is installed, or use Direct mode of connecting to server."

My understanding is that since I use direct mode dotConnect should not not check anything with the registry, so I find this message misleading. In any case, what am I doing wrong?

Thanks,
Sergey

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 08 Jul 2010 11:39

Could you please tell us your current edition of dotConnect for Oracle? Please note that Express Edition doesn't support the Direct mode: http://www.devart.com/dotconnect/oracle/editions.html . We will investigate the situation why the Direct parameter is parsed without error in the connection string of OracleConnection from Express Edition.

showdep
Posts: 2
Joined: Thu 08 Jul 2010 04:29

Post by showdep » Thu 08 Jul 2010 17:21

You are right, it was dotConnect Express. Pro Trial seems to work properly.
Thanks a lot!

Post Reply