如何解决ORA-28002 the password will expire within 7 days问题(密码快过期)

1、问题描述:

  今天登陆pl/sql工具时,提示 ORA-28002 the password will expire within 7 days

2、问题原因:

  oracle11g中默认在default概要文件中设置了"PASSWORD_LIFE_TIME=180”所导致,oracle用户的密码必须在180天内更改,否则启动数据库的时候会提示连接失败。

3、解决方法

1)查看用户的profile设置

select username,profile from dba_users;

注:一般用户的profile设置都为DEFAULT

2)查看密码有效期时长

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

注:原先LIMIT 这里的值是180天

3)将密码设置为永不过期

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

4)修改用户密码(已经被提示密码快要过期的账户必须再改一次密码)

 alter user TMS20 identified by TMS20;

Ps:

参考网址: https://blog.csdn.net/zyp630998758/article/details/46515715

猜你喜欢

转载自www.cnblogs.com/xielong/p/9990595.html