Skip to content

Commit f027dad

Browse files
authored
Run tests against Oracle XE 21c (#3146)
1 parent 8e22b70 commit f027dad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/NetCoreTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Set up Oracle
5151
if: matrix.DB == 'Oracle'
5252
run: |
53-
docker run -d -p 1521:1521 -e APP_USER=nhibernate -e APP_USER_PASSWORD=nhibernate -e ORACLE_PASSWORD=nhibernate gvenzl/oracle-xe:18-slim
53+
docker run -d -p 1521:1521 -e APP_USER=nhibernate -e APP_USER_PASSWORD=nhibernate -e ORACLE_PASSWORD=nhibernate gvenzl/oracle-xe:21-slim
5454
5555
- uses: actions/checkout@v3
5656
- name: Setup .NET

lib/teamcity/oracle/oracle_installation.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11

22
Installation steps for Oracle for NH TeamCity:
3-
1. Download Oracle Database 12c from https://oracle.com/. Please make sure you comply with it's license.
4-
12.2 will fail some tests (mainly NH-1171) due to a bug with comments in queries, see
5-
https://stackoverflow.com/q/7493028/1178314. So take care of installing 12.1 instead.
3+
1. Download Oracle Database 21c Express Edition from https://oracle.com/. Please make sure you comply with it's license.
64
(Note: you'll need to sign-up for a (free) Oracle account to download)
75

86
2. Run the installer ...
@@ -37,6 +35,7 @@ Resolve conflict between Oracle client and with the managed driver NuGet package
3735
1. Within an elevated command line, navigate to {Oracle home}\product\{version}\{dbhome}\ODP.NET\managed\x64
3836
2. Run
3937
OraProvCfg /action:ungac /providerPath:Oracle.ManagedDataAccess
38+
4039
This is needed because NHibernate test uses the managed driver NuGet package, but Oracle client installation
4140
(excepted 12.2 and higher) put in the GAC a conflicting version of the assembly. This conflicting
4241
version needs to be removed from the GAC. Read more on https://stackoverflow.com/a/35176586/1178314.
@@ -46,6 +45,7 @@ Adjust the connection string for the tests:
4645
The tests involve creating and dropping many tables, sometimes with the same names but different data
4746
types. This does not play well with Oracle meta data pooling, which needs to be disabled.
4847
Add into your ODP.NET connection string:
48+
4949
Metadata Pooling=false;Self Tuning=false;
5050

5151
Please note that some tests are dependent on the machine locales, and may fail if they are not English.

0 commit comments

Comments
 (0)