No matching authentication protocol错误
来源:互联网 发布:淘宝隐藏优惠券插件 编辑:程序博客网 时间:2024/06/03 17:42
- 问题现象
- 在使用Mybatis连接数据库oracle数据库时出现了如下错误:
org.springframework.jdbc.CannotGetJdbcConnectionException:Could not get JDBC Connection; nested exception isorg.apache.commons.dbcp.SQLNestedException: Cannot createPoolableConnectionFactory (ORA-28040: No matching authentication protocol)]with root cause
- 原因分析
1.你安装的oracle版本不支持你设置的运行链接。
2.可能是引入了的ojdbc14.jar出错。
- 处理步骤
1.找到你Oracle安装包下的sqlnet.ora文件。(我的文件路径在:E:/app/yuanshu/product/12.1.0/dbhome_1/NETWORK/ADMIN/sqlnet.ora)可做参考。
2.为oracle数据库添加支持的版本链接。添加语句为:
SQLNET_ALLOWED_LOGON_VERSIONS=(12,11,10,9,8,7)
--注: 该语句表示支持oracle7-12版本的链接。
3.将ojdbc14.jar替换为ojdbc6.jar.
(ojdbc14.jar支持JDK1.4,是老式版本,当中存在一些bug。ojdbc6.jar支持JDK6)
- 效果
- 附录
- Oracle9.0以后的版本都建议使用:“oracle.jdbc.OracleDriver”加载驱动类,而不再使用“oracle.jdbc.driver.OracleDriver”
0 0
- No matching authentication protocol错误
- No matching authentication protocol错误
- No matching authentication protocol错误
- ORA-28040: No matching authentication protocol 错误
- ORA-28040: No matching authentication protocol
- ORA-28040: No matching authentication protocol
- ORA-28040: No matching authentication protocol
- ORA-28040: No matching authentication protocol exception
- ORACLE12c ORA-28040: No matching authentication protocol
- ORA-28040 no matching authentication protocol
- ORA-28040: No matching authentication protocol
- ORA-28040: No matching authentication protocol 解决
- ORA-28040: No matching authentication protocol
- ORA-28040: No matching authentication protocol
- JDBC连接Oracle 12c错误ORA-28040: No matching authentication protocol
- 10g项目连接12c报:ORA-28040: No matching authentication protocol 错误
- JDBC连接Oracle 12c错误ORA-28040: No matching authentication protocol
- java.sql.SQLException: ORA-28040: No matching authentication protocol 问题
- 33
- hbase学习00--hbase简介
- ARM嵌入式Linux设备树简介及应用示例
- 44
- 数据挖掘中的模式发现(六)挖掘序列模式
- No matching authentication protocol错误
- 通过定时器完成防抖动的总结
- HBase学习01--Hbase的安装
- HDU 2022 海选女主角
- html、css、js文件加载顺序及执行情况
- C++入门 引用详解
- 12C管理员账号sys登录失败
- Python equivalent of which() in R
- tr命令