Skip to content

Oracle.ManagedDataAccess.Core - Retry Count not working #331

@dmitriy-shleht

Description

@dmitriy-shleht

Oracle.ManagedDataAccess.Core v3.21.120

We have two database servers, and we need to connect to the second server if the first server fails.

Here is our connection string:

User Id=TEST;CONNECTION TIMEOUT=10;HA Events=true;Data Source=(DESCRIPTION =
 (TRANSPORT_CONNECT_TIMEOUT=10) (RETRY_COUNT=1)(RETRY_DELAY=5)
 (ADDRESS_LIST =
(LOAD_BALANCE=on)
( ADDRESS = (PROTOCOL = TCP)(HOST=172.30.2.211)(PORT=1521)))
 (ADDRESS_LIST =
(LOAD_BALANCE=on)
( ADDRESS = (PROTOCOL = TCP)(HOST=172.30.2.212)(PORT=1521)))
 (CONNECT_DATA=(SERVICE_NAME = odb)))

The RETRY_COUNT parameter is not working as expected. When we try to open the connection initially, we get a Connection request timed out exception, and when we try to open the connection again, we successfully connect to the database server. How can we make it so that it connects to the second server (172.30.2.212) immediately without throwing an exception?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions