OraSession->Options->ConnectionTimeout

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
benkedon
Posts: 28
Joined: Tue 15 May 2007 12:27

OraSession->Options->ConnectionTimeout

Post by benkedon » Tue 10 Jul 2007 20:02

I'm using your latest VCL ODAC 6.10 components for Borland C++ Builder 5. I have 'OraSession->Options->Direct' set to true and the 'OraSession->Options->ConnectionTimeout' set to 30 (secs). I have the 'OraSession->ConnectString' set appropriately for direct mode, i.e. as 'user/password@hostserver:port:sid'. However, when I try to set 'OraSession->Connected' to true, it almost immediately, i.e. as opposed to trying for 30 seconds, comes back with an "ORA-00001: NET: Connection timed out" error. What am I doing wrong ?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 11 Jul 2007 13:01

ConnectionTimeout is measured in milliseconds, so the corect value is 30000.

Post Reply