H
henkka
I have a problem connecting to an Oracle database. On my own desktop I run
Windows XP SP2, Visual Studio 2005 and Oracle client 8.1.7 with the
8.1.7.1.5 patch. I can connect to the database using SQLPlus (username
ownmgr, password mypwd, service upp.sotsa which corresponds to a
tnsnames.ora entry) without any problems but if I try it through VS 2005 I
get the error
ORA-12537
which description in English is something like "Connection broken".
I have tried to get connected through this code
string connectionString;
connectionString = "Data Source=upp.sotsa;User ID=ownmgr;Password=mypwd";
// Assumes connectionString is a valid connection string.
using (OracleConnection connection =
new OracleConnection(connectionString))
{
connection.Open();
// Do work here.
}
and through VS's Server explorer - Data connection, choosing Oracle
database, trying both the Data provider for OLE DB and Oracle. I get the
same ORA-12537 error. Also trying Visual Studio 2003 gives the same error.
I've gone through all the steps in Setting up the environment
http://msdn.microsoft.com/library/d...edb/htm/oledboracleconnectivity_checklist.asp
and especially changing the registry values which pointed to wrong DLL's
(changed them to the oci.dll, orasql18.dll, oraclient8.dll). I've also gave
the Windows group "Users" Read & Execute (or reallyEveryone full control)
for my c:\orant81 folder.
I'm running out of ideas, does anybody got a clue?
Henkka
Windows XP SP2, Visual Studio 2005 and Oracle client 8.1.7 with the
8.1.7.1.5 patch. I can connect to the database using SQLPlus (username
ownmgr, password mypwd, service upp.sotsa which corresponds to a
tnsnames.ora entry) without any problems but if I try it through VS 2005 I
get the error
ORA-12537
which description in English is something like "Connection broken".
I have tried to get connected through this code
string connectionString;
connectionString = "Data Source=upp.sotsa;User ID=ownmgr;Password=mypwd";
// Assumes connectionString is a valid connection string.
using (OracleConnection connection =
new OracleConnection(connectionString))
{
connection.Open();
// Do work here.
}
and through VS's Server explorer - Data connection, choosing Oracle
database, trying both the Data provider for OLE DB and Oracle. I get the
same ORA-12537 error. Also trying Visual Studio 2003 gives the same error.
I've gone through all the steps in Setting up the environment
http://msdn.microsoft.com/library/d...edb/htm/oledboracleconnectivity_checklist.asp
and especially changing the registry values which pointed to wrong DLL's
(changed them to the oci.dll, orasql18.dll, oraclient8.dll). I've also gave
the Windows group "Users" Read & Execute (or reallyEveryone full control)
for my c:\orant81 folder.
I'm running out of ideas, does anybody got a clue?
Henkka