File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 50
50
- name : Set up Oracle
51
51
if : matrix.DB == 'Oracle'
52
52
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
54
54
55
55
- uses : actions/checkout@v3
56
56
- name : Setup .NET
Original file line number Diff line number Diff line change 1
1
2
2
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.
6
4
(Note: you'll need to sign-up for a (free) Oracle account to download)
7
5
8
6
2. Run the installer ...
@@ -37,6 +35,7 @@ Resolve conflict between Oracle client and with the managed driver NuGet package
37
35
1. Within an elevated command line, navigate to {Oracle home}\product\{version}\{dbhome}\ODP.NET\managed\x64
38
36
2. Run
39
37
OraProvCfg /action:ungac /providerPath:Oracle.ManagedDataAccess
38
+
40
39
This is needed because NHibernate test uses the managed driver NuGet package, but Oracle client installation
41
40
(excepted 12.2 and higher) put in the GAC a conflicting version of the assembly. This conflicting
42
41
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:
46
45
The tests involve creating and dropping many tables, sometimes with the same names but different data
47
46
types. This does not play well with Oracle meta data pooling, which needs to be disabled.
48
47
Add into your ODP.NET connection string:
48
+
49
49
Metadata Pooling=false;Self Tuning=false;
50
50
51
51
Please note that some tests are dependent on the machine locales, and may fail if they are not English.
You can’t perform that action at this time.
0 commit comments