在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上边框(任务栏)>鼠标右键>编辑>标记>选中文本>鼠标右键,即完成复制功能