oracle剛開始時Scott賬戶是lock狀態的解決辦法

1. 首先,需要對Scott賬戶進行解鎖,輸入:alter user scott account unlock;這時,提示scott賬戶過期並且密碼過期(expired);

2. 然後,查看scott賬戶有效期,輸入:select  * from dba_profiles s where s.profile = 'default' and resource_name = 'password_life_time';

3. 接着,設置scott賬戶的有效期爲無限,輸入:alter profile default limit password_life_time unlimited;

4. 最後,修改scott賬戶的密碼爲root,輸入:alter user scott identified by root。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章