`

rman-SPFILE丢失的恢复

阅读更多
前提:已经进行了数据库完全备份。
模拟操作:
oracle> mv spfileora10g.ora spora10g.ora
oracle>
rman target /;

rman>
shutdown immediate;

rman>
startup nomount;

startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/home/oracle/product/10.20/dbs/initora10g.ora'
rman>
set dbid 3988862108;

rman>
restore spfile from autobackup;


执行该命令,如果没有找到的话,那可能是文件的路径发生错误.可以通过直接赋予它的文件
rman>restore spfile from '/u01/oracle/flash_recovery_area/ORA10G/autobackup/2008_12_09/o1_mf_s_673025706_4mw7xc79_.bkp

在dbs/目录下产生spfileora10g.ora文件。证明spfile 已经恢复好

rman>
shutdown immediate;

rman>
startup ;(
如果该命令不能够启动数据库,那么需要set dbid 3988862108)

注意:spfile是备份在控制文件里面的。
Windows下spfile默认路径在C:\oracle\product\10.2.0\db_1\dbs
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics