Hikaricp: Setting program name for Oracle DB when using HikariCP with Spring

Created on 22 Oct 2018  ·  3Comments  ·  Source: brettwooldridge/HikariCP

I am trying to connect to an Oracle DB with a specific v$session.program parameter.
My application.yml

spring:
  datasource:
    hikari:
      jdbc-url: jdbc:oracle:thin:@<db_host>
      driver-class-name: oracle.jdbc.OracleDriver
      username: <username>
      password: <password>
      data-source-properties:
        v$session.program: <name>

How would I configure data source properties using HikariCP?

All 3 comments

Via Spring? I do not know. Pls ask on stackoverflow.com or the spring forums.

Thank you, I will ask there. How would I do it without Spring?

Try the readme

Was this page helpful?
0 / 5 - 0 ratings