oracle 11g密码过期但不想更新密码

SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production



SELECT username,PROFILE FROM dba_users; --先看此用户下的资源计划
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 USER GG ACCOUNT UNLOCK;



你可能感兴趣的:(oracle 11g密码过期但不想更新密码)