以前控制文件只有一个:
NAME TYPE VALUE
———————————— ———– ——————————
control_files string +DATA/orcl/controlfile/current
.264.792324619
步骤:
1.修改初始参数:
alter system set c,’+data/orcl/controlfile/control02.ctl’ scope=spfile;
2.停止数据库
sql>conn / as sysdba
sql>shutdown immediate;
3.启动数据库到nomount状态
sql>conn / as sysdba
sql>startup nomount;
4.使用rman 恢复控制文件
$ rman target /
rman>restore controlfile from ‘+DATA/orcl/controlfile/current.264.792324619’;
5.打开数据库
sql>conn / as sysdba;
sql>alter database mount;
sql>alter database open;
6.验证控制文件
sql>show parameter control_files