oracle中啟動 scott 使用者 的方法
在 oracle10g, (g 代表『網路』的意思)資料庫中 scott 這個使用者 安裝時是被鎖定的,安裝 oracle的時候 ,你可以直接選擇 給該使用者 解鎖,如果忘記了解鎖, 後期也可以使用 sqlplus工具通過命令列的方式將其解鎖。
如下圖使用管理員身份登入oracle,
使用下面的語句解鎖scott:
alter user scott account unlock;
解鎖之後可能會要求你修改密碼:
alter user scott identified by tiger;
再此登入:
sqlplus scott/tiger
之後 就可以登陸了進行使用了。
圖1 解鎖scott使用者
alter user scott account lock;
注意:用命令列啟用帳戶 先解鎖後 一定要設密碼 不然還是無法登陸 最後要進行提交。
詳細解釋示範操作的內容:
(1)使用 system 使用者 登入 oracle 資料庫, 輸入命令: show user; 該條命令執行結果為: 顯示當前登入的使用者。
sql*plus: release 10.2.0.1.0 - production on 星期五 5月 27 09:20:39 2016
連線到:oracle database 10g enterprise edition release 10.2.0.1.0 - production with the partitioning, olap and data mining options
sql> conn as sysdba;sql> show user;
user 為 "system"
sql>
請輸入使用者名稱: sys
輸入口令: ****已連線。
sql> show user;user 為 "sys"
使用 show user; 命令檢視當前登入的使用者。
sql> show user;
user 為 "sys"
使用 sys 啟用 scott使用者:
輸入以下命令:
sql> alter user scott account unlock;
則會出現以下結果(包括更改密碼等操作):
使用者已更改。
sql> alter user scott identified by tiger;
使用者已更改。
sql> conn scott;輸入口令: *****已連線。
sql> show user;
user 為 "scott" sql>
使用 oracle 命令 檢視當前資料庫中已存在的 所有使用者 命令如下:
select username from dba_users;
以上就是更改使用者的方式。 Oracle解鎖scott使用者
原因 預設oracle10g的scott不能登陸。解決 1 conn sys sys as sysdba 以dba的身份登入 2 alter user scott account unlock 然後解鎖 3 conn scott tiger 彈出乙個修改密碼的對話方塊,修改一下密碼就可以了 具體操作...
oracle 解鎖scott使用者
oracle product 11.2.0 dbhome 1 rdbms admin utlsampl.sql 解鎖scott使用者 alter user scott account unlock 賦許可權 alter user scott identified by oracle 1 預設 ora...
Oracle 中啟動 Scott 使用者 的方法
oracle 中啟動 scott 使用者 的方法 在 oracle10g,g 代表 網路 的意思 資料庫中 scott 這個使用者 安裝時是被鎖定的,安裝 oracle的時候 你可以直接選擇 給該使用者 解鎖,如果忘記了解鎖,後期可以使用 sqlplus工具 通過命令 將其 解鎖。預設的scott使...