查看聯機文檔相關報錯數據庫
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
查看用戶密碼默認管理方式文檔
SQL> select profile from dba_users where username='ZXX';get
PROFILEit
------------------------------
DEFAULT
查看數據庫默認的密碼管理方式有效期
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
修改用戶密碼並設置數據庫默認密碼爲永久有效
SQL> alter user zxx identified by zxx;
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED ;
驗證修改是否成功
sqlplus zxx/zxx@orcl 登陸正常
DEFAULT 密碼管理方式爲永久有效