0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Profileでパスワードの期限設定

Posted at

まず、以下のSQLを実行して状況を確認する。

set lines 150
col limit for a20

select RESOURCE_NAME, RESOURCE_TYPE, LIMIT from DBA_PROFILES where RESOURCE_NAME
in ('FAILED_LOGIN_ATTEMPTS','PASSWORD_LIFE_TIME','PASSWORD_LOCK_TIME','PASSWORD_GRACE_TIME','PASSWORD_REUSE_TIME','PASSWORD_REUSE_MAX')
and PROFILE='DEFAULT';

●FAILED_LOGIN_ATTEMPTS 指定した回数ログインに失敗するとアカウントをロックする
●PASSWORD_LIFE_TIME パスワードを設定してからの有効期間(日数)

あまりおすすめはしないが
上記二つをUNLIMITEDにしておくと、ユーザーのロックなどで悩まない。

例)
alter profile default limit password_life_time unlimited;

参考サイト
https://oracle-chokotto.com/ora_profile.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?