Automatic database reconnection with OpenEdge replication
- Last Updated: February 11, 2026
- 3 minute read
- OpenEdge
- Version 13.0
- Documentation
By using the Auto Reconnect (-autoReconnect) client-session startup parameter, remote clients can automatically connect to the primary target of an OpenEdge replication database, if the connection to the source database fails. When an OpenEdge database fails over (planned or unplanned) to a replication primary target database, then remote clients (ABL clients or Progress Application Server for OpenEdge agents) running the application, automatically connect to the replication primary target database.
The AVM handles this automatically, without any administrator intervention. At client session startup, during the connection to the replication source database, the AVM retrieves virtual system table (VST) information about the current replication primary target database, so it knows what to connect to if the replication source database fails. If the information changes, clients are automatically notified of the updated information. In this manner, the client always knows what the current replication target database is.
To use this feature, the OpenEdge database must be configured for, and actively using, OpenEdge replication. For more information on OpenEdge replication, see Use Database Replication.
Interaction with -dbalt1 and
-dbalt2 client connection parameters
This feature can be used with, or without, the Alternate Database 1 (-dbalt1) and Alternate Database 2 (-dbalt2) client
connection parameters. However, it is a good practice to explicitly configure
-dbalt1 to be the OpenEdge replication primary
target database and -dbalt2 to be the OpenEdge
replication secondary target database, in the unlikely event that the replication
source database is unavailable during a client’s initial connection, and -dbalt1 is the new replication source. You can set these
connection parameters once in a parameter file (.pf), to be used at session startup, or with the CONNECT statement, and not have to change them.
- Replication source database
- Database specified by
-dbalt1, if provided - Database specified by
-dbalt2, if provided - Primary replication target database
Frequency of connection set attempts
You can control the number of times to retry connecting to a set of OpenEdge databases, with the Retry Connect Set (-retryConnect) client connection parameter. The default is 0 retries. You can adjust the pause interval between connection set attempts with the Retry Connect Set Pause (-retryConnectPause) client connection parameter. The default value is 5 seconds. You can further control the number of connection attempts for an individual database connection with the Connection Retry Attempts (-ct) client connection parameter. The default is 50 times.
For more information on -dbalt1,
-dbalt2, -retryConnect, -retryConnectPause,
and -ct, see Learn about automatic database
reconnect.
Logging for connections to OpenEdge replication-enabled databases
Database connection logging can be
enabled for clients with the DB.Connects log entry
type. At logging level 3 or higher, the client logs additional messages for
replication-enabled databases.
|
|
(replication
source) or (replication target).
|
If the replication transition is in process, one of two messages is logged, depending on the replication state:
|
|
|
|