check connected state

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
EarlyBird
Posts: 16
Joined: Thu 02 Dec 2010 08:54

check connected state

Post by EarlyBird » Wed 04 Sep 2013 10:20

Hi,
How can I determine if there is a connection to the Oracle server?
If for example the connection is interrupted by a towed network cable.
Is there a function in the ToraSession component?

Thank you for your support

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Re: check connected state

Post by bork » Wed 04 Sep 2013 13:07

Hello

You can call the Ping method to check if connection is established. If connection was lost, then the OnConnectionLost event of TOraSession will be called.

Post Reply