如何解除Oracle 帐号锁定(the account is locked)
在plsql developer中要是以scott/tiger登录时提示ora-28000 the account is
locked。
解决办法:
新装完Oracle10g后,用scott/tiger测试,会出现以下错误提示:
oracle10g the account is locked
oracle10g the password has expired
原因:默认Oracle10g的scott不能登陆。
解决:
1、使用oracle用户登录系统
2、执行如下步骤:
3、$ sqlplus /nolog
4、SQL> connect /as sysdba
Connected.
5、SQL> alter user system account unlock;
User altered.
解锁方法:
alter user test account lock;
锁定账号方法
1、SQL> alter user system account lock;
User altered.
修改帐号口令
1、SQL> ALTER USER system IDENTIFIED BY sysPasswd;
在运行里面输入cmd在DOS模式下输入sqlplus,以system用户名登录,密码是刚装
oracle时自己填写的密码orcl,登录进去以后。
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;
来源: <http://jinyumantang110.blog.163.com/blog/static/54579156201061710126657/>