测试环境19c

本地登录无异常,创建测试用户,电脑Plsql登录提示报错ORA-28040,处理后再次登录提示密码错误,最后重置密码再次登录OK?

通过这个问题再次测试及反思:

1.ORA-28040

[oracle@d2:/u03/app/oracle/product/19.0./db_1/network/admin]$ sqlplus cc/cc@192.168.60.45:/pp1
SQL*Plus: Release 19.0.0.0. - Production on Fri Jul ::
Version 19.5.1.0.
Copyright (c) , , Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0. - Production
Version 19.5.1.0.
SQL> [oracle@d2:/u03/app/oracle/product/19.0./db_1/network/admin]$ oerr ora
, , "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. $ cd $ORACLE_HOME/
$ cd network/admin/
$ vi sqlnet.ora
SQLNET.ALLOWED_LOGON_VERSION_SERVER=
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=
SQLNET.ALLOWED_LOGON_VERSION=8
添加SQLNET参数即可,允许客户端向下兼容。

2.再次登录提示密码错误? 我测试环境自己创建的密码我不知道?What

2.1 注释SQLNET参数,重启DB,回退最初情况
[oracle@d2:/u03/app/oracle/product/19.0./db_1/network/admin]$ cat sqlnet.ora
#SQLNET.ALLOWED_LOGON_VERSION_SERVER=
#SQLNET.ALLOWED_LOGON_VERSION_CLIENT=
#SQLNET.ALLOWED_LOGON_VERSION=
18c: All user connections fail with ORA- except SYS when SEC_CASE_SENSITIVE_LOGON=FALSE (Doc ID 2502204.1)
SEC_CASE_SENSITIVE_LOGON is set to false
The SEC_CASE_SENSITIVE_LOGON parameter is deprecated in 18C. It is retained for backward compatibility only.
Please check the value of SEC_CASE_SENSITIVE_LOGON parameter?
sqlplus / as sysdba
show parameter SEC_CASE_SENSITIVE_LOGON
In case it is set to false, please set it to true and try again to connect.
ALTER SYSTEM set SEC_CASE_SENSITIVE_LOGON=true; The new Exclusive Mode default for password-based authentication in Oracle 12.2 conflicts with case-insensitive password
configurations. All user login fails with ORA- after upgrade to 12.2 (Doc ID 2075401.1)
Option .
- Remove the deprecated instance initialization parameter
sec_case_sensitive_logon setting of FALSE (or set
sec_case_sensitive_logon to TRUE, the default), Option .
- Relax the SQLNET.ALLOWED_LOGON_VERSION_SERVER setting
in the sqlnet.ora file to a more permissive setting,
e.g. SQLNET.ALLOWED_LOGON_VERSION_SERVER=, as described
in the release notes section 2.12.3.1 entitled "Bug 22031049".
- With this option, you will also need to change the user password again so the DBA_USERS.PASSWORD_VERSIONS will get a 10G value.
however the DES based verifier is outdated and should only be used in exceptional cases when legacy client applications
still need it.
2.2创建测试用户,观察默认用户版本

SQL> create user test1 identified by test1; 
SQL> select username,account_status,password_versions from dba_users where username='TEST1';
USERNAME ACCOUNT_STATUS PASSWORD_VERSIONS ---------- -------------------------------- ----------------- TEST1 OPEN 11G 12C
PLSQL连接提示密码错误!无法连接成功
.PLSQL内嵌Oracle客户端版本如下:
Client Shared Library -bit - 10.2.0.5.
.操作
$ vi sqlnet.ora
SQLNET.ALLOWED_LOGON_VERSION_SERVER=
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=
SQLNET.ALLOWED_LOGON_VERSION= 对用户密码重置后 .再次连接成功无异常???
what? select * from sys.user$ where name='TEST1';
SQL> alter user test1 identified by test1;
USER# NAME TYPE# PASSWORD SPARE4
old 112 TEST1 S:4DBA24F74F1646350DAEB60073E8F72EB8A2C22A056EEF5EC041321A7451;T:CCE7B7C7816CDBB
4552B70EA36FEBB8678F80FD39868D34CA715B1C9FE431B15B39F500836735C17C3399F34AC0BD36AEEB9825
2D633EC9E0741B3CDB62B8C6D39D560F21300ADBE8C8465F322AB8CF6
new TEST1 22F2E341BF4B8764
S:140AEAA0D267A26DF10E5563A7FC0B3F693359142AA00152BB69F8353C39;T:213D18A097EA5000E569394C26
2FCFD2CCF89FF2EA00749FE643417728CFB017C8E28E9A2C36A5F2E748DB8E0237F1BDF943DF32DC77FCAAE1D8171CD
4BF01B97132108782DDED756980D31CCDD38966
可以发现SPARE4的值修改过
SQL> select username,account_status,password_versions from dba_users where username='TEST1';
USERNAME ACCOUNT_STATUS PASSWORD_VERSIONS -------------------- -------------------------------- -----------------
TEST1 OPEN 10G 11G 12C
重点是重置密码后,Oracle由默认的创建用户的密码版本是11g/12c 兼容性增加到了10G,因此客户端再次连接使用相同的密码,可以正确连接到。
猜测密码错误是由于Oracle对不同密码兼容性计算的方法不同,因此相同的密码在跨版本识别是无法识别,需要密码重置后,Oracle判断选择一个合适的版本,
服务器端能正确解析密码,从而登录成功。
或者理解为版本不支持,重置密码后,向下兼容,能否正常登陆。

ORACLE_19c用户密码登录失败的问题以及ORA-28040的更多相关文章

  1. ASP.NET连接数据库时,提示“用户 'sa' 登录失败原因: 未与信任 SQL Server 连接相关联

    用ASP.NET连接数据库时,提示"用户 'sa' 登录失败.原因: 未与信任 SQL Server 连接相关联.".解决方法:首先检查是不是web.config文件内的用户名密码 ...

  2. SQLServer中用户 'sa' 登录失败解决办法

    今天下午,很奇怪的网站突然就打不开了,报错如下: “/”应用程序中的服务器错误. 用户 'sa' 登录失败. 说明: 执行当前 Web 请求期间,出现未处理的异常.请检查堆栈跟踪信息,以了解有关该错误 ...

  3. tomcat 运行异常Cannot create PoolableConnectionFactory (到主机 的 TCP/IP 联接失败)(用户sa登录失败)

    这是在java web中启动tomcat遇到的问题,因为这个问题,整整折腾了两天的时间,找了很都解决方案,但终究还是不能正常.现在整理下这个问题的解决方案: 首先,出这个问题之前,请检查一下的问题,这 ...

  4. 该帐户当前被锁定,所以用户sa登录失败。系统管理员无法将该帐户解锁

    运行程序时抛出异常: 基础提供程序在 Open 上失败,详细信息:该帐户当前被锁定,所以用户sa登录失败.系统管理员无法将该帐户解锁. 1.考虑连接字符串是否正常 登录数据库,发现登录报同样的错误 = ...

  5. mySQL 5.7版 解决密码登录失败Access denied for user 'root'@'localhost' (us

    mySQL 5.7版 解决密码登录失败Access denied for user 'root'@'localhost' (us             2016-03-05              ...

  6. 用户 'sa' 登录失败。该用户与可信 SQL Server 连接无关联'。错误代码:18452 解决办法

    原文:https://blog.csdn.net/wuxianwei/article/details/6330270 SQLSERVER 2005采用'SQLSERVER身份验证'去登录, 出错的原因 ...

  7. Oracle取消用户连续登录失败次数限制

    当用户连续登录失败次数过多时,Oracle会锁定该用户,“FAILED_LOGIN_ATTEMPTS”用于设置最大次数,超过该值则锁定该帐号. 要取消用户连续登录失败次数的限制可以按照以下方法操作: ...

  8. com.microsoft.sqlserver.jdbc.SQLServerException: 用户 'sa' 登录失败。

    com.microsoft.sqlserver.jdbc.SQLServerException: 用户 'sa' 登录失败. at com.microsoft.sqlserver.jdbc.SQLSe ...

  9. sql server 用户'sa'登录失败(错误18456)(转载)

    转载地址:http://thenear.blog.51cto.com/4686262/865544 用户'sa'登录失败(错误18456)解决方案图解 当我们在使用sql server 的时候可能会遇 ...

随机推荐

  1. 深入理解RocketMQ(九)---实战(控制台搭建)

    rocketMQ控制台搭建 (1)下载rocketmq-console代码:https://github.com/875279177/incubator-rocketmq-externals (2)修 ...

  2. 【总结】Asp.Net Mvc 后台控制器获取页面发来的参数类型

    接收各种参数(普通参数,对象,JSON, URL) 待续...

  3. 【错误】上传新的项目出错 error: failed to push some refs to 'https://github.com/...

    问题描述:在git bash中键入 $ git push origin master 进行提交的时候出现 如下错误: error: failed to push some refs to 'https ...

  4. jupyter lab最强代码补全插件

    1 简介 提起kite相信不少朋友都有印象,它是一个功能非常强大的代码补全工具,目前可用于Python与javascript,为许多知名的编辑器譬如Vs Code.Pycharm提供对应的插件. 图1 ...

  5. 用户不在sudoers文件中怎么办,ziheng is not in the sudoers file解决方法

    sudo是linux系统中,用来执行需要权限命令,但是一些朋友使用sudo时,出现下面的错误“ziheng is not in the sudoers file. This incident will ...

  6. ORA-12154: TNS:could not resolve the connect identifier specified. Solved.

    进入系统属性页面 rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,, 并添加系统环境变量 ORACLE_HOME = ${path} TNS_ADM ...

  7. 第三方登陆---GITEE

    第三方登陆QQ通行入口 https://www.cnblogs.com/Yangbuyi/p/13194007.html 呼~~~~ 应身边的同学要集成第三方登陆 gitee.github.qq登陆. ...

  8. MySQL 查询 存储过程 视图 触发器 函数 索引 建表语句 数据库版本 当前登录用户 当前数据库名称

    MySQL 查询 存储过程 视图 触发器 函数 索引 建表语句 数据库版本 当前登录用户 当前数据库名称   INFORMATION_SCHEMA.TABLES INFORMATION_SCHEMA. ...

  9. PreparedStatement 防止sql注入 练习

    使用的数据库 MariaDB 10.5.4版本   端口1054     数据库为jt_db,表 为user 数据库的建表和插入相关数据代码: create table user( id int pr ...

  10. UVA11383 Golden Tiger Claw KM算法

    题目链接:传送门 分析 这道题乍看上去没有思路,但是我们仔细一想就会发现这道题其实是一个二分图最大匹配的板子 我们可以把这道题想象成将男生和女生之间两两配对,使他们的好感度最大 我们把矩阵中的元素\( ...