解鎖oracel資料庫scott賬戶

2021-08-30 11:18:14 字數 611 閱讀 7480

以system賬戶+自己安裝時設定的密碼,登入sql plus,

然後使用命令「alter user scott account unlock;」來解鎖。

解完以後,使用下面的命令來檢視:「select username,account_status from dba_users;」,

可以看到scott賬戶已經解鎖,但是狀態還是「expired」(密碼過期)的意思。

再輸入這樣的命令「alter user scott identified by tiger;」,就給其賦了乙個新的口令。

退出,以scott/tiger登入即可。

用windows的控制台(程式|執行,輸入cmd開啟)。在命令列下,輸入sqlplus/nolog,回車,出現sql>命令提示符,然後按下面的順序輸入命令:

sql>conn/as sysdba

sql>alter user scott account unlock;

sql>disconnect

sql>conn scott/tiger@oral;

這時會提示密碼已經過期,請輸入新的口令。然後輸入兩次新定義的口令分別回車確認即為scott賬戶賦予了新的口令。開啟sql plus,再以scott賬戶就可以登入了。

解鎖資料庫

解鎖資料庫 1 使用root使用者名稱密碼登陸資料庫 2 切換oracle使用者 su oralce注意 左右都有乙個空格 3 如果該資料庫中含有多個例項的話,那麼需要寫一句切換例項的語句 export oracle sid i2sdb 其中 idsdb 是例項名 4 然後以管理員身份進入該例項 s...

PHP連線oracel資料庫

工具 oracle資料庫 oracel11.2.0.1.0 注意要選擇對應的版本!2 解壓檔案後得到,將他們複製到 c wamp64 bin apache apache2.4.23 bin 不是c wamp64 bin php php7.0.10 ext 具體原因現在不知道。3 修改c wamp64...

oracel資料庫分頁方法

如從表中取出4 6行的資料 sql如下 得到4 6行的資料 select id,age from zystudent where id in select id from zystudent where rownum 6 and id not in select id from zystudent ...