开发者

Invalid IsolationLevel parameter: must be ReadCommitted or Serializable

开发者 https://www.devze.com 2022-12-13 10:51 出处:网络
In my .NET 3.5 project, I have created an OracleConnection object called conn. Then i create a Transaction object as follows :

In my .NET 3.5 project, I have created an OracleConnection object called conn.

Then i create a Transaction object as follows :

using (OracleTransaction trans = conn.BeginTransaction(IsolationLevel.RepeatableRead))

WHen the control goes to the Transaction creation line, it gives an exception as

System.ArgumentExcepti开发者_C百科on was unhandled Message="Invalid IsolationLevel parameter: must be ReadCommitted or Serializable." Source="System.Data.OracleClient"

Has anyone faced this problem ? Why can i not set it to RepeatableRead ?

Thanks, Chak.


Oracle only supports read commited or serializable isolation levels.

http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#sthref1972

0

精彩评论

暂无评论...
验证码 换一张
取 消