2019独角兽企业重金招聘Python工程师标准>>>
1、问题描述
客户端连接Oracle 12c时,报异常
ORA-28040: No matching authentication protocol
2、问题原因
Oracle 12c的参数SQLNET.ALLOWED_LOGON_VERSION_SERVER、SQLNET.ALLOWED_LOGON_VERSION_CLIENT默认等于11,当我们使用11g JDBC之前版本的thin驱动连接的时候,就会出现该异常
3、解决方法
a. 编辑sqlnet.ora
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
b.重启监听
lsnrctl reload
c. 重置密码
- select username,account_status,default_tablespace,created,password_versions from dba_users where username = 'SYS';
- ALTER USER username IDENTIFIED BY password;
- select username,account_status,default_tablespace,created,password_versions from dba_users where username = 'SYS';
- 发现修改前后password_versions 新增了oracle 10G
问题解决