timeout when open oracle connection

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
rkb
Posts: 4
Joined: Tue 21 Nov 2006 03:40

timeout when open oracle connection

Post by 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

Post by 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!

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

Post by Alexey » Tue 26 Dec 2006 07:02

Right.

Post Reply