萬盛學電腦網

 萬盛學電腦網 >> 數據庫 >> oracle教程 >> 修改Oracle默認密碼過期天數

修改Oracle默認密碼過期天數

   解決方法:

  1.查看用戶用的哪種profile策略

  SQL> select username,profile from dba_users;

  USERNAME PROFILE

  ------------------ -----------------

  MGMT_VIEW DEFAULT

  SYS DEFAULT

  SYSTEM DEFAULT

  EKPUSER DEFAULT

  2.查看策略的有效天數

  SQL> Select * FROM dba_profiles s Where s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

  PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT

  ------------------------------ ----------------------- ------------ --------

  DEFAULT PASSWORD_LIFE_TIME PASSWORD 180

  3.修改策略為無限制

  SQL> Alter PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

  Profile altered

  4.查看確認

  SQL> Select * FROM dba_profiles s Where s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

  PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT

  ------------------------------ -------------------- ------------- ----------

  DEFAULT PASSWORD_LIFE_TIME PASSWORD UNLIMITED

  修改為及時生效,無需重啟數據庫

copyright © 萬盛學電腦網 all rights reserved