Page 1 of 1

timeout when open oracle connection

Posted: Tue 26 Dec 2006 04:13
by rkb
what is the proper way to configure the timeout on the open method to oracle.

I am using the direct method

oconn.UserId = oracleUserID
oconn.Password = oraclePW
oconn.Server = oracleServerDNS
oconn.Port = oraclePort
oconn.Sid = oracleSID
oconn.ConnectMode = Oracle.OracleConnectMode.Default
oconn.Direct = True

when i try to say
oconn.connectiontimeout=5000

won't compile
tried
oconn.connectiontimeout.maxvalue=5000
no compile again.

thanks

nevermind, figured it out

Posted: Tue 26 Dec 2006 04:20
by rkb
i see, connectiontimeout read only property if want to change have to do it all on the connection string.

thanks!

Posted: Tue 26 Dec 2006 07:02
by Alexey
Right.