ORA-28000: the account is locked的解決辦法

在plsql developer中以scott/tiger登陸時提示ora-28000 the account is locked。sql

新裝完Oracle10g後,用scott/tiger測試,會出現如下錯誤提示:
        oracle10g the account is locked
        oracle10g the password has expired
緣由:默認Oracle10g的scott不能登錄數據庫

 

 

第一種解決辦法:oracle

第一步:使用PL/SQL,登陸名爲system,數據庫名稱不變,選擇類型的時候把Normal修改成Sysdba;
第二步:選擇myobject,查看users;
第三步:選擇scott用戶,右擊點擊「編輯」;
第四步:修改密碼,把「賬戶被鎖住」的勾去掉;
第五步:點擊「應用」再點擊「關閉」;
第六步:從新登陸就能夠經過驗證了;ide

 

第二種解決方法:測試

直接以system用戶登陸,ui

執行SQL:.net

 

ALTER USER scott ACCOUNT UNLOCK;orm

 

第三種方法:ip

(1)conn sys/sys as sysdba; //以DBA的身份登陸
(2)alter user scott account unlock;// 而後解鎖
(3)conn scott/tiger //彈出一個修改密碼的對話框,修改一下密碼就能夠了get

打開cmd在DOS模式下輸入sqlplus,以system用戶名登陸,密碼是剛裝oracle時本身填寫的密碼orcl,登陸進去之後。

SQL> conn sys/sys as sysdba;       (分號是必須的可是我是以system登陸的所在這不該該寫conn sys/sys as sysdba應該寫conn system/orcl as sysdba;)
         Connected.
SQL> alter user scott account unlock;
         User altered.
SQL> commit;
         Commit complete.
SQL> conn scott/tiger//請輸入新密碼,並確認後OK
Password changed
Connected.

 

這時再到plsql developer裏面以scott/tiger登陸就能夠了

 

 

再講一下Oracle 10g 默認安裝時三個常見的用戶名/密碼

 

Username          Password            Description               See Also

 

 

SYS
CHANGE_ON_INSTALL
The account used to perform database administration tasks
Oracle Database Administrator's Guide

 

 

 

SYSMAN
CHANGE_ON_INSTALL
The account used to perform Oracle Enterprise Manager database administration tasks. Note that SYS and SYSTEM can also perform these tasks.
Oracle Enterprise Manager Grid Control Installation and Basic Configuration

 

SYSTEM MANAGER Another account used to perform database administration tasks

相關文章
相關標籤/搜索