Oracle使用者登入密碼到期的修改

來源:互聯網
上載者:User

Oracle使用者登入密碼到期的修改

1、查看使用者的proifle是哪個,一般是default:

  sql>SELECT username,PROFILE FROM dba_users;

2、查看指定概要檔案(如default)的密碼有效期間設定:

  sql>SELECT * FROM dba_profiles s WHERE s.profile=\'DEFAULT\' AND resource_name=\'PASSWORD_LIFE_TIME\';

3、將密碼有效期間由預設的180天修改成“無限制”:

  sql>ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

  修改之後不需要重啟動資料庫,會立即生效。

4、修改後,還沒有被提示ORA-28002警告的帳戶不會再碰到同樣的提示;

  已經被提示的帳戶必須再改一次密碼,舉例如下:

  $sqlplus / as sysdba

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

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.