Oracle 解鎖scott使用者

來源:互聯網
上載者:User

標籤:10g   lock   wwwn   sqlplus   oracle10g   密碼   baidu   targe   ext   

原因:預設Oracle10g的scott不能登陸。

解決:
(1)conn sys/sys as sysdba;//以DBA的身份登入
(2)alter user scott account unlock;// 然後解鎖
(3)conn scott/tiger //彈出一個修改密碼的對話方塊,修改一下密碼就可以了

具體操作步驟如下:
C:> sqlplus
請輸入使用者名稱:sys
輸入口令:sys as sysdba //注意:在口令這裡輸入的密碼後面必須要跟上 as sysdba 才可以。
SQL> alter user scott account unlock;
使用者已更改.
SQL> commit;
提交完成.
SQL> conn scott/tiger
更改scott口令
新口令:tiger
重新鍵入新口令:tiger
口令已更改
已串連。

另一種方法:你開啟命令提示字元,不要登入直接輸入下面:
sqlplus sys/tiger as sysdba
以dba方式進入sys帳戶;
alter user scott account unlock;
給scott使用者解鎖;

Oracle 解鎖scott使用者

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.