1. 首先以 root 系統管理員帳號登入:login as: root root@10.10.1.82's password: Last login: Tue Sep 9 08:14:56 2014 from elvismeng-g10-1042-2
2. 再來切換到 Oracle DBA 帳號:[root@elvismeng-srv-r ~]# su devdba
3. 查看 Oracle DB 的 SID 是否被定義在 devdba 的登入的 profile (若使用 bash shell):[devdba@elvismeng-srv-r root]$ echo ORACLE_SID ORACLE_SID
4. 如無 (依照上例),定義此 Oracle Instance 的識別名稱:[devdba@elvismeng-srv-r root]$ ORACLE_SID=DEV5
5. 定義完後,export 此識別名稱,如此 Unix 環境即可識別:[devdba@elvismeng-srv-r root]$ export ORACLE_SID [devdba@elvismeng-srv-r root]$ echo $ORACLE_SID DEV5
6. 更改 sys 與 system 密碼:[devdba@elvismeng-srv-r root]$ sqlplus /nolog SQL*Plus: Release 11.2.0.2.0 Production on Tue Sep 9 16:01:06 2014 Copyright (c) 1982, 2010, Oracle. All rights reserved. SQL> connect / as sysdba Connected. SQL> alter user sys identified by sys 2 ; User altered. SQL> alter user system identified by system; User altered. SQL>
參考: http://www.itkee.com/database/detail-1dc1.html
“Those who are in love with practice without knowledge are like the sailor who gets into a ship without rudder or compass and who never can be certain [where] he is going. Practice must always be founded on sound theory.” by Leonardo da Vinci
2014年10月21日 星期二
【Oracle 筆記 】忘記 Oracle sys 與 system 密碼怎麼辦 ?
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言