“ORA-28007: the password cannot be reused”解决
作者:互联网
“ORA-28007: the password cannot be reused”解决
SELECT username,PROFILE FROM dba_users where username='GG'; --先看此用户下的资源计划
USERNAME PROFILE
--------- ----------
GG
DEFAULT
SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
PROFILE RESOURCE_NAME RESOURCE LIMIT
--------- ------------------ ------------- ----------
DEFAULT
PASSWORD_LIFE_TIME
PASSWORD
180
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;--修改资源计划
SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
PROFILE RESOURCE_NAME RESOURCE LIMIT
--------- ------------------ ------------- -----------
DEFAULT PASSWORD_LIFE_TIME
PASSWORD UNLIMITED
alter user GG identified by GG_1000;--还是想用原来的密码,但是报错
*
ERROR at line 1:
ORA-28007: the password cannot be reused
select profile, resource_name, limit
from dba_profiles
where resource_name in('PASSWORD_REUSE_TIME','PASSWORD_REUSE_MAX')
and profile = 'DEFAULT';
PROFILE RESOURCE_NAME LIMIT
--------- ----------------- -------------
DEFAULT PASSWORD_REUSE_TIME
UNLIMITED
DEFAULT
PASSWORD_REUSE_MAX
5
解决:
ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_MAX UNLIMITED;
ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_TIME UNLIMITED;
ALTER USER GG ACCOUNT UNLOCK;
标签:PROFILE,reused,REUSE,28007,DEFAULT,cannot,LIMIT,TIME,PASSWORD 来源: https://blog.51cto.com/lhrbest/2703330