OnConnectionLost - Reconnects but the next action raise OCI_INVALID_HANDLE

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
JoaoMarcos
Posts: 26
Joined: Fri 28 Jun 2013 20:26

OnConnectionLost - Reconnects but the next action raise OCI_INVALID_HANDLE

Post by JoaoMarcos » Fri 07 Oct 2016 21:06

Hi,

I have a TOraSession with Options.LocalFailover set to true and have a OnConnectionLost event just with the line:

RetryMode := rmReconnectExecute;

I made a text log and the event has been fired and the reconnection Works. But if the user tries to acess a record in an already open recordset the error OCI_INVALID_HANDLE will be raised.

The connection is in OCI mode. Oracle Client version is 9i.

Is there a way to reconnect and use the same connection (or session) as before the connect was lost?

I'm trying to avoid using DisconnectMode for now.

Thanks,

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: OnConnectionLost - Reconnects but the next action raise OCI_INVALID_HANDLE

Post by MaximG » Wed 09 Nov 2016 13:30

We have checked ODAC 9.7.27, using OnConnectionLost event and found no issues. For further investigation, please compose a small sample, demonstrating the issue and send it, using the contact form https://www.devart.com/company/contactform.html, including the script, creating the database objects in the sample.

Post Reply