Spring Batch ORA-08177: can't serialize access for this transaction when running single job, SERIALIZED isolation level

前端 未结 9 509
后悔当初
后悔当初 2020-12-01 07:58

I am getting this exception with SERIALIZED isolation level on JobRepository in Spring Batch:

org.springframework.dao.CannotSerializeTransactionException: Pr         


        
9条回答
  •  心在旅途
    2020-12-01 08:56

    We have tried jacking up INI_TRANS to 100 and we were still running into issues

    I found this article that suggests adding ROWDEPENDENCIES to the creation of tables.

    http://www.devx.com/dbzone/Article/41591?pf=true

    For me with INI_TRANS & now ROWDEPENDENCIES the exceptions for Serialized have gone away.

    Update: Turns out not to be a perfect solution. We did have one event of this SERIALIZED exception happen over night. Now that's much better as we had 100s of runs before a single failure but it appears that using ROWDEPENDENCIES isn't a yet a complete solution.

提交回复
热议问题