oracle账号过期和账号被锁

今天账号过期和之前改密码后代码密码没有改,导致多次尝试账号被锁

 

Sys登录

sqlplus sys/allen@orcl_db as sysdba

 

改密码和账号解冻

alter user activiti identified by allen;

alter user activiti account unlock;

 

密码永不过期

2. 查看用户使用的profile,要名字

select username,profile from dba_users;

 

2.设置账号不过期a

 

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

3.检查一下

 

SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

你可能感兴趣的:(oracle,oracle,账号被锁了,密码过期)