1、sqlplus / as sysdba
备份参数文件 create pfile='/home/oracle/pfile.ora' from spfile;
备份控制文件 Alter database backup controlfile to trace;
2、关闭两节点的监听;
3、操作系统层面kill掉所有LOCAL=NO的所有进程。
ps -ef | grep ucdb |grep LOCAL=NO | grep -v grep | awk '{print $2}' | xargs kill -9
4、关闭节点1
sqlplus / as sysdba
shutdown immediate;
tail -500f alertucdb.log;
5、起动节点1
sqlplus / as sysdba
startup;
tail -500f alertucdb.log
6、等待5-10分钟
7、关闭节点2
sqlplus / as sysdba
shutdown immediate;
tail -500f alertucdb.log;
8、起动节点2
sqlplus / as sysdba
startup;
tail -500f alertucdb.log;