Oracle查看用戶密碼過期,修改永不過期


  問題總在解決的時候提及,解決在思考中!

01、查看當前open用戶

select username,account_status,expiry_date,profile from dba_users;

02、查看目前的密碼過期策略

select * from dba_profiles s where s.profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';

03、修改密碼過期策略

alter profile default limit password_life_time unlimited;

04、過期的賬戶,重置密碼后期不會再過期

$sqlplus / as sysdba

alter user smsc identified by <原來的密碼> ----不用換新密碼


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM