database - 尝试使用钱包通过 jdbc 连接到 oracle 时出现“锁定失败”错误
问题描述
我在应用服务器上安装了一个应用程序,该应用程序使用 SSL 和钱包连接到 Oracle 数据库 19。一切正常。
然后我克隆了我的应用服务器并在克隆上运行了相同的应用程序。产生此错误时无法连接:
SQLException: encountered a problem with the Secret Store.
Check the wallet location for the presence of an open wallet (cwallet.sso) and ensure that this wallet contains the correct credentials using the mkstore utility:
java.io.IOException: Failed to lock...
attempt 1: java.io.FileNotFoundException: /home/ubuntu/wallets/mywallet/ewallet.p12.lck (Permission denied)
attempt 2: java.io.FileNotFoundException: /tmp/pki_data717030271.lck (No such file or directory)
- 我检查了文件 ewallet.p12.lck - 该文件存在并且我的应用程序用户可以读/写它
- 我检查了文件 /tmp/pki_data717030271.lck - 该文件不存在,但它在一切正常的原始服务器上也不存在。
这里有什么问题以及如何解决?
解决方案
解决了。只需要删除ewallet.p12.lck
文件。
我猜它是某些锁定机制的一部分,可以在一台服务器上正常工作,但不能复制到另一台服务器。
推荐阅读
- c# - 无法对空引用 C# Excel 执行运行时绑定
- .net-core - 是否可以在控制台应用程序中为 .NET Core 主机进程 (dotnet.exe) 设置标题?
- ios - iOS Swift SpriteKit:如何使子精灵节点的位置和动作与其父精灵节点相同?
- html - 如何在没有 javascript 的情况下隐藏 URL 中的参数?
- apache-kafka-streams - 流线程计算
- c# - ILSpy 生成的代码
- woocommerce - Woocommerce - 在账单明细中添加文本行
- c# - 更改属性时引发事件
- c# - 用什么代替 SafeHandle.DangerousGetHandle?
- android - 如何正确滚动嵌套滚动视图?