Skip to content

Oracle Connection Health Check not implemented #1450

Description

@weberk


io.vertx.oracleclient.impl.OracleJdbcConnection.isValid() returns allways true.

  @Override
  public boolean isValid() {
    return true;
  }

Please implement by delegating to the oracle.jdbc.OracleConnection. So calling connection.isValid() you get the JDBC4 compliant result the Oracle JDBC driver delivers, which is much. more efficient than any alternative i.e. calling some table called dual!

  @Override
  public boolean isValid() {
    return connection.isValid(oracle.jdbc.OracleConnection.ConnectionValidation.SOCKET, 0);
  }

In order to speedup health check using isValid() it might be good to put the following property to the defaults:

quarkus.datasource.reactive.additional-properties.connectionProperties=oracle.jdbc.defaultConnectionValidation=SOCKET

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions