Oracle密碼過期處理

2022-01-30 03:43:03 字數 1191 閱讀 9120

問題:oracle密碼過期導致資料庫無法訪問

解決方案:

1.後台以資料庫管理員身份登陸,伺服器中開啟cmd命令,然後輸入

2.檢視使用者對應的proifle檔案,regent為使用者名稱,預設為default

select username,profile from dba_users where username='regent';
3.檢視profile對應的安全策略,default是上一步查詢結果

select * from dba_profiles where profile='default' and resource_name='password_life_time';
4.修改安全策略為不限制

5.重啟資料庫

shutdown immediate; –關閉資料庫 

startup mount; – 開啟資料庫

alter database open;–開啟資料庫

6.修改資料庫密碼

ok,修改完成,可以正常登陸到資料庫了。

oracle 密碼過期處理

1.cmd資料庫連線資料庫 sqlplus nolog connect sys orcl123 sys使用者密碼 localhost orcl 自己的例項名 as sysdba select from dba profiles where profile default and resource n...

oracle密碼過期

oracle提示錯誤訊息ora 28001 the password has expired,是由於oracle11g的新特性所致,oracle11g建立使用者時預設密碼過期限制是180天,如果超過180天使用者密碼未做修改則該使用者無法登入。oracle公司是為了資料庫的安全性預設在11g中引入了...

Oracle 使用者密碼過期

oracle 11g 之前預設的使用者時是沒有密碼過期的限制的,在oracle 11g 中預設的profile啟用了密碼過期時間是180天。如下 select from dba profiles where profile default and resource name password lif...