1. 程式人生 > >[ORACLE]ORA-28002 The password will expire within 7 days.將不能登錄系統

[ORACLE]ORA-28002 The password will expire within 7 days.將不能登錄系統

永不 wid 就會 rom src gty pic evel sof

錯誤“ORA-28002 The password will expire within 7 days. Cannot logon to the database“當在進程調度器上運行AE程序可能遇到這個錯誤,很多時候這個錯誤並不僅僅在進程調度器中出現,還有可能會在使用plsql developer或sqlplus訪問數據庫時候。

遇到這樣的錯誤是因為ConnectID賬戶或SYSADM賬戶在DBA_USERS表中已經過期,在11g以前版本這個問題從沒出現過,因為賬戶設置的永不過期,在11g以後的版本,他們被hardcoded為有效期189天。

如何解決“ORA-28002 The password will expire within 7 days. Cannot logon to the database”

按照以下步驟解決問題:

1、使用system賬號登錄數據庫(不是sysadm)

2、

SQL> select account_status, profile from dba_users where username=’the PeopleSoft ConnectID’;
SQL> select account_status, profile from dba_users where username=’sysadm’;

3、用以下語句修改。

SQL>ALTER PROFILE <Profile value from step 2> LIMIT PASSWORD_LIFE_TIME UNLIMITED;

4、使用sqlplus登錄到數據庫並使用以下命令改密碼。

SQL>ALTER USER <PeopleSoft ConnectID> IDENTIFIED BY <current ConnectID password>;
SQL>ALTER USER SYSADM IDENTIFIED BY <current SYSADM password>;

如果感到對您有幫助沒準兒你就會贊賞,iOS 專用贊賞通道:

技術分享圖片

[ORACLE]ORA-28002 The password will expire within 7 days.將不能登錄系統