实验环境:Oracle 11.2.0.4
1)在restore时指定db_name和db_recovery_file_dest
在RMAN中,内置了参数文件可以启动数据库到nomount状态
还原spfile
现在还是以内置参数文件启动,需要重启数据库
2)未使用FRA,需要先指定DBID(通过备份片文件名可获知)
启动到Nomount
开始恢复
重启数据库。
3)直接使用命令restore spfile即可,不加参数。
RMAN连接到恢复目录
直接恢复
完成。
4)同3),即只要使用了恢复目录,有没有用FRA无所谓。
是否启用FRA | 恢复方法 | 备注 | |
只用控制文件 | 是 | 1 | 使用了autobackup |
否 | 2 | 使用了autobackup | |
使用恢复目录 | 是 | 3 | 使用了autobackup |
否 | 4 | 使用了autobackup |
1)在restore时指定db_name和db_recovery_file_dest
在RMAN中,内置了参数文件可以启动数据库到nomount状态
点击(此处)折叠或打开
- RMAN> startup nomount
-
- startup failed: ORA-01078: failure in processing system parameters
- LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/initprod.ora' //说明了RMAN找不到spfile
-
- starting Oracle instance without parameter file for retrieval of spfile
- Oracle instance started
-
- Total System Global Area 1068937216 bytes
-
- Fixed Size 2260088 bytes
- Variable Size 285213576 bytes
- Database Buffers 775946240 bytes
- Redo Buffers 5517312 bytes
点击(此处)折叠或打开
- RMAN> restore spfile from autobackup db_name=prod db_recovery_file_dest='/u01/app/oracle/flash_recovery_area/'
点击(此处)折叠或打开
- startup force
启动到Nomount
点击(此处)折叠或打开
- RMAN> startup nomount
点击(此处)折叠或打开
- run {
- set dbid 306806748;
- restore spfile from autobackup;
- }
重启数据库。
3)直接使用命令restore spfile即可,不加参数。
RMAN连接到恢复目录
点击(此处)折叠或打开
- rman target / catalog rcowner/oracle@rcata
点击(此处)折叠或打开
- run {
- startup nomount;
- restore spfile;
- startup force;
- }
4)同3),即只要使用了恢复目录,有没有用FRA无所谓。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22621861/viewspace-2075667/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22621861/viewspace-2075667/