Eclipse用Hibernate连接Oracle报ORA-28040错误

发布网友 发布时间:2022-04-20 22:34

我来回答

2个回答

懂视网 时间:2022-05-02 17:27

用客户端连接oracle12c服务器端时,经常会遇到ORA-28040的报错提示。

ORACLE官方对ORA-28040的报错提示的解释:

oracle12c@oracle-ora12c$oerr ora 28040
28040, 0000, "No matching authentication protocol"
// *Cause: There was no acceptable authentication protocol for
// either client or server.
// *Action: The administrator should set the values of the
// SQLNET.ALLOWED_LOGON_VERSION_SERVER and
// SQLNET.ALLOWED_LOGON_VERSION_CLIENT parameters, on both the
// client and on the server, to values that match the minimum
// version software supported in the system.
// This error is also raised when the client is authenticating to
// a user account which was created without a verifier suitable for
// the client software version. In this situation, that account‘s
// password must be reset, in order for the required verifier to
// be generated and allow authentication to proceed successfully.

在oracle12c版本中在监听中引入了允许连接的客户端和服务器端的最低版本信息,可以在$ORACLE_HOME/network/admin/sqlnet.ora文件中添加以下信息解决该问题:

SQLNET.ALLOWED_LOGON_VERSION=8

oracle12c中的ORA-28040

标签:sql   gen   created   uitable   ble   cli   解释   UI   gpo   

热心网友 时间:2022-05-02 14:35

很明显驱动包有问题啊
声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。
E-MAIL:11247931@qq.com