Repository navigation
Setting Oracle DB v$session properties for Keycloak Quarkus jdbc connection #19277
|
Hello, I am unable to configure additional properties for an Oracle Database connection. Properties p = new java.util.Properties();
p.put("v$session.osuser", "ca_user");
p.put("v$session.machine", "deployment_dev123");
p.put("v$session.program", "token_service");
// get connection with properties...Or configure a DataSource with Spring | Boot (w/ Hikari): spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:oracle:thin:@localhost:1521:XE
driver-class-name: oracle.jdbc.OracleDriver
username: username
password: password
data-source-properties: |
v$session.program: token_service
v$session.osuser: ca_user
v$session.machine: deployment_dev123 This sets fields of the V$SESSION table. I've been trying to achieve the same thing with Keycloak and Quarkus, but to no avail.
Is this even possible? If so, how? |
Answered by
hill-daniel
Mar 23, 2023
Replies: 1 comment
8000
|
nvm, solved it after experimenting with quarkus.properties. This did it: |
0 replies
Answer selected by
hill-daniel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nvm, solved it after experimenting with quarkus.properties. This did it:
quarkus.datasource.jdbc.additional-jdbc-properties.connectionProperties=v$session.osuser=ca_user;v$session.machine=deployment_dev123