[solution] ORA-28002: the password will expire within xx days

  1. connect to db:
sqlplus /nolog
connect / as sysdba;
  1. To alter the password expiry policy for a certain user profile in Oracle first check wich profile the user is in using:
select profile from DBA_USERS where username = '<username>';
  1. Then you can change the limit to never expire using:
alter profile <profile_name> limit password_life_time UNLIMITED;

If you want to previously check the limit you may use:

select resource_name,limit from dba_profiles where profile='<profile_name>';
  1. then unlock the user
ALTER USER <username> ACCOUNT UNLOCK;
OR
ALTER USER <username> identified by <password> account unlock;
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容