Page 1 of 1

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

Posted: Thu 08 Jul 2010 04:38
by showdep
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

Posted: Thu 08 Jul 2010 11:39
by Shalex
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.

Posted: Thu 08 Jul 2010 17:21
by showdep
You are right, it was dotConnect Express. Pro Trial seems to work properly.
Thanks a lot!