1.先将第二节点的实例关闭
servctl stop instance -d orcl -n orcl1
2.配置闪回目录
alter system set db_recovery_file_dest_size = 1G scope=both;
alter system set db_recovery_file_dest='+FRA' scope=both;
3.设置数据库为非集群模式
alter system set cluster_database=false scope=spfile;
4.关闭数据库,然后一节点启动到mount状态
srvctl stop instance -d orcl -n orcl1 srvctl start instance -d orcl -n orcl1 -o mount
5.打开归档
alter database archivelog;
5.1如果要将归档日志存放在其他位置
show parameter log_archive_dest
alter system set log_archive_dest_1='location=/arc' scope=both; #本地
alter system set log_archive_dest_2='server=server_name' scope=both; #远程
alter system set log_archive_dest_2='+fra' scope=both; #ASM,如果不配路径就默认存放在闪回区目录
6.设置数据库为集群模式
alter system set cluster_database=true scope=spfile;
7.重启数据库到open状态
srvctl stop instance -d fxjerp -n xm-fxjerp1
srvctl start instance -d fxjerp -n xm-fxjerp1
8.启动另一个实例
srvctl start instance -d fxjerp -n xm-fxjerp2
9.如果需要开启闪回
alter database flashback on;
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




