使用plsql Developer连接时,发现报ora-28040 No matching authentication protocol

select username, account_status, default_tablespace, created, password_versions from dba_users;

password_versions表示当前用户是口令的认证方式。

[oracle@test ~]$ 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.

可以看出从12C开始  SQLNET.ALLOWED_LOGON_VERSION参数已被废弃

MOS文档中显示,在默认情况下Oracle12.2对客户端版本有限制的,我们客户端版本是11g以下的

因此需要在$ORACLE_HOME/network/admin/sqlnet.ora文件中写以下两行

SQLNET.ALLOWED_LOGON_VERSION_SERVER=10

SQLNET.ALLOWED_LOGON_VERSION_CLIENT=10

注:如果客户端存在8i和9i版本的,建议数字写成最低版本数字,否则依然后出现部分客户端无法连接的情况

修改完sqlnet.ora,再次连接oracle,会报用户密码错误,此时必须要修改用户密码,password_versions字段才会出现10G的值。

ORA-01017: invalid username/password; logon denied

SQL>alter user test identified by "test_123";

User altered.

此时再次登陆就可以成功进入了。

再次查看下该用户信息

select username, account_status, default_tablespace, created, password_versions from dba_users where username='TEST';

最新文章

  1. 【bzoj1227】 SDOI2009—虔诚的墓主人
  2. Guava - 并行编程Futures
  3. iOS---检测系统通知开关状态
  4. checkbox 设置不可更改
  5. mysql 基础语法
  6. C/C++ 笔试、面试题目大汇总(二)
  7. ABAP 没有地方输入\H 进入DEBUG 怎么办?
  8. css写宽为30%的正方形
  9. 清理java环境
  10. Hibernate 问题,在执行Query session.createQuery(hql) 报错误
  11. C++成员变量初始化顺序问题
  12. HDU 5800 To My Girlfriend(单调DP)
  13. hdu1506(dp减少重复计算)
  14. Chapter 2 Open Book——13
  15. 2015 ICL, Finals, Div. 1 Ceizenpok’s formula(组合数取模,扩展lucas定理)
  16. java转换日期格式为 RFC1123
  17. Javascrit 总结
  18. centos命令行系列之升级glibc到
  19. 在SharePoint Server 2010中更改“我的网站”
  20. Oracle 11G 安装图文教程

热门文章

  1. 32位机转化11位手机号以及BLE与USB的切换
  2. iframe 父子页面调用vue函数,并解决跨域问题,宽度自适应
  3. Selinux讲解
  4. kafka集群under replicated分析
  5. spring 创建 bean 的 几种方式
  6. vue+vant-ui小程序,微信小程序自定义导航栏(适配刘海屏)
  7. 剑指 Offer 栈与队列
  8. 杂:使用Shell判断文件换行符(LF/CRLF)
  9. OpenJ_Bailian - 1088
  10. 使用IntelliJ创建第一个简单的Springboot项目