Oracle用户默认密码有效期为180天,密码过期时的处理方案:
01、查看当前所有open状态的用户
select username,account_status,expiry_date,profile from dba_users;
02、查看目前的密码过期策略
select * from dba_profiles s where s.profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
03、修改密码过期策略
alter profile default limit password_life_time unlimited;
04、意过期的账户,重置密码后期不会再过期
alter user smsc identified by "oldPassword"
-- smsc 为用户名,请替代为真实用户名信息