Oracle11g密碼過時ide
鏈接Oracle,以root用戶登錄,輸入如下命令spa
select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
結果顯示:3d
結果顯示密碼有效期是180天code
輸入命令:blog
alter profile default limit password_life_time unlimited; commit; select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
結果顯示:it
進行以上步驟以後須要改變密碼,不然還會出現password has expired異常class
改變密碼的命令file
alter user gzds identified by 123456;
若是帳號被鎖住,則須要解鎖命令select
alter user gzds identified by root account unlock;