We have a similar problem with our application (NHibernate 2.1.2.4000, ODP.net 2.111.7.0 on Windows 7). When we insert data into the database, we end up with a huge memory leak and descriptor:
for (int i=1;i<10000;i++) { using (var session = _sessionFactory.OpenSession(); { var tx = session.OpenTransaction()
The only solution is to set Enlist = false in the connection string or use OracleClientDriver instead of OracleDataClientDriver. This issue did not occur in NHibernate 1.2. When we tried this with TransactionScope, there was an even worse communication leak.
source share