These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem using IsolationLevel ReadUnCommitted
PostPosted: Wed Oct 22, 2008 7:58 am 
Newbie

Joined: Tue Sep 09, 2008 3:20 am
Posts: 17
Hi,

I am using Nhibernate in my project along with oracle database, my project works fine when i use the IsolationLevel ReadCommitted.

But when i use IsolationLevel ReadUnComitted I get the billow error when calling BeginTransaction. The same works in SQL database and not with oracle database.

IsolationLevel must be ReadCommitted or Serializable
Parameter name: isolationLevel

at Oracle.DataAccess.Client.OracleConnection.BeginTransaction(IsolationLevel isolationLevel)
at Oracle.DataAccess.Client.OracleConnection.System.Data.IDbConnection.BeginTransaction(IsolationLevel isolationLevel)
at NHibernate.Transaction.AdoTransaction.Begin(IsolationLevel isolationLevel)


This is my Config File

Code:
<hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" >
    <session-factory>
      <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
         
      <property name="dialect">NHibernate.Dialect.Oracle9Dialect</property>
         
      <property name="connection.driver_class">NHibernate.Driver.OracleDataClientDriver</property>
         
      <property name="connection.connection_string">Data source=s;User Id=id;Password=pas;</property>   
      <property name="connection.isolation">
   ReadUncommitted
      </property>
    </session-factory>
</hibernate-configuration>


Have i missed something here

Thanks

Arvind


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.