一、关闭数据库(2个节点实例都要关闭)
srvctl stop database -d ora19c
二、多路径控制文件
打开其中一个节点到nomount状态
sqlplus / as sysdba
startup nomount;
[oracle@ora19c1:/home/oracle]$ rman target /
RMAN> restore controlfile to '+OCR' from '+DATA/ORA19C/CONTROLFILE/Current.257.1057568499';
---Current.257.1057568499这种格式必须用rman 导入。
三、修改spfile
create pfile='/home/oracle/pfile.ora' from spfile;
alter system set control_files='+DATA/ORA19C/CONTROLFILE/Current.257.1057568499','+OCR/ORA19C/CONTROLFILE/current.262.1116745615' scope=spfile;
四、重启数据库
shutdown immediate;
srvctl start database -d ora19c