統(tǒng)計服務(wù)器測試沒問題,剛好上次配置系統(tǒng)的時候有點問題,故重裝一次,配置好安全策略(最近在研究如何新配置一臺服務(wù)器的時候,第一時間配置好相關(guān)的安全設(shè)置,有空再寫下來)。
為了省事,直接冷備份oracle的數(shù)據(jù)文件,安裝好oracle后,直接恢復(fù)到原來對應(yīng)的目錄。啟動,出現(xiàn):
sql> startup
oracle 例程已經(jīng)啟動。
total system global area 135338868 bytes
fixed size 453492 bytes
variable size 109051904 bytes
database buffers 25165824 bytes
redo buffers 667648 bytes
ora-01991: ???????'d:\oracle\ora92\database\pwdora9.ora'
解決方法,由于未運行在歸檔模式下,使用orapwd重建oracle的密碼文件:
c:\>orapwd /help
usage: orapwd file= password=entries=
where
file - name of password file (mand),
password - password for sys (mand),
entries - maximum number of distinct dba and opers (opt),
there are no spaces around the equal-to (=) character.
sql> host del d:\oracle\ora92\database\pwdora9.ora
sql> host orapwd file=d:\oracle\ora92\database\pwdora9.ora password=oraclepass e
ntries=10
sql> alter database open;
數(shù)據(jù)庫已更改。
重新登錄的時候,應(yīng)該輸入舊數(shù)據(jù)庫設(shè)定的密碼;
更具體完全的恢復(fù),可參考:
其實,最近一年多解決了很多類似的問題,包括linux, oracle, windows server, cisco 路由,交換機,應(yīng)用服務(wù)器..., 但很多,在網(wǎng)上都已經(jīng)有現(xiàn)成的解決方法可以找到,故很少貼上來。