[转帖]Active-Standby Pair + 灾备中心试验(4)_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3744 | 回复: 0   主题: [转帖]Active-Standby Pair + 灾备中心试验(4)        下一篇 
shunzi
注册用户
等级:上尉
经验:782
发帖:133
精华:0
注册:2011-10-10
状态:离线
发送短消息息给shunzi 加好友    发送短消息息给shunzi 发消息
发表于: IP:您无权察看 2011-10-31 15:36:23 | [全部帖] [楼主帖] 楼主

在ttactive上创建AWT Cache Group,先不要Load数据

ttisql ttactive
Command> call ttcacheuidpwdset(’test’,'test’);
Command> call ttcachestart;
Command> create asynchronous writethrough cache group cg_student_course
from student (
student_id char(8) not null primary key,
student_name char(12) not null,
enroll_date date not null),
student_course (
course_id char(8) not null,
student_id char(8) not null,
mark int not null,
primary key (course_id,student_id),
foreign key (student_id) references student(student_id));
Command>


找几个空闲的端口,给Replication用,通过netstat确定是否为空闲

[ttactive@west-mountain info]$ netstat |grep 20000
[ttactive@west-mountain info]$ netstat |grep 21000
[ttactive@west-mountain info]$ netstat |grep 22000


创建Replication

Command>create active standby pair ttactive on “west-mountain”,ttstandby on “west-mountain”
return receipt subscriber ttdisaster on “west-mountain”
store ttactive on “west-mountain” port 20000 timeout 30
store ttstandby on “west-mountain” port 21000 timeout 30
store ttdisaster on “west-mountain” port 22000 timeout 30;
Command> repschemes;
Replication Scheme Active Standby:
Master Store: TTACTIVE on WEST-MOUNTAIN
Master Store: TTSTANDBY on WEST-MOUNTAIN
Master Return Service: Return Receipt
Subscriber Store: TTDISASTER on WEST-MOUNTAIN
…….
1 replication scheme found.
Command>


启动Replication Agent,并置为Active状态

Command> call ttrepstart;
Command> call ttRepStateSet(’ACTIVE’);


从Oracle往ttactive Load 数据

Command> load cache group cg_student_course commit every 10 rows;
6 cache instances affected.
Command>


至此,ttactive上的工作已经完成,剩下的任务就是构建ttstandby和ttdisaster了。




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论