timeout when open oracle connection

timeout when open oracle connection

Postby rkb » Tue 26 Dec 2006 04:13

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
rkb
 
Posts: 4
Joined: Tue 21 Nov 2006 03:40

nevermind, figured it out

Postby rkb » Tue 26 Dec 2006 04:20

i see, connectiontimeout read only property if want to change have to do it all on the connection string.

thanks!
rkb
 
Posts: 4
Joined: Tue 21 Nov 2006 03:40

Postby Alexey » Tue 26 Dec 2006 07:02

Right.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for Oracle