oracle - 合并中的 JPA 错误:仅插入时出现密码过期错误
问题描述
我们正在使用 entitymanager 合并方法来更新(如果存在)或插入(如果不存在)某个表中的记录。发生的情况是,如果是更新,则没有错误,但如果是插入,我们会从日志中看到以下错误:
原因:java.sql.SQLException: ORA-28001: 密码已过期\n DSRA0010E: SQL 状态 = 99999,错误代码 = 28,001\n\tat oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450) \n\tat oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:392)\n\tat oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:385)\n\tat oracle.jdbc.driver。 T4CTTIfun.processError(T4CTTIfun.java:938)\n\tat oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:480)\n\tat oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:655)
当我们检查数据源是否连接成功时 - 我们没有密码过期错误。
我们还尝试通过 oracle sql developer tool 手动插入表 - 没有错误
谁能告诉我为什么会这样?
解决方案
推荐阅读
- reactjs - 为什么在下面提供的链接中使用道具而不是状态组件中的状态?
- arrays - 什么算法会给我 O(logd)
- powerbi - 如何删除前导 YYYY-MM-DD 并在 powerbi 中格式化数据类型
- php - 在 Woocommerce 上显示每个产品的发布时间
- android - 如何在 ListView 中显示 JSON 信息(django rest-framework)
- java - 获取 JPanel 的显示区域尺寸,Windows vs Mac
- javascript - javascript函数$.get()被调用时如何加载img和pdf?
- excel - 根据单元格值对动态范围进行排序
- python - 将 NumPy 中定义的函数转换为 SymPy
- windows - ASP.NET Core 忽略 ASPNETCORE_ENVIRONMENT 变量