最佳答案
我正在尝试将我的 grails 项目连接到 Windows (8)系统中的 Oracle 数据库(神谕12c)。但是,无论何时运行应用程序,都会遇到以下异常:
Caused by: org.apache.commons.dbcp.SQLNestedException:
Cannot create PoolableConnectionFactory (ORA-28040:
No matching authentication protocol)
Caused by:
java.sql.SQLException: ORA-28040:
No matching authentication protocol
根据互联网上的建议,我也尝试编辑我的 *.ora
文件,但它不工作。
我在 sqlnet.ora
文件中添加了以下代码片段:
SQLNET.ALLOWED_LOGON_VERSION=10
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=10
SQLNET.ALLOWED_LOGON_VERSION_SERVER=10
在这里,我尝试分配(10,11,12) ,但它们都不工作。
有人能帮帮我吗?