Oracle中激活scott账号

来源:互联网 发布:大胃王密子君淘宝店 编辑:程序博客网 时间:2024/05/17 09:14

先使用system账号登录

然后给scott账号解锁:alter user scott account unlock;

解完以后,使用下面的命令来查看:select username,account_status from dba_users;

可以看到scott账户已经解锁,但是状态还是“expired”(密码过期)的意思。

没关系,再输入这样的命令“alter user scott identified by tiger;”,就给其赋了一个新的口令。

退出,以scott/tiger登录即可。

0 0