DB

Oracle DB 암호 만료(expired) 관련

Lawmin 2017. 7. 12. 15:50

-- 정책 확인

select * from dba_profiles;


-- 기본값을 unlimited 로 변경

alter profile default limit failed_login_attempts unlimited;

alter profile default limit password_life_time unlimited;

alter profile default limit password_grace_time unlimited;

alter profile default limit password_lock_time unlimited;


-- 만약 계정이 expire 됐는데 암호를 모르고 다른 암호로 변경하기 어려운 경우, 동일 암호로 변경하여 open 상태로 만드는 스크립트 생성하여 실행

SELECT 'ALTER USER '|| name ||' IDENTIFIED BY VALUES '''|| spare4 ||';'|| password ||''';' FROM sys.user$ WHERE name IN (SELECT user FROM DBA_USERS WHERE ACCOUNT_STATUS = 'EXPIRED');


참고

https://www.krenger.ch/blog/oracle-workaround-for-password-unexpire/

http://db.necoaki.net/147