Oracle 12c 连接时报错:ORA-28040: No matching authentication protocol问题解决方法
来源:互联网 发布:网络兼职软文 编辑:程序博客网 时间:2024/06/06 14:09
问题描述:
客户端连接Oracle 12c的时候,报错误:
ORA-28040: No matching authentication protocol
问题原因:
oracle 12c的参数SQLNET.ALLOWED_LOGON_VERSION默认等于11。当我们使用11g JDBC之前版本的thin驱动连接的时候,就会报错。
解决方法:
在数据库服务器上的oracle/network/admin/sqlnet.ora文件添加一行SQLNET.ALLOWED_LOGON_VERSION=8,重启数据库,重新连接数据库,可以成功连接,问题解决。
方法二:
该错误出现的原因是: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”.
- Oracle 12c 连接时报错:ORA-28040: No matching authentication protocol问题解决方法
- JDBC连接Oracle 12c错误ORA-28040: No matching authentication protocol
- JDBC连接Oracle 12c错误ORA-28040: No matching authentication protocol
- Java 连接Oracle 报错: java.sql.SQLException: ORA-28040: No matching authentication protocol
- 10g项目连接12c报:ORA-28040: No matching authentication protocol 错误
- Oracle 12c连接时报错ORA-28040问题解决方法
- Oracle 12c连接时报错ORA-28040问题解决方法
- 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 错误
- ORA-28040: No matching authentication protocol
- solr通过http方式全量更新索引
- Impala访问方式
- 分栏报表-物品清单报表实现
- 蓝创十周年庆,感恩有您陪伴
- const char * 、char const *、 char * const 三者的区别
- Oracle 12c 连接时报错:ORA-28040: No matching authentication protocol问题解决方法
- Java反射机制
- oracle 怎么调试包
- Integer源码分析
- React-Native AsyncStorage setNativeProps
- 2017易观OLAP算法大赛
- Windows 7远程桌面连接Ubuntu14.04
- 葡萄城ActiveReports 企业报表软件荣获软博会金奖
- C++对于函数名重载的要点以及extren "C"