天天看點

解決orcale報ORA-28001: the password has expired

ORA-28001: the password has expired    

通過ORACLE_NET_SERVICE 連接配接資料庫的時候,報錯ORA-28001: the password has expired  密碼無效
           
解決orcale報ORA-28001: the password has expired

解決方法:

1、進入sqlplus模式

  sqlplus / as sysdba;

  

2、檢視使用者密碼的有效期設定(一般預設的配置檔案是DEFAULT)

  SELECT * FROM dba_profiles WHERE profile=‘DEFAULT’ AND resource_name=‘PASSWORD_LIFE_TIME’;

  

3、将密碼有效期由預設的180天修改成“無限制”,修改之後不需要重新開機動資料庫,會立即生效

  ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED ;

  

4、帳戶再改一次密碼

  alter user 使用者名 identified by 原密碼;

  

5、使用修改後的使用者登入,如果報“ORA-28000:使用者已被鎖”,解鎖

  alter user db_user account unlock;

  commit;