Skip to content

Commit 150ab24

Browse files
committed
Turned of Oracle creation until password updated.
SVN: trunk@6004
1 parent eb1db2b commit 150ab24

File tree

2 files changed

+32
-28
lines changed

2 files changed

+32
-28
lines changed

lib/teamcity/oracle/oracle_installation.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
Installation steps for Oracle (Express Edition) for NH TeamCity:
33

44
1. Download Oracle Database 10g Express Edition (OracleXE.exe): http://www.oracle.com/technetwork/database/express-edition/downloads/102xewinsoft-090667.html;
5-
2. Run the installer ... choose any HTTP port for the listener (e.g., 8081);
5+
(Note: you'll need to sign-up for a (free) Oracle account to download)
6+
7+
2. Run the installer ... choose any HTTP port for the listener if asked (it may automatically choose the default 8080 if available);
68
3. Enter 'password' as the password for the SYS and SYSTEM accounts;
79
4. The setup should install Oracle (XE) on the machine;
810
5. Once the installation is complete, leave the option ticked to open the homepage for configuration.

src/NHibernate.TestDatabaseSetup/TestDatabaseSetup.cs

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -130,33 +130,35 @@ private static void SetupSQLite(Cfg.Configuration cfg)
130130

131131
private static void SetupOracle(Cfg.Configuration cfg)
132132
{
133-
var connStr =
134-
cfg.Properties[Cfg.Environment.ConnectionString]
135-
.Replace("User ID=nhibernate", "User ID=SYSTEM")
136-
.Replace("Password=nhibernate", "Password=password");
137-
138-
cfg.DataBaseIntegration(db =>
139-
{
140-
db.ConnectionString = connStr;
141-
db.Dialect<NHibernate.Dialect.Oracle10gDialect>();
142-
db.KeywordsAutoImport = Hbm2DDLKeyWords.None;
143-
});
144-
145-
using (var sf = cfg.BuildSessionFactory())
146-
{
147-
try
148-
{
149-
using(var s = sf.OpenSession())
150-
s.CreateSQLQuery("drop user nhibernate cascade").ExecuteUpdate();
151-
}
152-
catch {}
153-
154-
using (var s = sf.OpenSession())
155-
{
156-
s.CreateSQLQuery("create user nhibernate identified by nhibernate").ExecuteUpdate();
157-
s.CreateSQLQuery("grant dba to nhibernate with admin option").ExecuteUpdate();
158-
}
159-
}
133+
// disabled until system password is set on TeamCity
134+
135+
//var connStr =
136+
// cfg.Properties[Cfg.Environment.ConnectionString]
137+
// .Replace("User ID=nhibernate", "User ID=SYSTEM")
138+
// .Replace("Password=nhibernate", "Password=password");
139+
140+
//cfg.DataBaseIntegration(db =>
141+
// {
142+
// db.ConnectionString = connStr;
143+
// db.Dialect<NHibernate.Dialect.Oracle10gDialect>();
144+
// db.KeywordsAutoImport = Hbm2DDLKeyWords.None;
145+
// });
146+
147+
//using (var sf = cfg.BuildSessionFactory())
148+
//{
149+
// try
150+
// {
151+
// using(var s = sf.OpenSession())
152+
// s.CreateSQLQuery("drop user nhibernate cascade").ExecuteUpdate();
153+
// }
154+
// catch {}
155+
156+
// using (var s = sf.OpenSession())
157+
// {
158+
// s.CreateSQLQuery("create user nhibernate identified by nhibernate").ExecuteUpdate();
159+
// s.CreateSQLQuery("grant dba to nhibernate with admin option").ExecuteUpdate();
160+
// }
161+
//}
160162
}
161163
}
162164
}

0 commit comments

Comments
 (0)