"Can not obtain Oracle client..." error in Direct mode
Posted: 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
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