告警信息:oracle 11g 密码过期
ERROR: ORA-28002: the password will expire within 1 days

1.可以在dba_users 中查找过期的时间
SQL> select USERNAME,EXPIRY_DATE,EXPIRY_DATE,CREATED,PROFILE from dba_users where username='WJLCN';

USERNAME                       EXPIRY_DATE EXPIRY_DATE CREATED     PROFILE
------------------------------ ----------- ----------- ----------- ------------------------------
WJLCN                          2013/3/17 1 2013/3/17 1 2012/3/15 2 DEFAULT

2.查看对应profile 的过期时间
SQL> SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

PROFILE                        RESOURCE_NAME                    RESOURCE_TYPE LIMIT
------------------------------ -------------------------------- ------------- ----------------------------------------
DEFAULT                        PASSWORD_LIFE_TIME               PASSWORD      180

3.修改PASSWORD_LIFE_TIME 为 UNLIMITED
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

Profile altered

4.修改后,对未被提示ORA-28002告警用户立即生效
SQL> select USERNAME,EXPIRY_DATE,EXPIRY_DATE,CREATED,PROFILE from dba_users where username='WJLCN';

USERNAME                       EXPIRY_DATE EXPIRY_DATE CREATED     PROFILE
------------------------------ ----------- ----------- ----------- ------------------------------
WJLCN                                                  2012/3/15 2 DEFAULT
 
5.对于收到ORA-28002告警信息的,还是需要修改一次密码,可以通过用户直接连接后,会提示修改。或者直接由数据库管理员去修改。 
09-26 22:06