拿system登录进去之后,执行下面的命令:
SQL> alter user scott account unlock;
这样就完成解锁的操作。接下来,你还可以重新给scott这个用户设定密码
修改scott的登录密码
SQL> alter user scott identified by pan;
用户已更改
默认的scott用户是被锁定的,先解锁就能登陆上了。使用下面的语句解锁scott: alter user scott account unlock; 解锁之后可能会要求你该密码: alter user scott identified by tiger; 再登陆: sqlplus scott/tiger 就能登陆了
新建一个用户
create user your_user indentified by passwd
default tablespace users
temporary tablespace temp
quota 4M on users;