Heim  >  Artikel  >  Datenbank  >  ORA-28002密码将在7天后过期

ORA-28002密码将在7天后过期

WBOY
WBOYOriginal
2016-06-07 17:34:141228Durchsuche

现象描述: 登陆Oracle11g 提示ERROR:ORA-28002: the password will expirewithin 7 days 告警信息: ERROR: ORA-28002: the pa

现象描述:

登陆Oracle11g

提示ERROR:ORA-28002: the password will expirewithin 7 days

告警信息:

ERROR: ORA-28002: the password will expire within 7 days

原因分析:

SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' ANDresource_name='PASSWORD_LIFE_TIME';

oracle11g 中默认在default概要文件中设置了“PASSWORD_LIFE_TIME=180天”。而10g与之前版本的Oracle仍默认为UNLIMITED

问题解决过程:

1、查看用户的proifle是那个,一般是default:

sql>SELECTusername,PROFILE FROM dba_users where username='INFDB' ;

2、查看指定概要文件(如default)的密码有效期设置:

sql>SELECT* FROM dba_profiles s WHERE s.profile='DEFAULT' ANDresource_name='PASSWORD_LIFE_TIME';

3、将密码有效期由默认的180天修改成“无限制”:

sql>ALTERPROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

4、修改后,还没有被提示ORA-28002警告的用户不会再碰到同样的提示;

已经被提示的用户必须再改一次密码,,举例如下:

$sqlplus / assysdba

sql> alter user wapgw identified by

linux

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn