ORA-28040: No matching authentication protocol

--1.tnsping 监听正常
C:\Users\xianchun_shi>tnsping orcl

TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 20-11月-
2018 16:31:49

Copyright (c) 1997, 2010, Oracle.  All rights reserved.

已使用的参数文件:
E:\app\xianchun_shi\product\11.2.0\client_2\network\admin\sqlnet.ora

已使用 TNSNAMES 适配器来解析别名
尝试连接 (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.1
68.48.205)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = ORCL)))
OK (60 毫秒)

--2. 报错信息如下
C:\Users\xianchun_shi>sqlplus c##sxc/sxc@orcl

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 11月 20 16:32:06 2018

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

ERROR:
ORA-28040: No matching authentication protocol


--3.解决方法:
在12c 数据库服务器端修改sqlnet.ora文件
增加:
[oracle@asm12c admin]$ cat sqlnet.ora 
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8


--4.增加完成后,仍然报错

C:\Users\xianchun_shi>sqlplus c##sxc/sxc@orcl

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 11月 20 16:34:50 2018

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied

--原因:增加的参数针对后面创建的用户有效,修改之前的用户需要修改一下密码

--5.解决方法:
修改用户密码
alter user c##sxc identified by sxc;

--6.正常登陆。
C:\Users\xianchun_shi>sqlplus c##sxc/sxc@orcl

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 11月 20 16:36:06 2018

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


连接到:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL>
 

你可能感兴趣的:(12c,oracle,数据库,database)