統計伺服器測試沒問題,剛好上次配置系統的時候有點問題,故重裝一次,配置好安全策略(最近在研究如何新配置一台伺服器的時候,第一時間配置好相關的安全設定,有空再寫下來)。
為了省事,直接冷備份oracle的數據檔案,安裝好oracle後,直接恢復到原來對應的目錄。啟動,出現:
sql> startup
oracle 例程已經啟動。
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;
資料庫已更改。
重新登錄的時候,應該輸入舊資料庫設定的密碼;
更具體完全的恢復,可參考:
其實,最近一年多解決了很多類似的問題,包括linux, oracle, windows server, cisco 路由,交換機,套用伺服器..., 但很多,在網上都已經有現成的解決方法可以找到,故很少貼上來。