重装系统后 oracle恢复。

寂寞空虚党 2010-08-23 07:52:15
我在网上看到这种方法

:1、首先,将原来的ORACLE文件夹改名,原来的路径是D:/oracle。我暂时改成D:/oracle_old。找来ORACLE(我用的是ORACLE 9I)安装光盘,将ORACLE安装在原来安装的目录下,这样恢复起来更加方便,主要是注册表的内容不用修改。
2、安装完了之后,系统中又有一个可以使用的ORACLE了。这个时候要做的就是将原来的文件和数据恢复过来。第一步,先关闭ORACLE的所有已经启动的项目,在“服务”里面逐一关闭。然后,将安装目录改名。我现在用的是D:/oracle。改成D:/oracle_new。再将D:/oracle_old改成D:/oracle。 这样理论上说从物理层面恢复了ORACLE了。但是我们发现,现在还不能启动ORACLE的监听程序和服务程序。我们还要从逻辑上解决。
3、在dos环境下执行一个删除命令:oradim -delete -sid mm,其中mm为创建oracle时候创建的实例 建议执行这个命令后重新启动机器,重启后就可以建立和原来实例名相同的实例。当然你懒,不重新启动也可以,但是你的实例名就不能和原来的一样了。
4、在dos环境下执行命令 oradim -new -sid mm -startmode a -pfile "D:\oracle\admin\mm\pfile\initmm.ora "创建一个新的实例,其中 “mm“为新数据库的名称。
。。。。。。


当我把两个文件夹换完了之后,oradim工具用不了了啊


C:\Users\nyh>oradim
Message 1 not found; No message file for product=RDBMS, facility=ORADIM
Message 22 not found; No message file for product=RDBMS, facility=ORADIM
Message 23 not found; No message file for product=RDBMS, facility=ORADIM
Message 24 not found; No message file for product=RDBMS, facility=ORADIM
Message 25 not found; No message file for product=RDBMS, facility=ORADIM
Message 26 not found; No message file for product=RDBMS, facility=ORADIM
Message 27 not found; No message file for product=RDBMS, facility=ORADIM
Message 28 not found; No message file for product=RDBMS, facility=ORADIM
Message 29 not found; No message file for product=RDBMS, facility=ORADIM
Message 30 not found; No message file for product=RDBMS, facility=ORADIM
Message 31 not found; No message file for product=RDBMS, facility=ORADIM
Message 32 not found; No message file for product=RDBMS, facility=ORADIM
Message 33 not found; No message file for product=RDBMS, facility=ORADIM
Message 34 not found; No message file for product=RDBMS, facility=ORADIM
Message 35 not found; No message file for product=RDBMS, facility=ORADIM
Message 36 not found; No message file for product=RDBMS, facility=ORADIM
Message 37 not found; No message file for product=RDBMS, facility=ORADIM
Message 38 not found; No message file for product=RDBMS, facility=ORADIM
Message 39 not found; No message file for product=RDBMS, facility=ORADIM

我换回去 就能用,谁给看看啊,急求
...全文
373 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
fingerfox 2010-12-08
  • 打赏
  • 举报
回复
呵呵,无非就是个windows的服务嘛,用oradim创建出来,把原来的spfile(pfile),control file和datafile拷贝到原来的位置即可。
Virgil_Ye 2010-10-19
  • 打赏
  • 举报
回复
http://turner.itpub.net/post/2343/244994
寂寞空虚党 2010-08-23
  • 打赏
  • 举报
回复
换回去以后 oracle的服务又没有了

3,491

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧