oracle密码过期问题解决

时间:2024-04-10 22:33:04

1.查看open用户

select username,account_status,expiry_date,profile from dba_users;

2.查看目前密码过期策略

select * from dba_profiles s where s.profile=’DEFAULT’ and resource_name=’PASSWORD_LIFE_TIME’;

3.修改密码过期策略

alter profile default limit password_life_time unlimited;

4.过期的账户修改密码后不会再过期

$sqlplus / as sysdba

alter user smsc identified by <原来的密码> —-不用换新密码