如何解決ORA-28002 the password will expire within 7 days問題(密碼快過期)
阿新 • • 發佈:2018-11-20
1、問題描述:
今天登陸pl/sql工具時,提示 ORA-28002 the password will expire within 7 days
2、問題原因:
oracle11g中預設在default概要檔案中設定了"PASSWORD_LIFE_TIME=180”所導致,oracle使用者的密碼必須在180天內更改,否則啟動資料庫的時候會提示連線失敗。
3、解決方法
1)檢視使用者的profile設定
select username,profile from dba_users;
注:一般使用者的profile設定都為DEFAULT
2)檢視密碼有效期時長
select* from dba_profiles s where s.profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
注:原先LIMIT 這裡的值是180天
3)將密碼設定為永不過期
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
4)修改使用者密碼(已經被提示密碼快要過期的賬戶必須再改一次密碼)
alter user TMS20 identified by TMS20;
Ps:
參考網址: https://blog.csdn.net/zyp630998758/article/details/46515715