在cmd命令行使用oracle自带的sqlplus命令解锁:
cmd命令如下>
sqlplus /nolog
conn sys/ as sysdba
Huawei123
注意password比较关键,是安装时设置的数据库管理口令:Huawei123
alter user scott account unlock;
commit;
重新登录用户,修改新密码
C:\Users\Administrator>sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Sat May 12 15:05:23 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: scott
Enter password:
ERROR:
ORA-28001: the password has expired
Changing password for scott
New password:
Retype new password:
Password changed
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
最后顺便说一下cmd复制文本小技巧
cmd上边框(任务栏)>鼠标右键>编辑>标记>选中文本>鼠标右键,即完成复制功能
本文介绍如何通过Oracle自带的SQL Plus命令行工具解锁被锁定的数据库用户,并更改其过期的密码。操作步骤包括连接到sys用户,解锁目标用户,以及更改密码。
1万+

被折叠的 条评论
为什么被折叠?



