【www.rzshzz.com--德育研究】
统计服务器测试没问题,刚好上次配置系统的时候有点问题,故重装一次,配置好安全策略(最近在研究如何新配置一台服务器的时候,第一时间配置好相关的安全设置,有空再写下来)。
为了省事,直接冷备份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 路由,交换机,应用服务器..., 但很多,在网上都已经有现成的解决方法可以找到,故很少贴上来。