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

前端之家收集整理的这篇文章主要介绍了Oracle 解除对SCOTT/TIGER用户的锁定前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

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

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

ACCOUNT_STATUS:EXPIRED & LOCKED

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

conn sys/bitservice@ttonline as sysdba;

alter user scott account unlock;

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

ACCOUNT_STATUS:EXPIRED

3、连接SCOTT用户

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

conn scott/tiger@ttonline;此次可以正常连接此用户

4、查看SCOTT用户的状态:

conn sys/bitservice@ttonline as sysdba;

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

ACCOUNT_STATUS:OPEN

猜你在找的Oracle相关文章