oracle 重置sys密碼的方法介紹
更新時間:2012年11月13日 15:57:44 作者:
近期安裝完oracle 10g后,竟發(fā)現(xiàn)將安裝時設(shè)置的系統(tǒng)密碼忘記。在同事的幫助下通過一下方法解決,遇到同樣問題的朋友可以參考
如何重置oracle 10g SYS 的密碼
安裝完oracle 10g后,竟然將安裝時設(shè)置的系統(tǒng)密碼忘記。在同事的幫助下通過一下方法解決。
1.oracle的密碼文件存在于:oracle_home/database/pwd<sid>.ora
2.使用orapwd 重置SYS密碼
C:oracleproduct10.2.0db_1database>orapwd
Usage: orapwd file=<fname> password=<password> entries=<users> force=<y/n>
C:oracleproduct10.2.0db_1database>orapwd file=PWDorcl.ora password=20120020
entries=5 force=y
where
file - name of password file (mand),
password - password for SYS (mand),
entries - maximum number of distinct DBA and force - whether to overwrit
e existing file (opt),
OPERs (opt),
There are no spaces around the equal-to (=) character.
重置oracle的sys用戶密碼
1.在oracle安裝目錄下搜索名為PWD數(shù)據(jù)庫實例名.ora文件
2.備份一份密碼文件(一定要哦,避免發(fā)生意外哦)
3.生成新的密碼文件,在dos控制臺下輸入命令
orapwd file=PWD數(shù)據(jù)庫實例名.ora文件路徑\PWD數(shù)據(jù)庫實例名.ora password=新密碼 entires=數(shù)值
說明:file表示密碼文件全路徑(要和剛剛搜索到的一致)
password表示新密碼
entires表示登錄sys最多的用戶
如果希望新的密碼生效,則需要重新啟動數(shù)據(jù)庫實例
特別說明,在dos下輸入orapwd其有詳細提示.
安裝完oracle 10g后,竟然將安裝時設(shè)置的系統(tǒng)密碼忘記。在同事的幫助下通過一下方法解決。
1.oracle的密碼文件存在于:oracle_home/database/pwd<sid>.ora
2.使用orapwd 重置SYS密碼
C:oracleproduct10.2.0db_1database>orapwd
Usage: orapwd file=<fname> password=<password> entries=<users> force=<y/n>
C:oracleproduct10.2.0db_1database>orapwd file=PWDorcl.ora password=20120020
entries=5 force=y
where
file - name of password file (mand),
password - password for SYS (mand),
entries - maximum number of distinct DBA and force - whether to overwrit
e existing file (opt),
OPERs (opt),
There are no spaces around the equal-to (=) character.
重置oracle的sys用戶密碼
1.在oracle安裝目錄下搜索名為PWD數(shù)據(jù)庫實例名.ora文件
2.備份一份密碼文件(一定要哦,避免發(fā)生意外哦)
3.生成新的密碼文件,在dos控制臺下輸入命令
orapwd file=PWD數(shù)據(jù)庫實例名.ora文件路徑\PWD數(shù)據(jù)庫實例名.ora password=新密碼 entires=數(shù)值
說明:file表示密碼文件全路徑(要和剛剛搜索到的一致)
password表示新密碼
entires表示登錄sys最多的用戶
如果希望新的密碼生效,則需要重新啟動數(shù)據(jù)庫實例
特別說明,在dos下輸入orapwd其有詳細提示.
相關(guān)文章
oracle wm_concat 列轉(zhuǎn)行 逗號分隔
oracle wm_concat函數(shù),用于列轉(zhuǎn)行,逗號分隔本文將詳細介紹此功能的應(yīng)用2012-11-11oracle誤刪數(shù)據(jù)表還原的二種方法(oracle還原)
這篇文章主要介紹了oracle誤刪數(shù)據(jù)表還原的二種方法,大家參考使用吧2014-01-01oracle 動態(tài)AdvStringGrid完美示例 (AdvStringGrid使用技巧/Cells)
本方法實現(xiàn)用常量和常量數(shù)組完美創(chuàng)建和控制動態(tài)TAdvStringGrid。2009-06-06Oracle中Union與Union All的區(qū)別(適用多個數(shù)據(jù)庫)
如果我們需要將兩個select語句的結(jié)果作為一個整體顯示出來,我們就需要用到union或者union all關(guān)鍵字。union(或稱為聯(lián)合)的作用是將多個結(jié)果合并在一起顯示出來2012-07-07Oracle數(shù)據(jù)庫用戶的密碼過期時間如何修改為永不過期
Oracle的密碼過期規(guī)則是用Profile來管理的,系統(tǒng)默認只有一個Profile(DEFAULT),該profile的密碼過期規(guī)則為180天。那么如何修改Oracle數(shù)據(jù)庫用戶的密碼過期時間為永不過期呢?下面通過本文給大家介紹下2017-01-01