微信公众号:IT邦德

Oracle密码过期处理(ORA-28002)_sql


1、报错

SQL> conn scott/tiger

ERROR:

ORA-28002: the password will expire within 7 days

Oracle密码过期处理(ORA-28002)_oracle_02


2、处理方法

查看用户的 profile(一般是 default)
SQL> select username,profile from dba_users;
查看 default 概要文件设置的密码有效期(默认 180 天)
SQL> select * from dba_profiles where resource_name ='PASSWORD_LIFE_TIME' and profile='DEFAULT';
将密码有效期设置为无限制
SQL> alter profile default limit password_life_time unlimited;
SQL> alter user scott identified by tiger;
SQL>