萬盛學電腦網

 萬盛學電腦網 >> 數據庫 >> oracle教程 >> 解決ORA-01991錯誤:重建密碼文件

解決ORA-01991錯誤:重建密碼文件

統計服務器測試沒問題,剛好上次配置系統的時候有點問題,故重裝一次,配置好安全策略(最近在研究如何新配置一台服務器的時候,第一時間配置好相關的安全設置,有空再寫下來)。
為了省事,直接冷備份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;

數據庫已更改。

重新登錄的時候,應該輸入舊數據庫設定的密碼;

更具體完全的恢復,可參考:

http://www.dbonline.cn/source/oracle/20031214/resume%20database%20example.html

其實,最近一年多解決了很多類似的問題,包括linux, oracle, windows server, cisco 路由,交換機,應用服務器..., 但很多,在網上都已經有現成的解決方法可以找到,故很少貼上來。

copyright © 萬盛學電腦網 all rights reserved