Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1743602
  • 博文数量: 297
  • 博客积分: 285
  • 博客等级: 二等列兵
  • 技术积分: 3006
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-06 22:04
个人简介

Linuxer, ex IBMer. GNU https://hmchzb19.github.io/

文章分类

全部博文(297)

文章存档

2020年(11)

2019年(15)

2018年(43)

2017年(79)

2016年(79)

2015年(58)

2014年(1)

2013年(8)

2012年(3)

分类: DB2/Informix

2012-12-04 14:55:04

1.  On primary 
db2 update db cfg for Sample using hadr_local_host 10.6.26.10
db2 update db cfg for Sample using hadr_remote_host 10.3.1.150
db2 update db cfg for Sample using hadr_local_svc '51012/tcp'
db2 update db cfg for Sample using hadr_remote_svc '51013/tcp'
db2 update db cfg for Sample using hadr_remote_inst 'db2inst1'
db2 update db cfg for Sample using hadr_timeout 120
db2 update db cfg for Sample using hadr_syncmode nearsync
db2 update db cfg for Sample using logarchmeth1 logretain

2. backup Primary 
db2 backup db sample

3. scp to standby side , and restore sample.
db2 restore db sample from /data/backup/ taken at 20121204012431

4. change db cfg on standby side.
db2 update db cfg for sample using HADR_LOCAL_HOST '10.3.1.150'
db2 update db cfg for sample using HADR_REMOTE_HOST  '10.6.26.10'
db2 update db cfg for Sample using hadr_local_svc '51013/tcp'
db2 update db cfg for Sample using hadr_remote_svc '51012/tcp'

5. start standby side
db2 start hadr on db sample as standby

6.start primary side. 
db2 activate db sample
db2 start hadr on db sample as primary



阅读(2408) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~