I am developing an application for a Honeywell mobile computer. I try to open a new Oracle database connection, but when I try to do it, I get the following exception:
"Server did not respond within the specified timeout interval".
I do not know if it has something to do with my problem, but when I check the ConnectionTimeout property of my OracleConnection object, the value is 15.
This is the code:
Code: Select all
Private _Conexion As OracleConnection
Public Sub Conectar(ByVal pUserName As String, ByVal pPassword As String, ByVal pPort As Integer, ByVal pHost As String, ByVal pDataBase As String)
_Conexion.ConnectionString = String.Empty
_Conexion.ConnectionString = ""
_Conexion.UserId = pUserName
_Conexion.Password = pPassword
_Conexion.Port = pPort
_Conexion.Server = pHost
_Conexion.Sid = pDataBase
_Conexion.Open()
End Sub