Oracle 11g 密碼到期被鎖報 ORA-28000 the account is locked,11gora-28000

來源:互聯網
上載者:User

Oracle 11g 密碼到期被鎖報 ORA-28000 the account is locked,11gora-28000

一、觸發這個錯誤的原因及相關因素

   是由於oracle11g中預設在default概要檔案中設定了“PASSWORD_LIFE_TIME=180天”所導致,在Oracle 11g中是
存在密碼到期問題的。

二、錯誤現象:

使用者被鎖定之後會報ORA-28000的錯誤,並提示無法登入到資料庫SQL> conn system/oracleERROR:ORA-28000: the account is lockedWarning: You are no longer connected to ORACLE.SQL>

 三、解決方案:

按照如下步驟進行操作:1、查看使用者的proifle是哪個,一般是default:SQL> select username,profile from dba_users where username='SYSTEM';USERNAME                       PROFILE------------------------------ ------------------------------SYSTEM                         DEFAULTSQL>2、查看指定概要檔案(如default)的密碼有效期間設定:SQL> SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';PROFILE                        RESOURCE_NAME                    RESOURCE LIMIT------------------------------ -------------------------------- -------- ----------------------------------------DEFAULT                        PASSWORD_LIFE_TIME               PASSWORD 180DAY3、將密碼有效期間由預設的180天修改成“無限制”:sql>ALTER PROFILE DEFAULT LIMITPASSWORD_LIFE_TIMEUNLIMITED;修改之後不需要重啟動資料庫,會立即生效。4、修改後,還沒有被提示ORA-28002警告的帳戶不會再碰到同樣的提示;已經被提示的帳戶只需解鎖即可。$sqlplus / as sysdbaSQL> alter user system account unlock;User altered.5、如果還無法登入,執行再配置一次密碼就OK了。(跟原密碼一樣就好)SQL> alter user system identified by oracle;User altered.

 oracle11g啟動參數resource_limit無論設定為false還是true,密碼有效期間都是生效的,所以必須通過以上方式進行修改。以上的帳戶名稱請根據實際使用的帳戶名稱更改。


oracle資料庫中ORA-28000: the account is locked問題

這個使用者已經被鎖住了,一般是用錯誤的密碼嘗試次數太多,得解鎖
用system或sys使用者登陸,然後
ALTER USER username ACCOUNT UNLOCK;
 
oracle 11 ora-28000:the account is locked

賬戶被鎖了,密碼錯誤次數太多了吧?
進入cmd後分別執行以下

sqlplus /nolog
conn /as sysdba
alter user system identified by oracle account unlock;
alter user system 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.