首页 > 解决方案 > 尝试使用钱包通过 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) 

这里有什么问题以及如何解决?

标签: databasessloracle19coracle-wallet

解决方案


解决了。只需要删除ewallet.p12.lck文件。

我猜它是某些锁定机制的一部分,可以在一台服务器上正常工作,但不能复制到另一台服务器。


推荐阅读