Oracle ORA-28000: the account is locked ORA-28001 the password has expired 解決

ORA-28001 the password has expired sql

Oracle11G的新特性, Oracle11G建立用戶時缺省密碼過時限制是180天, 若是超過180天用戶密碼未作修改則該用戶沒法登陸。ide

用sqlplus登陸sysdbacode

sqlplus connect as sysdba

而後輸入原密碼class

查看密碼有效期設置:登錄

SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

修改密碼:file

alter user username identified by "password";

username 用用戶名替換密碼

password 用新密碼替換,注意冒號須要保留db

去除180天限制:word

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

 

 

ORA-28000: the account is locked  dba

sqlplus登錄sysdba後,執行

ALTER USER username ACCOUNT UNLOCK;

username 用帳戶名替換

相關文章
相關標籤/搜索