Home  >  Article  >  Database  >  ORA-28002密码将在7天后过期

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

WBOY
WBOYOriginal
2016-06-07 17:34:141234browse

现象描述: 登陆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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn