oracle查询用户密码命令,Oracle数据库用户密码问题[通俗易懂]
大家好,又见面了,我是你们的朋友全栈君。
场景一:
在重置一些系统sys和system用户密码(已过期)时(还是使用原密码,根据user中的password修改重置),在user查看sys和system用户信息时发现这两个用户的PASSWORD为空,如下:
SQL> select name,password from user$ where name in (‘SYS’,’SYSTEM’);
NAME PASSWORD
———————————————————— ————————————————————
SYS
SYSTEM
但是通过闪回查询user$发现这两个用户的password字段在之前是有值的,如下(上一条查询大概是在10点左右):
SQL> select name,password from user$ as of timestamp to_timestamp(‘20191014 090000′,’yyyymmdd hh24miss’) where name in (‘SYS’,’SYSTEM’);
NAME PASSWORD
———————————————————— ————————————————————
SYS 8A8F025737A9097A
SYSTEM 2D594E86F93B17A1
询问过客户说是没人修改过密码(这里也不能确认了,因为还有其他维护人员也有权限操作)
查看用户profile发现并没有使用密码函数
后面通过测试,发现如下命令可以使user$ 的password为空:
alter user scott identified by values ‘ ‘; –引号里面是空格
场景二:
在对另外一套系统(rac+dg)的sys及system用户进行密码重置时(也是使用原密码,根据user$中的password修改重置,与上面不同的是这里的password是正常的),重置命令如下:
alter user sys identified by values ‘&password’ account unlock;
但是紧接着发现主库一直报错ora-16191,日志如下:
————————————————————
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
————————————————————
ARC3: Error 16191 attaching to RFS for reconnect
FAL[server, ARC3]: Error 3113 creating remote archivelog file ‘dgvatms’
FAL[server, ARC3]: FAL archive failed, see trace file.
ARCH: FAL archive failed. Archiver continuing
ORACLE Instance vatms1 – Archival Error. Archiver continuing.
Tue Oct 15 08:30:27 2019
Error 1017 received logging on to the standby
————————————————————
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
————————————————————
PING[ARC2]: Heartbeat failed to connect to standby ‘dgvatms’. Error is 16191.
Tue Oct 15 08:31:30 2019
Error 1017 received logging on to the standby
————————————————————
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
这时候检查备库发现备库是正常在接收应用归档,拷贝节点一的密码文件至节点二和dg备库,问题得到解决,没有出现ora-16191
这里有几个问题想请问下:
1.除了alter user scott identified by values ‘ ‘; 会导致user$的password为空(这里是空格),是否还有其他的操作会导致password为空?
2.alter user scott identified by values ‘ ‘;这条命令修改用户密码之后,用户的真实密码是什么?
3.数据库中重置用户sys密码这个动作是否对密码文件造成了影响,才导致的ora-16191,还是因为其他的一些原因
麻烦老师们帮忙看看
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/164711.html原文链接:https://javaforall.cn
相关文章
- 恢复Oracle数据库中误删的表(oracle误删表)
- 轻松配置Oracle数据库连接池(oracle配置连接池)
- recyclebin清理Oracle中的回收站:Purge Recyclebin(oracle中purge)
- 数据库妙用手机:连接Oracle数据库(手机连oracle)
- 数据同步Oracle主从数据同步技术实现策略分析(oracle主库从库)
- 比较深入浅出:Oracle中日期大小比较(oracle日期大小)
- Oracle部署新技术:提升效能的方式(oracle部署方式)
- 利用Oracle触发器拓展业务的多种类型(oracle触发器类型)
- PL/SQL与Oracle完美搭配——打造高效数据库管理系统(plsql和oracle)
- 轻松安装Oracle驱动,快速启动数据库(oracle安装驱动)
- Oracle 增加表空间:提升数据库性能(oracle加表空间)
- Oracle再次比武挑战数字之巅(oracle再要输入数字)
- Oracle兴学,点亮信息技术未来(oracle兴学信息技术)
- Mac下配置Oracle数据库运行环境(mac配置oracle)
- Oracle中过账失败排查报错的实际原因(oracle中过账报错)
- Oracle中角色的重要作用让数据库访问更安全高效(oracle中角色的作用)
- 使用Oracle保存包提升数据处理效率(oracle 保存包)
- Oracle 改善请求次数改善数据库性能(oracle修改请求次数)
- Oracle数据库中如何使用索引(oracle中使用索引吗)
- Oracle数据库中Top语句的使用方法(oracle中top用法)
- 深入浅出Oracle数据库的使用(oracle_数据库)
- Oracle RR格式优化数据库性能的利器(oracle rr格式)