環境:oracle11g
1、檢視使用者所屬profile規則
sql>select username,profile from dba_users;
2、檢視使用者所屬profile的密碼規則(default)
sql>select * from dba_profiles s where s.profile='default' and resource_name='password_life_time';
3、兩種方式 一、新建profile然後指定使用者為這個規則,二、直接修改default的密碼規則(這兒採用方式二將密碼有效期由預設的180天修改成「無限制」)
sql>alter profile default limit password_life_time unlimited;
修改之後不需要重啟動資料庫,會立即生效。
4、修改後,還沒有被提示ora-28002警告的帳戶不會再碰到同樣的提示;
已經被提示的帳戶必須再改一次密碼
$sqlplus / as sysdba
sql> alter user oracle identified by 《原來的密碼》 ----不用換新密碼
Oracle 使用者密碼過期
oracle 11g 之前預設的使用者時是沒有密碼過期的限制的,在oracle 11g 中預設的profile啟用了密碼過期時間是180天。如下 select from dba profiles where profile default and resource name password lif...
Oracle 使用者密碼過期
1 檢視當前open使用者 select username,account status,expiry date,profile from dba users 2 檢視目前的密碼過期策略 select from dba profiles s where s.profile default and r...
oracle 密碼過期處理
1.cmd資料庫連線資料庫 sqlplus nolog connect sys orcl123 sys使用者密碼 localhost orcl 自己的例項名 as sysdba select from dba profiles where profile default and resource n...