Oracle 11g資料庫密碼過期解決方法

2021-10-01 08:55:25 字數 872 閱讀 9119

線上服務突然無法連線oracle,服務報密碼過期錯誤,正常情況下密碼過期有兩種情況:

1、由於oracle中預設在default概要檔案中設定了「password_life_time=180天」所導致。

2、由於oracle中預設在default概要檔案中設定了「failed_login_attempts=10次」,當輸入密碼錯誤次數達到設定值將導致此問題。

oracle安裝時並未在意密碼過期時間,密碼預設過期時間設定的是180天,過期後服務無法連線。正常情況下可以通過下面指令登入oracle:

sqlplus username/password@oracle as sysdba;(sqlplus 使用者名稱/密碼@資料庫本地服務名 as sysdba;)
現在特定賬號無法使用,在切換到oracle伺服器對應的使用者後通過如下方式連線oracle:

sqlplus / as sysdba
而後進入檢視預設密碼過期時間設定:

select * from dba_profiles s where s.profile='default' and resource_name='password_life_time';
通過如下指令修改密碼過期時間配置為無時間限制:

alter profile default limit password_life_time unlimited;
最後解鎖對應服務使用的賬號密碼:

alter user username(使用者名稱) identified by oldpassword(原來的密碼) account unlock;
最終線上服務恢復正常。

還原資料庫 oracle 11g

1.需要檔案 2.需要知道表空間 nnc data01 和臨時表空間 nnc index01 和資料庫使用者 nc63train 3.開始,第一步,建立兩個表空間 開啟sql plus,連線資料庫,執行語句 4.第二步,建立資料庫使用者 createuser nc63train identified...

解除安裝Oracle 11g資料庫

完全解除安裝oracle11g步驟 1 開始 設定 控制面板 管理工具 服務 停止所有 oracle 服務。2 開始 程式 oracle orahome81 oracle installation products universal installer,單擊 解除安裝產品 全部展開 選中除 ora...

Oracle11 g資料庫過期

公司使用的oracle11 g 32位 資料庫出現有效期過期問題,解決此問題可以使用下面的方法 1 查詢密碼有效期system登入 sql select from dba profiles where profile default and resource name password life t...