在oracle中,經常報一個錯誤:
the account is locked
這個錯誤幾乎所有的初學者都會遇到.
其實解決辦法非常簡單.
打開“程序”—“所有程序”—“Oracle-OraDb10g_home1”—“應用程序開發”—“SQL Plus”
請輸入用戶名: SYSTEM
輸入口令:admin(注意,這個密碼是你在安裝oracle時第一步設置的)
然後系統會顯示:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
這說明登錄成功了.
接着輸入語句:
alter user scott account unlock;
這條語句的作用是解鎖.接着顯示:
用戶已更改。
說明解鎖成功,輸入exit退出.
重新登錄:
輸入用戶名:scott
密碼:tiger
這時會提示修改密碼.最好重新輸入原有的密碼tiger.
成功!