我在应用服务器上安装了一个应用程序,该应用程序使用 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 - 该文件不存在,但它在一切正常的原始服务器上也不存在。
这里有什么问题以及如何解决?