How to enable the application automatically connect to DB

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
AutoConnect

How to enable the application automatically connect to DB

Post by AutoConnect » Tue 07 Dec 2004 14:07

Every time our Oracle database shutdown for maintenance, we have to shutdown the application. Is there anyway we can avoid that such that the application can reconnect itself to Oracle as soon as the database is up?

Delphi 6 + Oracle 8i

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Tue 07 Dec 2004 15:32

Try to solve this problem with Transparent Application Failover. It can be
useful when Oracle server shutdowns suddenly. You need to configure Oracle
client (please see Oracle documentation) and use TOraSession.OnFailover.

The last versions of ODAC 5.10 can reconnect automatically during executing
SQL statement if Oracle server was restarted. Unfortunately, here you will
lose uncommitted transactions and cannot fetch additional records from opened
TOraQuery.

Post Reply