创建归档日志路径
asmca
+data/lhrrac1/arch
设置归档日志路径。
alter system set log_archive_dest_1='location=+data/lhrrac1/arch' scope=spfile sid='*';
(每个节点都要跑一边)
1,rac 切换归档
1、登录数据库:执行alter system set cluster_database = false scope=spfile;
2、关闭node1和node2数据库:shutdown immediate; -- [grid @rac1 ~] $ srvctl stop database -d racdb
3、启动node1至mount状态:startup mount;
4、执行关闭归档:alter database archivelog;
5、开启数据库:alter database open;
6、在node1执行:alter system set cluster_database=true scope=spfile;
7、关闭数据库:shutdown immediate;
8、启动node1数据库:startup
9、启动node2数据库:startup
可参考:
https://blog.csdn.net/onlyshenmin/article/details/52432114
https://blog.csdn.net/dbcommando/article/details/7925861