1,要解除特定用户的锁定状态首先要查看其处于什么状态
查证目前系统对于SCOTT用户的状态:
select * from dba_users where upper(username)='SCOTT';
结果:
SCOTT 54 F894844C34402B67
EXPIRED & LOCKED 02-12月-10 02-12月-10
USERS TEMP 30-8月 -05
2、解除对于SCOTT用户的锁定:
conn sys/bitservice@ttonline as sysdba;
alter user scott account unlock;
select * from dba_users where upper(username)='SCOTT';
结果:--------------------------------------------------------------------------------
SCOTT 54 F894844C34402B67
EXPIRED 02-12月-10
3,此时试连接scott用户
conn scott/tiger;
会提示密码已经过期要求重新设置,重新设置密码仍然为tiger就行了
再次登陆conn scott/tiger;正常进入.
4,再次查看scott用户的状态信息
select * from dba_users where upper(username)='SCOTT';
结果:
SCOTT 54 F894844C34402B67
OPEN
USERS TEMP 30-8月 -05
scott用户解锁了.