原创
一、环境
11g rac
二、演示步骤
1.查看控制文件路径
SYS@ysdb1>show parameter control_files
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
control_files string +DATA1/ysdb/control01.ctl
2.关闭所有实例,启动一个实例到nomount状态,恢复一个控制文件
[oracle@ysdb1 dbs]$ rman target /
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: YSDB (DBID=3762312883)
RMAN> shutdown immediate;
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
RMAN>
RMAN>
RMAN> startup nomount;
connected to target database (not started)
Oracle instance started
Total System Global Area 647204864 bytes
Fixed Size 2256032 bytes
Variable Size 536871776 bytes
Database Buffers 104857600 bytes
Redo Buffers 3219456 bytes
RMAN> restore controlfile to '+data1/ysdb/control03.ctl' from '+data1/ysdb/control01.ctl';