Skip to content

Commit 5fbcb06

Browse files
beikovyrodiere
authored andcommitted
HHH-18877 Switch to ojdbc17 version 23.6.0.24.10
1 parent 7b56e18 commit 5fbcb06

File tree

8 files changed

+15
-12
lines changed

8 files changed

+15
-12
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
fail-fast: false
147147
matrix:
148148
include:
149-
- rdbms: oracle_atps
149+
- rdbms: oracle_atps_tls
150150
- rdbms: oracle_db19c
151151
- rdbms: oracle_db21c
152152
- rdbms: oracle_db23c
@@ -216,6 +216,9 @@ jobs:
216216
RUNID: ${{ github.run_number }}
217217
# These runners have no HOME variable set by default, we need to explicitly set it to make the build work
218218
HOME: /root
219+
# Needed for TFO (TCP fast open)
220+
LD_PRELOAD: /home/opc/libtfojdbc1.so
221+
LD_LIBRARY_PATH: /home/opc
219222
run: ./ci/build-github.sh
220223
shell: bash
221224
# Upload build scan data.

databases/oracle/matrix.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
66
*/
77
// Do not forget to update settings.gradle as well
8-
jdbcDependency 'com.oracle.database.jdbc:ojdbc11:23.3.0.23.09'
8+
jdbcDependency 'com.oracle.database.jdbc:ojdbc17:23.6.0.24.10'

docker_db.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ oracle_atps() {
681681
export SERVICE=$(echo $INFO | jq -r '.database' | jq -r '.service')
682682
export PASSWORD=$(echo $INFO | jq -r '.database' | jq -r '.password')
683683

684-
curl -k -s -X POST "https://${HOST}.oraclevcn.com:8443/ords/admin/_/sql" -H 'content-type: application/sql' -H 'accept: application/json' -basic -u admin:${PASSWORD} --data-ascii "create user hibernate_orm_test_$RUNID identified by \"Oracle_19_Password\" DEFAULT TABLESPACE DATA TEMPORARY TABLESPACE TEMP;alter user hibernate_orm_test_$RUNID quota unlimited on data;grant CREATE SESSION, RESOURCE, CREATE VIEW, CREATE SYNONYM, CREATE ANY INDEX, EXECUTE ANY TYPE to hibernate_orm_test_$RUNID;"
684+
curl -k -s -X POST "https://${HOST}.oraclecloudapps.com/ords/admin/_/sql" -H 'content-type: application/sql' -H 'accept: application/json' -basic -u admin:${PASSWORD} --data-ascii "create user hibernate_orm_test_$RUNID identified by \"Oracle_19_Password\" DEFAULT TABLESPACE DATA TEMPORARY TABLESPACE TEMP;alter user hibernate_orm_test_$RUNID quota unlimited on data;grant CREATE SESSION, RESOURCE, CREATE VIEW, CREATE SYNONYM, CREATE ANY INDEX, EXECUTE ANY TYPE to hibernate_orm_test_$RUNID;"
685685
}
686686

687687
oracle_atps_tls() {
@@ -691,7 +691,7 @@ oracle_atps_tls() {
691691
export SERVICE=$(echo $INFO | jq -r '.database' | jq -r '.service')
692692
export PASSWORD=$(echo $INFO | jq -r '.database' | jq -r '.password')
693693

694-
curl -s -X POST "https://${HOST}.oraclecloudapps.com/ords/admin/_/sql" -H 'content-type: application/sql' -H 'accept: application/json' -basic -u admin:${PASSWORD} --data-ascii "create user hibernate_orm_test_$RUNID identified by \"Oracle_19_Password\" DEFAULT TABLESPACE DATA TEMPORARY TABLESPACE TEMP;alter user hibernate_orm_test_$RUNID quota unlimited on data;grant CREATE SESSION, RESOURCE, CREATE VIEW, CREATE SYNONYM, CREATE ANY INDEX, EXECUTE ANY TYPE to hibernate_orm_test_$RUNID;"
694+
curl -s -X POST "https://${HOST}.oraclecloudapps.com/ords/admin/_/sql" -H 'content-type: application/sql' -H 'accept: application/json' -basic -u admin:${PASSWORD} --data-ascii "create user hibernate_orm_test_$RUNID identified by \"Oracle_19_Password\" DEFAULT TABLESPACE DATA TEMPORARY TABLESPACE TEMP;alter user hibernate_orm_test_$RUNID quota unlimited on data;grant CREATE SESSION, RESOURCE, CREATE VIEW, CREATE SYNONYM, CREATE ANY INDEX, EXECUTE ANY TYPE, CREATE DOMAIN to hibernate_orm_test_$RUNID;"
695695
}
696696

697697
oracle_db19c() {

documentation/src/main/asciidoc/introduction/Configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ driver for your database.
6969
| MariaDB | `org.mariadb.jdbc:mariadb-java-client:{version}`
7070
| DB2 | `com.ibm.db2:jcc:{version}`
7171
| SQL Server | `com.microsoft.sqlserver:mssql-jdbc:{version}`
72-
| Oracle | `com.oracle.database.jdbc:ojdbc11:{version}`
72+
| Oracle | `com.oracle.database.jdbc:ojdbc17:{version}`
7373
| H2 | `com.h2database:h2:{version}`
7474
| HSQLDB | `org.hsqldb:hsqldb:{version}`
7575
|===

documentation/src/main/asciidoc/repositories/Configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ And we'll need to pick a JDBC driver:
3333
| MariaDB | `org.mariadb.jdbc:mariadb-java-client`
3434
| DB2 | `com.ibm.db2:jcc`
3535
| SQL Server | `com.microsoft.sqlserver:mssql-jdbc`
36-
| Oracle | `com.oracle.database.jdbc:ojdbc11`
36+
| Oracle | `com.oracle.database.jdbc:ojdbc17`
3737
| H2 | `com.h2database:h2`
3838
| HSQLDB | `org.hsqldb:hsqldb`
3939
|===

hibernate-ucp/hibernate-ucp.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description = 'Integration for Oracle UCP into Hibernate O/RM'
1515
dependencies {
1616
implementation project( ':hibernate-core' )
1717
implementation libs.ucp
18-
implementation libs.ojdbc11
18+
implementation libs.ojdbc17
1919

2020
testImplementation project( ':hibernate-testing' )
2121
}

local-build-plugins/src/main/groovy/local.databases.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ ext {
206206
//
207207
// To avoid hibernate-spatial tests failure, JVM must be enabled as stated in documentation:
208208
// https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-oracle-java.html
209-
'jdbc.url' : 'jdbc:oracle:thin:@(description=(retry_count=5)(retry_delay=1)(address=(protocol=tcps)(port=1521)(host=' + dbHost + '.oraclecloud.com))(connect_data=(service_name=' + dbService + '_tp.adb.oraclecloud.com))(security=(ssl_server_dn_match=no)))?oracle.jdbc.enableQueryResultCache=false&oracle.jdbc.thinForceDNSLoadBalancing=true&tcp.nodelay=yes',
209+
'jdbc.url' : 'jdbc:oracle:thin:@(description=(retry_count=5)(retry_delay=1)(address=(protocol=tcps)(port=1521)(host=' + dbHost + '.oraclecloud.com))(connect_data=(USE_TCP_FAST_OPEN=ON)(service_name=' + dbService + '_tp.adb.oraclecloud.com))(security=(ssl_server_dn_match=no)))?oracle.jdbc.enableQueryResultCache=false&oracle.jdbc.thinForceDNSLoadBalancing=true&tcp.nodelay=yes',
210210
'jdbc.datasource' : 'oracle.jdbc.OracleDriver',
211211
// 'jdbc.datasource' : 'oracle.jdbc.datasource.impl.OracleDataSource',
212212
'connection.init_sql' : ''
@@ -219,7 +219,7 @@ ext {
219219
// Requires dbHost (pointing to the right cloud region) AND dbService (unique database name).
220220
// To avoid hibernate-spatial tests failure, JVM must be enabled as stated in documentation:
221221
// https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-oracle-java.html
222-
'jdbc.url' : 'jdbc:oracle:thin:@(description=(retry_count=5)(retry_delay=1)(address=(protocol=tcp)(port=1521)(host=' + dbHost + '.oraclevcn.com))(connect_data=(service_name=' + dbService + '_tp.adb.oraclecloud.com))(security=(ssl_server_dn_match=no)))?oracle.jdbc.enableQueryResultCache=false&oracle.jdbc.thinForceDNSLoadBalancing=true&tcp.nodelay=yes',
222+
'jdbc.url' : 'jdbc:oracle:thin:@(description=(retry_count=5)(retry_delay=1)(address=(protocol=tcp)(port=1521)(host=' + dbHost + '.oraclevcn.com))(connect_data=(USE_TCP_FAST_OPEN=ON)(service_name=' + dbService + '_tp.adb.oraclecloud.com))(security=(ssl_server_dn_match=no)))?oracle.jdbc.enableQueryResultCache=false&oracle.jdbc.thinForceDNSLoadBalancing=true&tcp.nodelay=yes',
223223
'jdbc.datasource' : 'oracle.jdbc.OracleDriver',
224224
// 'jdbc.datasource' : 'oracle.jdbc.datasource.impl.OracleDataSource',
225225
'connection.init_sql' : ''

settings.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ dependencyResolutionManagement {
121121
library( "hikaricp", "com.zaxxer", "HikariCP" ).versionRef( hikaricpVersion )
122122
library( "ucp", "com.oracle.database.jdbc", "ucp11" ).versionRef( ucpVersion )
123123

124-
library( "ojdbc11", "com.oracle.database.jdbc", "ojdbc11" ).versionRef( ucpVersion )
124+
library( "ojdbc17", "com.oracle.database.jdbc", "ojdbc17" ).versionRef( ucpVersion )
125125

126126
library( "geolatte", "org.geolatte", "geolatte-geom" ).versionRef( geolatteVersion )
127127

@@ -231,7 +231,7 @@ dependencyResolutionManagement {
231231
def mariadbVersion = version "mariadb", "3.5.1"
232232
def mssqlVersion = version "mssql", "12.8.1.jre11"
233233
def mysqlVersion = version "mysql", "9.1.0"
234-
def oracleVersion = version "oracle", "23.4.0.24.05"
234+
def oracleVersion = version "oracle", "23.6.0.24.10"
235235
def pgsqlVersion = version "pgsql", "42.7.4"
236236
def sybaseVersion = version "sybase", "1.3.1"
237237
def tidbVersion = version "tidb", mysqlVersion
@@ -247,7 +247,7 @@ dependencyResolutionManagement {
247247
library( "mysql", "com.mysql", "mysql-connector-j" ).versionRef( mysqlVersion )
248248
library( "tidb", "com.mysql", "mysql-connector-j" ).versionRef( tidbVersion )
249249
library( "mariadb", "org.mariadb.jdbc", "mariadb-java-client" ).versionRef( mariadbVersion )
250-
library( "oracle", "com.oracle.database.jdbc", "ojdbc11" ).versionRef( oracleVersion )
250+
library( "oracle", "com.oracle.database.jdbc", "ojdbc17" ).versionRef( oracleVersion )
251251
library( "oracleXml", "com.oracle.database.xml", "xdb" ).versionRef( oracleVersion )
252252
library( "oracleXmlParser", "com.oracle.database.xml", "xmlparserv2" ).versionRef( oracleVersion )
253253
library( "mssql", "com.microsoft.sqlserver", "mssql-jdbc" ).versionRef( mssqlVersion )

0 commit comments

Comments
 (0)