ORA-28001: the password has expired

 ORA-28001: the password has expired    html

    經過ORACLE_NET_SERVICE 鏈接數據庫的時候,報錯ORA-28001: the password has expired  密碼無效sql

ORA-28001: the password has expired
 

方法/步驟

 
  1.  

    查看聯機文檔相關報錯數據庫

     

    ORA-28001: the password has expiredide

     

    Cause: The user's account has expired and the password needs to be changedhtm

     

     

    Action: change the password or contact the DBAblog

    須要經過sqlplus / as sysdba 方式進去數據庫更改ci

     

    ORA-28001: the password has expired
  2.  

    查看用戶密碼默認管理方式文檔

    SQL> select profile from dba_users where username='ZXX';get

     

    PROFILEit

    ------------------------------

    DEFAULT

    ORA-28001: the password has expired
  3.  

    查看數據庫默認的密碼管理方式有效期

     

    SQL> SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

     

    PROFILE       RESOURCE_NAME RESOURCE

    ------------------------------ -------------------------------- --------

    LIMIT

    ----------------------------------------

    DEFAULT       PASSWORD_LIFE_TIME PASSWORD

    180

     

    ORA-28001: the password has expired
  4.  

    修改用戶密碼並設置數據庫默認密碼爲永久有效

     

    SQL> alter user zxx identified by zxx;

    SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED ;

     

    ORA-28001: the password has expired
  5.  

    驗證修改是否成功

    sqlplus zxx/zxx@orcl  登陸正常

    DEFAULT 密碼管理方式爲永久有效

     

    ORA-28001: the password has expired
相關文章
相關標籤/搜索