Oracle解鎖scott賬戶


 

Oracle安裝完成之后scott賬戶默認是鎖定的,登錄的時候會提示賬戶已經被鎖定:

C:\Users\CC11001100>sqlplus scott/toor

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 6月 8 22:21:27 2017

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

ERROR:
ORA-28000: the account is locked


請輸入用戶名:

需要手動打開。

 

使用安裝時設定的sys密碼登錄,特權用戶登錄的時候必須帶上as sysdba 或者as sysoper:

C:\Users\CC11001100>sqlplus sys/toor as sysoper

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 6月 8 22:12:43 2017

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


連接到:
Oracle Database 10g Release 10.2.0.1.0 - Production

SQL>

登錄進去之后解鎖scott賬戶:

SQL> alter user scott account unlock ;

用戶已更改。

修改scott的密碼:

SQL> alter user scott identified by toor ;

用戶已更改。

再使用scott登錄就可以登錄成功了:

C:\Users\CC11001100\Desktop>sqlplus scott/toor

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 6月 9 01:48:04 2017

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


連接到:
Oracle Database 10g Release 10.2.0.1.0 - Production

SQL> show user;
USER 為 "SCOTT"

 

.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM