首页 > Linux操作系统 > Linux操作系统 > ORA-28002错误处理方法
用户连接数据库时,报:ORA-28002: the password will expire within 7 days 错误提示。
数据库用户的配置文件“profile”中” PASSWORD_GRACE_TIME”初始值为7,当用户存在时间超过PASSWROD_LIFE_TIME 的值时,其帐户状态为将由“OPEN”变为“EXPIRED(GRACE)”。当三个用户第8天起连接数据库都会提示:ORA-28002: the password will expire within 7 days 。
查询用户状态
select username, account_status, lock_date, expiry_date, profile
from dba_users where username = 'TEST';
结果如下表:
|
USERNAME |
ACCOUNT_STATUS |
LOCK_DATE |
EXPIRY_DATE |
PROFILE |
|
TEST |
EXPIRED(GRACE) |
|
|
DEFAULT |
我做了以下修改:
alter profile DEFAULT limit PASSWORD_GRACE_TIME unlimited;
alter profile DEFAULT limit PASSWORD_LIFE_TIME unlimited;
alter user clo_dw IDENTIFIED BY clo_dw;
再执行上面的查询语句,结果显示如下:
|
USERNAME |
ACCOUNT_STATUS |
LOCK_DATE |
EXPIRY_DATE |
PROFILE |
|
TEST |
OPEN |
|
|
DEFAULT |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/526592/viewspace-707248/ ,如需转载,请注明出处,否则将追究法律责任。