问题描述:
Caused by: oracle.jdbc.OracleDatabaseException: ORA-08177: 无法连续访问此事务处理
问题分析:
1、Quartz从MySQL数据库换成Oracle数据库,并且org.quartz.jobStore.txIsolationLevelSerializable设置为true,出现了报错。
解决办法:
(1)注释掉Quartz配置类的@Configuration注解,代表不使用当前配置类,org.quartz.jobStore.txIsolationLevelSerializable默认为false。
(2)注释掉Quartz配置类的prop.put("org.quartz.jobStore.txIsolationLevelSerializable", "true");,代表org.quartz.jobStore.txIsolationLevelSerializable默认为false。
// quartz参数
Properties prop = new Properties();
//prop.put("org.quartz.jobStore.txIsolationLevelSerializable", "true");
(3)将org.quartz.jobStore.txIsolationLevelSerializable设置为false。
prop.put("org.quartz.jobStore.txIsolationLevelSerializable", "false");
最后
以上就是勤恳未来最近收集整理的关于oracle08177,Java OracleDatabaseException: ORA-08177: 无法连续访问此事务处理问题解决的全部内容,更多相关oracle08177,Java内容请搜索靠谱客的其他文章。
发表评论 取消回复