一、以管理员身份登录
SQL> conn sys/sys as sysdba;
(分号是必须的但是我是以system登录的所在这不应该写conn sys/sys as sysdba应该写conn system/orcl as sysdba;)
Connected.
二、解锁被锁用户
SQL> alter user scott account unlock;
User altered.
三、提交
SQL> commit;
Commit complete.
四、重新修改密码,若不重新修改,则密码不变
SQL> conn scott/tiger//请输入新密码,并确认后OK
Password changed
Connected.