atomikos+spring配置实现JTA分布式事务,在连接oracle数据库时出现以下异常信息

Exception:com.atomikos.datasource.ResourceException: Error inrecovery

这主要是由于数据库权限问题引起的,解决方案:

以sysdba登录数据库,给相应地用户赋予以下权限:

  • grant select on sys.dba_pending_transactions to<当前数据库用户>;
  • grant select on sys.pending_trans$ to <当前数据库用户>;
  • grant select on sys.dba_2pc_pending to <当前数据库用户>;
  • grant execute on sys.dbms_system to <当前数据库用户>;
在重新启动即可正常运行了

猜你喜欢

转载自blog.csdn.net/junge1545/article/details/80667165