Oracle解除对SCOTT/TIGER用户的锁定
2014-09-16来源:易贤网

Oracle 解除对SCOTT/TIGER用户的锁定

1、查证目前系统对于SCOTT用户的状态:

select * from dba_users where upper(username)='SCOTT';

ACCOUNT_STATUS:EXPIRED & LOCKED

2、解除对于SCOTT用户的锁定:

conn as sysdba;

alter user scott account unlock;

select * from dba_users where upper(username)='SCOTT';

ACCOUNT_STATUS:EXPIRED

3、连接SCOTT用户:

conn ;提示该用户已经过期,请重新输入新的密码:tiger

conn ;此次可以正常连接此用户。

4、查看SCOTT用户的状态:

conn as sysdba;

select * from dba_users where upper(username)='SCOTT';

ACCOUNT_STATUS:OPEN

更多信息请查看IT技术专栏

推荐信息