春季批处理 ORA-08177:无法序列化此事务的访问



我们有时会面临ORA-08177问题。尽管我们使用batch.repository.sisolationlevelforcreate=isolation_READ_COMMITED更改了隔离级别,但它并没有解决问题。

春季批处理版本为4.1.2.RELEASE.

你知道吗?

如果您使用的是Spring Boot 2.7或更高版本,您可以使用Spring.batch.jdbc.sisolation-level-for-create应用程序属性来设置所需的事务隔离级别:

Spring Batch的事务隔离级别可以使用spring.batch.jdbc.isolation-level-for-create属性进行配置。

例如,您可以将以下属性添加到application.properties文件中:

spring.batch.jdbc.isolation-level-for-create=read_committed

最新更新