問題描述:客戶反映客戶端不能登陸應用程序時不能鏈接。
環境:AIX 5.3 + Oracle 11gR2
解決:遠程Telnet到數據庫主機,sqlplus / as sysdba 鏈接後操做正常,代表數據庫服務器應該正常,而後在客戶端用sqlplus鏈接數據庫提示密碼過時錯誤:ORA-28001: the password has expired,原來是密碼過時了。
分析:原來Oracle 11g以前的版本默認profile是沒有密碼過時的限制的,在Oracle 11g中默認的profile啓用了密碼過時時間是180天,去除這個限制即可。sql
查詢默認的profile的密碼過時的設置
select * from dba_profiles
where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';數據庫
設置default profile密碼永不過時,當即生效,不需重啓
alter profile default limit password_life_time unlimited;服務器
已通過期的密碼就須要改了,能夠該成同樣
能夠sqlplus 登陸會提示你改密碼
也能夠alter user username identified by password;ide