ORA-28000 使用者被鎖解鎖

來源:互聯網
上載者:User

一、故障現象:

SQL> conn system/Oracle
ERROR:
ORA-28000: the account is locked


Warning: You are no longer connected to ORACLE.
SQL>

二、原因分析:
   system 被鎖住了,所以無法登入

  通過sys使用者或登入到作業系統用本地驗證方法用sys角色登入資料庫。

2.1 網路驗證方式:
SQL> conn sys/oracle as sysdba
Connected.

SQL> show user;
USER is "SYS"

2.2  本地驗證方式:
[oracle@wwl ~]$ sqlplus / as sysdba

SQL> show user;
USER is "SYS"
SQL>

2.3  查看system使用者狀態

SQL> select username,account_status from dba_users where username='SYSTEM';

USERNAME   ACCOUNT_STATUS
---------- --------------------------------
SYSTEM     LOCKED

SQL>

注意:證實了剛才的原因分析,是因為system使用者鎖住所以無法登入。

三、解決辦法:
  
   既然是被鎖住了,那就通過解鎖system使用者。

SQL> alter user system account unlock;

User altered.

SQL> select username,account_status from dba_users where username='SYSTEM';

USERNAME   ACCOUNT_STATUS
---------- --------------------------------
SYSTEM     OPEN

SQL>

四、驗證是否能登入
    可以看到,解鎖後system使用者就可以正常登入了。

SQL> conn system/oracle
Connected.
SQL> show user;
USER is "SYSTEM"
SQL>

更多Oracle相關資訊見Oracle 專題頁面 http://www.bkjia.com/topicnews.aspx?tid=12

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.