RAC设置归档模式简单记录(原创)

本文介绍如何在Oracle RAC环境中配置归档日志,确保每个节点都能保存完整的归档记录,并通过具体步骤指导如何进行设置及验证。

实例名:czmmiao1,czmmiao2

归档路径方案,每个节点上都存有个字的归档日志和对方节点的归档日志,以保证每个节点都有所有的归档日志。

设置步骤

1、在某节点配置归档日志位置

alter system set log_archive_dest_1='location=/u01/app/oracle/product/10.2.0/arch_czmiao1' scope=spfile sid='czmmiao1';
alter system set log_archive_dest_2='service=czmiao1' scope=spfile sid='czmmiao2';
alter system set standby_archive_dest='/u01/app/oracle/product/10.2.0/arch_czmiao2' scope=spfile sid='czmmiao1';
alter system set standby_archive_dest='/u01/app/oracle/product/10.2.0/arch_czmiao1' scope=spfile sid='czmmiao2';
alter system set log_archive_dest_1='location=/u01/app/oracle/product/10.2.0/arch_czmiao2' scope=spfile sid='czmmiao2';
alter system set log_archive_dest_2='service=czmiao2' scope=spfile sid='czmmiao1';

2、修改cluster_database参数

alter system set cluster_database=false scope=spfile sid='*';

3、关闭所有实例

shutdown immediate;

4、把某个实例启动到mount,修改归档模式

startup mount;

alter database archivelog;

alter system set cluster_database=true scope=spfile sid='*';

5、重启数据库确认归档生效

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /u01/app/oracle/product/10.2.0/arch_czmmiao1
Oldest online log sequence     7
Next log sequence to archive   8
Current log sequence           8

6、确认生效位置

alter systemswitch logfile;


参考至:《大话Oracle RAC》张晓明著
本文原创,转载请注明出处、作者
如有错误,欢迎指正
邮箱:czmcj@163.com参考至

作者:czmmiao  文章出处:http://czmmiao.iteye.com/blog/1736599
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值