Error conection with oracle

Error conection with oracle

Postby mjimenez » Thu 27 Apr 2006 16:27

An unhandled exception of type 'CoreLab.Oracle.OracleException'occurred in CoreLab.Oracle.dll

Additional information:Network error:The requested address is not valid in its context

Dim cnnprueba As OracleConnection
cnnprueba = New OracleConnection
cnnprueba.UserId = "tcihq5"
cnnprueba.Password = "tcihq5"
cnnprueba.Server = "tcihq"
cnnprueba.Sid = "tcihq"
'cnnprueba.Port = 2500
cnnprueba.Open()
mjimenez
 
Posts: 6
Joined: Thu 27 Apr 2006 16:22

Postby Paul » Fri 28 Apr 2006 06:13

Please check connection parameters. "cnnprueba.Server" must be the name of host or IP address. Please see OraDirect .NET documentation for more details.
Paul
 
Posts: 725
Joined: Thu 28 Oct 2004 14:06

if the port is necessary to write it and as it must be his I number ?

Postby mjimenez » Fri 28 Apr 2006 15:24

if the port is necessary to write it and as it must be his I number ?
mjimenez
 
Posts: 6
Joined: Thu 27 Apr 2006 16:22

Postby Alexey » Wed 03 May 2006 10:55

Yes, uncomment
Code: Select all
'cnnprueba.Port = 2500
string.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for Oracle